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