>> You mean, Fortran is not parseable by Bison, is that what you mean?
>
>Not practical.

I've written Fortran 77 parsers in yacc.  It's quite easy.

The lexical structure of Fortran is dreadful, but once you understand
the hacks required, it's straightforward to pre-scan each statement to
figure out whether it's an assignment or something else.  After that,
the tokenization is somewhat context dependent, but not hard.

It got a lot easier after 1990 once you were allowed to pay attention
to spaces.

R's,
John

_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to