[antlr-interest] limit the number of characters in a string

waqas javed waqasjaved at gmail.com
Tue Sep 23 08:30:26 PDT 2008


Hi,

   I am writing a parser in antlr. Can you tell me how I can limit the number 
of characters in string. Actually I want to limit the max number of characters 
for an identifier to 32.

   I am using the comman ('a'..'z')+ but this dont put any restriction on the 
max number of characters that can be there in an identifier.

regards,

waqas



More information about the antlr-interest mailing list