[antlr-interest] Parsing Parts of Java Code

Matthias Gutheil matthias.gutheil at informatik.uni-mannheim.de
Sat Jan 21 15:17:03 PST 2006


Hello,

I am using the java1.5 grammer from John Mitchell and Terence Parr and
others. I can build the AST and worked on it to add the code line and
view comments.

Now I need to parse only parts of a java program e.g.

stack.push("need");
stack.push("help");
System.out.println(stack.toString());
top();

Is that possible with the java1.5 grammer by a trick? :-)

Cheers
Matthias

-- 
Matthias Gutheil, Dipl. Inform.
Universität Mannheim
Lehrstuhl für Softwaretechnik
A5, 6, Gebäudeteil B
68131 Mannheim
Germany

E-Mail: matthias.gutheil at informatik.uni-mannheim.de
Tel: (+49) 621 181 3913


More information about the antlr-interest mailing list