[antlr-interest] Is there a way to convert the input stream to uppercase for parsing

Hitesh Shetty hitesh.p.shetty at gmail.com
Tue Sep 14 03:34:45 PDT 2010


Hello,
Im trying to convert an existing grammar written for C target into one for Java.
In the C grammar there exists an init section which I figured
converted the input stream into lowercase, as:
@init {
 ANTLR_UINT32 (*oldLA) ( struct ANTLR3_INT_STREAM_struct *, ANTLR_INT32 );
oldLA = INPUT-> istream->_LA;
INPUT->setUcaseLA(INPUT, ANTLR3_FALSE);
}
Is there any equivalent way of doing this for the Java target?
Any help would be appreciated.


More information about the antlr-interest mailing list