Skip to content
New issue

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

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

Already on GitHub? # to your account

Multiple levels of indentation should be invalid #391

Open
MarquessV opened this issue Aug 21, 2024 · 0 comments
Open

Multiple levels of indentation should be invalid #391

MarquessV opened this issue Aug 21, 2024 · 0 comments

Comments

@MarquessV
Copy link
Contributor

The Quil spec defines an indent as 4 spaces following a new line. Because an indentation must follow a new line, it is impossible for a valid Quil program to have multiple levels of indentation. quil-rs, however, makes no assertion that a program follows this rule. For example, it's possible to put a DEFCIRCUIT inside of another DEFCIRCUIT and serialize said instructions to a program with two levels of indentation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant