Class CaseChangingCharStream

java.lang.Object
com.github._1c_syntax.bsl.parser.CaseChangingCharStream
All Implemented Interfaces:
CharStream, IntStream, UnicodeCharStream

public class CaseChangingCharStream extends Object implements UnicodeCharStream
This class supports case-insensitive lexing by wrapping an existing CharStream and forcing the lexer to see either upper or lowercase characters. Grammar literals should then be either upper or lower case such as 'BEGIN' or 'begin'. The text of the character stream is unaffected. Example: input 'BeGiN' would match lexer rule 'BEGIN' if constructor parameter upper=true but getText() would return 'BeGiN'.