grammar parser lexer antlr letteral

Posted by BB on Stack Overflow See other posts from Stack Overflow or by BB
Published on 2010-03-23T07:27:42Z Indexed on 2010/03/23 7:33 UTC
Read the original article Hit count: 533

Filed under:
|
|
|
|

What's the difference between this grammar:

...
if_statement : 'if' condition 'then' statement 'else' statement 'end_if';
... 

and this:

...
if_statement : IF condition THEN statement ELSE statement END_IF;
...

IF : 'if';
THEN: 'then';
ELSE: 'else';
END_IF: 'end_if';
....

?

If there is any difference, as this impacts on performance ... Thanks

© Stack Overflow or respective owner

Related posts about antlr

Related posts about parser