NewCaseChangingStream returns a new CaseChangingStream that forces all tokens read from the underlying stream to be either upper case or lower case based on the upper argument.
(in antlr.CharStream, upper bool)
| 32 | // all tokens read from the underlying stream to be either upper case |
| 33 | // or lower case based on the upper argument. |
| 34 | func NewCaseChangingStream(in antlr.CharStream, upper bool) *CaseChangingStream { |
| 35 | return &CaseChangingStream{ |
| 36 | in, upper, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // LA gets the value of the symbol at offset from the current position |
| 41 | // from the underlying CharStream and converts it to either upper case |