Below is my rule, when i replace $2 with = my code works. I know by default all literal tokens uses their ascii value (hence why multi character token require a definition)
The below doesnt work. The function is called with 0 instead of = like i expect. is there an option i can set? (It doesn t appear so via man pages)
AssignExpr: var = rval { $$ = func($1, $2, $3); }
In another piece of code i have MathOp: = | + | % ...
hence why i am interested.