summaryrefslogtreecommitdiff
path: root/module/sh9parser.m
diff options
context:
space:
mode:
authorKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-20 03:44:23 +0300
committerKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-20 03:44:23 +0300
commit061cd0c21bc8cf3cd5f7d0b1680fa06573e26bf6 (patch)
treef53f129a1b7fc09e9ec8710436a1d701ae70e979 /module/sh9parser.m
parent32d461348f2fa3578cfbbbe3fec9209bd39a10a9 (diff)
Update parse_toks declaration
Diffstat (limited to 'module/sh9parser.m')
-rw-r--r--module/sh9parser.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/sh9parser.m b/module/sh9parser.m
index aa8a403..6e808b1 100644
--- a/module/sh9parser.m
+++ b/module/sh9parser.m
@@ -9,7 +9,7 @@ print_toks: fn(toks: array of ref TokNode);
print_toks_short: fn(toks: array of ref TokNode);
check_grammar_node_match: fn(toks: array of ref TokNode, gn: ref GrammarNode): int;
replace_toks: fn(src: array of ref TokNode, replace_start: int, replace_len: int, replace_with: array of ref TokNode): array of ref TokNode;
-parse_toks: fn(toks: array of ref TokNode, g: array of ref GrammarNode): array of ref TokNode;
+parse_toks: fn(toks: array of ref TokNode, g: array of ref GrammarNode, debug_printing: int): array of ref TokNode;
init: fn();
TokNode: adt {
@@ -17,6 +17,7 @@ TokNode: adt {
line: int;
tok: string;
typ: string;
+ retcode: int;
};
ModProc: adt {
@@ -46,6 +47,7 @@ ParserCtx: adt {
find_var_in_current_module: fn(ctx: self ref ParserCtx, name: string): ref ModVar;
find_module: fn(ctx: self ref ParserCtx, name: string): ref ShModule;
print_all_vars: fn(ctx: self ref ParserCtx);
+ ctxt: ref Draw->Context;
};
GrammarNode: adt {