diff options
| author | uvok | 2026-01-13 20:46:56 +0100 |
|---|---|---|
| committer | uvok | 2026-01-13 20:46:56 +0100 |
| commit | 0bfd1dc5dbbd34353ae6322aeeeeb7fb19b0dc8d (patch) | |
| tree | c87eda0fbd63dbaaf649d3d3b4c4ec94899ce5eb /nandgame | |
| parent | db85854ffbc3986193eb67b4e6ed44e18d2ad3f7 (diff) | |
Fix syntax/ctor error in parser
Diffstat (limited to 'nandgame')
| -rwxr-xr-x | nandgame/assembler/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nandgame/assembler/parser.py b/nandgame/assembler/parser.py index 6875fe8..1e2de23 100755 --- a/nandgame/assembler/parser.py +++ b/nandgame/assembler/parser.py @@ -103,7 +103,7 @@ def p_no_arg(p: P) -> None: def p_onearg_invalid(p: P) -> None: """one_arg_invalid : opcode argument""" op: Tuple[str,str] = p[1] - p[0] = pt.ErrorInstruction(*op, p[2], None, None, lineno=p.lineno(1), error_message="Invalid number of arguments") + p[0] = pt.ErrorInstruction(p.lineno(1), *op, p[2], None, None, error_message="No opcode only supports one argument.") pass |
