antlr4: Index | Files

package antlr_resource

import ""


Package Files


type CaseChangingStream Uses

type CaseChangingStream struct {
    // contains filtered or unexported fields

CaseChangingStream wraps an existing CharStream, but upper cases, or lower cases the input before it is tokenized.

func NewCaseChangingStream Uses

func NewCaseChangingStream(in antlr.CharStream, upper bool) *CaseChangingStream

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.

func (*CaseChangingStream) LA Uses

func (is *CaseChangingStream) LA(offset int) int

LA gets the value of the symbol at offset from the current position from the underlying CharStream and converts it to either upper case or lower case.

Package antlr_resource imports 2 packages (graph) and is imported by 1 packages. Updated 2019-10-27. Refresh now. Tools for package owners.