diff options
| author | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2025-12-20 03:44:23 +0300 |
|---|---|---|
| committer | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2025-12-20 03:44:23 +0300 |
| commit | 061cd0c21bc8cf3cd5f7d0b1680fa06573e26bf6 (patch) | |
| tree | f53f129a1b7fc09e9ec8710436a1d701ae70e979 /module/sh9parser.m | |
| parent | 32d461348f2fa3578cfbbbe3fec9209bd39a10a9 (diff) | |
Update parse_toks declaration
Diffstat (limited to 'module/sh9parser.m')
| -rw-r--r-- | module/sh9parser.m | 4 |
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 { |
