working on generating an AST with scope and stuff

This commit is contained in:
SpookyDervish
2025-09-01 06:44:33 +10:00
parent 67fe809c57
commit eee9325ab8
6 changed files with 187 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
from console import console
from sys import exit
def traceback(code: str, error_type: str, error_message: str, line: int | None = None, start_column: int | None = None, end_column: int | None = None):
@@ -19,5 +20,5 @@ def traceback(code: str, error_type: str, error_message: str, line: int | None =
else:
console.print(f"[bold red]{error_type}: {error_message}")
exit(1)