Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndPosition ¶
func GetRange ¶
func GetRange(token CanStartStopToken) *ssa.Range
Types ¶
type CanStartStopToken ¶
type CanStartStopToken interface { GetStop() antlr.Token GetStart() antlr.Token GetText() string }
GetText() string }
type ErrorListener ¶
type ErrorListener struct { *antlr.DefaultErrorListener // contains filtered or unexported fields }
error listener for lexer and parser
func NewErrorListener ¶
func NewErrorListener() *ErrorListener
func (*ErrorListener) GetErrors ¶
func (el *ErrorListener) GetErrors() []string
func (*ErrorListener) SyntaxError ¶
func (el *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
type LegacyErrorListener ¶
type LegacyErrorListener struct { *antlr.DefaultErrorListener // contains filtered or unexported fields }
error listener for lexer and parser
func NewLegacyErrorListener ¶
func NewLegacyErrorListener() *LegacyErrorListener
func (*LegacyErrorListener) GetErrors ¶
func (el *LegacyErrorListener) GetErrors() []string
func (*LegacyErrorListener) SyntaxError ¶
func (el *LegacyErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
Click to show internal directories.
Click to hide internal directories.