Hello Again,
What is the proper way to handle expression on abstract symbols (instead of
1+2+3+4, ive got only a+b+c etc)
rmdef returns [ProcessDef process]
: ^(PEPADEF pan=IDENT a=expression)
{
process = new ProcessDef();
process.setLHS($pan.text);
}
;
expression
: ^(COOP a=expression b=expression)
| ^(PREFIX a=expression b=expression) { print($a.text); }
| ^(CHOICE a=expression b=expression)
| procek=IDENT
;
In this case print($a.text); causes NullPointerException,
--
Pozdrawiam,
-----------------------------------------------------------------------------
Dariusz Dwornikowski,
Institute of Computing Science, PoznaĆ University of Technology
www.cs.put.poznan.pl/ddwornikowski/
room 421 WE | tel. +48 61 665 21 24 | mobile: +48 533 890 600
-----------------------------------------------------------------------------
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.