Re: Return values in a public lexer rule
Wednesday, July 24, 2002 07:30 AM
Return values for lexer rules would only be used in the lexer. Parsers don't call lexer rules, they act on Tokens the lexer creates. So you can attach the value you need to your own Token class and then pull it out of the Token in the parser.