Hi,

is it possible to have a lexer/parser which supports a dynamic list of
strings for a specific token?

I.e. something like this:

grammar Test;
rule : name+;
name: NAMETOKEN;
NAMETOKEN: 'Name1' | 'Name2' | 'Name3';

I'd like to replace the list of alternatives for NAMETOKEN with a list
of alternatives that is loaded at program start (or when the parser is
loaded) from an external configuration file.

Is this possible?

Thanks for any hints.

Regards, Florian

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to