summaryrefslogtreecommitdiff
path: root/05/main.b
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-11 23:39:54 -0500
committerpommicket <pommicket@gmail.com>2022-02-11 23:39:54 -0500
commit3db0956b193f837e2b3bf1901653e43ca18f1501 (patch)
tree7fa893286a9e6922456cb7276d6b466861d10808 /05/main.b
parent81d68505393007c7e851018a5b999ca8cf0d208e (diff)
subtraction codegen
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