[antlr-interest] Fortran lexer problem

Юрушкин Михаил yurushkin at rambler.ru
Fri Jan 15 09:50:49 PST 2010


Good day,

I want to add comments of Fortran 77:

"c xxxxx";
First symbol in column is 'c' - it means that the following line is a line
of comment.

but I also have NAME token, that will conflict with such COMMENT rule.
('c' can be a name).

Is it possible to select rule by my own predicate? Are there any other
more clear solvings of
this problem?


-- 
Best regards,
Michael


More information about the antlr-interest mailing list