Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyk scripts #10

Merged
merged 13 commits into from
Aug 23, 2024
Merged

Pyk scripts #10

merged 13 commits into from
Aug 23, 2024

Conversation

ACassimiro
Copy link
Collaborator

@ACassimiro ACassimiro commented Aug 23, 2024

This PR introduces pyk scripts to the rust demo semantics projects. The pyk scripts will be of great value for helping develop, validate, and test our semantics.

To run the project, first run make build in the repository’s root folder, then cd into rust-lite, run poetry install and finally poetry run main run PATH_TO_CONTRACT. This will parse the contract and place it into the K cell, triggering rewriting operations afterwards. Once the rewriting operations are finished, the content of the K cell is printed.

For ease of testing, a few contracts can be executed directly without having to provide a path. To execute them (place them on the K cell), use the specific commands:


command_parser = parser.add_subparsers(dest='command', required=True)

# command_parser.add_parser('version', help='Print Rust-Lite version and exit.', parents=[rust_lite_cli_args.logging_args])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to leave these here if you plan to uncomment them soon, but otherwise you should consider deleting them.

@ACassimiro ACassimiro merged commit 6ffb049 into main Aug 23, 2024
1 check passed
@ACassimiro ACassimiro deleted the pyk-scripts branch August 23, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants