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.
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.