[antlr-interest] I have a doubt

yjargudo at tiscali.es yjargudo at tiscali.es
Wed Mar 2 00:33:13 PST 2005


Hello,

I'm new with antlr and I have a doubt.

Is possible to use parser rules inside lexer rules?

For example I have this rule in my parser:

ConstantExpression
	:
		Expression
	;

And then I use this rule in lexer as follows:

ConditionalConstantDeclaration
	:
   		'#' (WS)* "Const" Identifier '=' ConstantExpression LineTerminator

	;

Thanks a lot for your help

Yolanda




Especial Oscar 2005

Todo sobre la gran fiesta del cine

http://cine.tiscali.es/oscars





More information about the antlr-interest mailing list