Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoState = -1 NumStates = 102 NumSymbols = 98 )
Variables ¶
View Source
var ActTab = ActionTable{}/* 102 elements not displayed */
View Source
var TransTab = TransitionTable{}/* 102 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type ActionTable ¶
type Lexer ¶
func NewLexerFile ¶
type SourceContext ¶
type SourceContext struct {
Filepath string
}
SourceContext is a simple instance of a token.Context which contains the name of the source file.
func (*SourceContext) Source ¶
func (s *SourceContext) Source() string
type TransitionTable ¶
Let s be the current state Let r be the current input rune transitionTable[s](r) returns the next state.
Click to show internal directories.
Click to hide internal directories.