Documentation ¶
Index ¶
- type JavaScriptLexerBase
- func (l *JavaScriptLexerBase) IsRegexPossible() bool
- func (l *JavaScriptLexerBase) IsStartOfFile() bool
- func (l *JavaScriptLexerBase) IsStrictMode() bool
- func (l *JavaScriptLexerBase) NextToken() antlr.Token
- func (l *JavaScriptLexerBase) ProcessCloseBrace()
- func (l *JavaScriptLexerBase) ProcessOpenBrace()
- func (l *JavaScriptLexerBase) ProcessStringLiteral()
- type JavaScriptParserBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JavaScriptLexerBase ¶
JavaScriptLexerBase state
func (*JavaScriptLexerBase) IsRegexPossible ¶
func (l *JavaScriptLexerBase) IsRegexPossible() bool
IsRegexPossible returns true if the lexer can match a regex literal.
func (*JavaScriptLexerBase) IsStartOfFile ¶
func (l *JavaScriptLexerBase) IsStartOfFile() bool
func (*JavaScriptLexerBase) IsStrictMode ¶
func (l *JavaScriptLexerBase) IsStrictMode() bool
IsStrictMode is self explanatory.
func (*JavaScriptLexerBase) NextToken ¶
func (l *JavaScriptLexerBase) NextToken() antlr.Token
NextToken from the character stream.
func (*JavaScriptLexerBase) ProcessCloseBrace ¶
func (l *JavaScriptLexerBase) ProcessCloseBrace()
ProcessCloseBrace is called when a } is encountered during lexing, we pop a scope unless we're inside global scope.
func (*JavaScriptLexerBase) ProcessOpenBrace ¶
func (l *JavaScriptLexerBase) ProcessOpenBrace()
ProcessOpenBrace is called when a { is encountered during lexing, we push a new scope everytime.
func (*JavaScriptLexerBase) ProcessStringLiteral ¶
func (l *JavaScriptLexerBase) ProcessStringLiteral()
ProcessStringLiteral is called when lexing a string literal.
type JavaScriptParserBase ¶
type JavaScriptParserBase struct {
*antlr.BaseParser
}
JavaScriptParserBase implementation.
Click to show internal directories.
Click to hide internal directories.