Generate the AST, and the source code for __repr__.
(program: Any | str, extra_vars: dict[str, Any] | None = None)
| 66 | |
| 67 | |
| 68 | def scan_macro(program: Any | str, extra_vars: dict[str, Any] | None = None) -> Any: |
| 69 | """Generate the AST, and the source code for __repr__.""" |
| 70 | # The AST will be converted into TIR at the time of expansion. |
| 71 | source = Source(program) |
| 72 | closure_vars = extra_vars or _default_globals() |
| 73 | return source, closure_vars |
| 74 | |
| 75 | |
| 76 | def parse( |
no test coverage detected
searching dependent graphs…