(source: str)
| 190 | ################ command-line interface |
| 191 | |
| 192 | def run(source: str) -> Any: |
| 193 | global_env = Environment({}, standard_env()) |
| 194 | tokens = tokenize(source) |
| 195 | while tokens: |
| 196 | exp = read_from_tokens(tokens) |
| 197 | result = evaluate(exp, global_env) |
| 198 | return result |
| 199 | |
| 200 | def main(args: list[str]) -> None: |
| 201 | if len(args) == 1: |