Skip to content

MSTA: small inconsistency wrt to yacc behaviour #18

Open
@rofl0r

Description

@rofl0r

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions