summaryrefslogtreecommitdiff
path: root/05/main.b
diff options
context:
space:
mode:
Diffstat (limited to '05/main.b')
-rw-r--r--05/main.b5
1 files changed, 5 insertions, 0 deletions
diff --git a/05/main.b b/05/main.b
index 7e570f5..7d4df9e 100644
--- a/05/main.b
+++ b/05/main.b
@@ -160,6 +160,11 @@ function token_error
line = *4p
compile_error(file, line, message)
+function statement_error
+ argument statement
+ argument message
+ token_error(statement, message) ; tokens & statements have the same location format
+
; accepts EITHER file index OR pointer to filename
function compile_warning
argument file