xir.parse_script¶
- parse_script(script: str, debug: bool = False, **kwargs) Program[source]¶
Parses an XIR script into a structured
xir.Program.- Parameters
script (str) – XIR script as a string.
debug (bool) – if false lark tree building will be skipped, and lark rule collisions will not be given a warning
- Returns
program representation of the script
- Return type
api/xir.parse_script
Download Python script
Download Notebook
View on GitHub