Parses an array of tokens into an Abstract Syntax Tree (AST).
This is the main entry point for parsing tokenized OpenQASM code. It automatically
selects the appropriate parser implementation based on the specified version and
returns an AST that can be used for further analysis, compilation, or execution.
Parses an array of tokens into an Abstract Syntax Tree (AST).
This is the main entry point for parsing tokenized OpenQASM code. It automatically selects the appropriate parser implementation based on the specified version and returns an AST that can be used for further analysis, compilation, or execution.