in reply to Re: Help with tweaking Parse::RecDescent grammar
in thread Help with tweaking Parse::RecDescent grammar
Hence, the parsing of the IF statement failed. Where does it fail? Easy, var_value returns the value from a code block. It's looking up the value of rmove, but that variable wasn't set. Instead, the variable RMOVE was set.
The problem here is that the parser is already doing the calculations, and causing the parse the language differently on the outcome of those calculations. Icky.
Anything more complicated that a calculater should probably have separate compile and runtime phases.
Abigail
|
|---|