Open
Description
bison and byacc both assign default action { $$ = $1; }
to expression as below:
mnemonic: MN_JMP
| MN_JZ
| MN_JNZ
;
so that the result is identical to
mnemonic: MN_JMP { $$ = $1; }
| MN_JZ { $$ = $1; }
| MN_JNZ { $$ = $1; }
;
MSTA instead (even in yacc mode) creates different, incompatible (and quite big) piece of code for every line in the expression.
i'm not sure whether this is documented behaviour, but it'd be nice to have it supported when using MSTA as yacc replacement.
Metadata
Metadata
Assignees
Labels
No labels