Is there recursion in ANTLR in the sense that there is a call stack? Example:
parenset
: LPAREN
parenset*
RPAREN
;
LPAREN: '(';
RPAREN: ')';
Should just verify that there are as many left parenthesis as there right. However in ANTLRWorks 1.4.3, in the interpreter when I type in '((()))', I get
Where are my other right parens?! Am I doing something incorrect? Thanks!
.g
file – Foo Bah*
character atparenset*
. – Sonson