-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign gate call modifiers, and other things (#86)
In order to work quickly, this PR does a few things. Some of which are listed below. 1. Redesign modified gate calls. In the AST modifiers are represented as a `Vec` of modifiers in a field in the `GateCall` struct. A similar structure is used in `oq3_parser`. 2. Fix parsing gate call with HW qubit as first arg. For example `h $0` now parses correctly Fixes #84 3. Require parens around conditions in `if` and `while` statements. Parens around these conditions are demanded by the spec. 4. Remove cruft and unused tags and identifiers that are not caught by compiler, clippy, and QA tools.
- Loading branch information
Showing
11 changed files
with
536 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.