[antlr-interest] Diference bettew Tokens and Lexical Rules
Victor Giordano
power_giordo at yahoo.com.ar
Wed Aug 11 18:57:43 PDT 2010
Hi there!!. How you doing guys? Hope good!.
A have another question about tokens and lexical rules, i really don't
get the idea...
For example, assume we have this:
1)
tokens
{
PLUS= '+';
}
2) PLUS : '+';
and then a rule
expr: INT (PLUS INT)*;
so... if a use one of another is exactly the same. The parse tree is the
same, and the generated AST is also the same.
Can you help me, and try to explain it to me. I read the book, but i
don't understand.
Thanks for advance.
Greetins!.
More information about the antlr-interest
mailing list