in reply to Re: Parsing and converting Fortran expression
in thread Parsing and converting Fortran expression [solved]
I'm a big fan of Parse::Yapp myself, but I thought I'd try to convert a simple arithmetic parser
I had to build a parse tree and then see what it took to generate the C code. It was just a fun little project.
After submitting it, I realized the parse tree, though cool, was not needed for such a simple
problem, so the second one just generates C directly.
A possible choice is to use Parse::Yapp to generate the parse tree, and then my XXX::C subs to produce the code.
To kikuchiyo, I'd also suggest reading the "Which is "best"? paragraph above several times, it's a very good analysis
of the choices and problems they present.
Btw, *all* parsers are sneaky and complicated and have many tricks and traps for the unwary. :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parsing and converting Fortran expression
by kikuchiyo (Hermit) on Aug 26, 2015 at 18:52 UTC | |
by Anonymous Monk on Aug 26, 2015 at 19:11 UTC | |
by kikuchiyo (Hermit) on Aug 26, 2015 at 20:17 UTC | |
by Anonymous Monk on Aug 26, 2015 at 20:09 UTC |