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

Make semdemo parse to AST use oq3_source_file #48

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Conversation

jlapeyre
Copy link
Collaborator

Before this commit, QASM_PATH is respected by semdemo semantics but not semdemo parse.

This commit allows files to be found in QASM_PATH when running semdemo parse. This is needed when debugging and switching between semdemo parse and semdemo semantics.

For example, the following works with QASM_PATH
cargo run --example semdemo -- parse ex.qasm

Closes #41

Before this commit, QASM_PATH is respected by `semdemo semantics` but not `semdemo parse`.

This commit allows files to be found in QASM_PATH when running `semdemo parse`.
This is needed when debugging and switching between `semdemo parse` and `semdemo semantics`.

For example, the following works with QASM_PATH
cargo run --example semdemo -- parse ex.qasm

Closes #41
I already did this once. But that commit got lost somehow.
@jlapeyre jlapeyre merged commit 39b5c66 into main Jan 18, 2024
2 checks passed
@jlapeyre jlapeyre deleted the paths-in-semdemo branch January 23, 2024 16:58
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.

Support code search path in semdemo (and library) for parsing to AST
1 participant