[antlr-interest] How to look only for one rule?

Matthias Gutheil matthias.gutheil at informatik.uni-mannheim.de
Sat Oct 21 04:54:31 PDT 2006


Hello,

I am writing a fuzzy C grammar and I am only interesting in methods with 
parameters and return values.

The method definition is not the problem, but I want to skip anything else.
For example something like (method | ~method) doesn't work, cause so the 
first token af a real method (return type or name) goes in ~method.

Some tips?

Matthias


More information about the antlr-interest mailing list