package lexer
import "gonum.org/v1/gonum/graph/formats/dot/internal/lexer"
Package lexer provides generated internal lexer functions for DOT parsing.
Index ¶
- Constants
- Variables
- type ActionRow
- type ActionTable
- type Lexer
- func NewLexer(src []byte) *Lexer
- func NewLexerFile(fpath string) (*Lexer, error)
- func (l *Lexer) Reset()
- func (l *Lexer) Scan() (tok *token.Token)
- type SourceContext
- type TransitionTable
Constants ¶
const ( NoState = -1 NumStates = 143 NumSymbols = 184 )
Variables ¶
var ActTab = ActionTable{ /* 143 elements not displayed */ }
var TransTab = TransitionTable{ /* 143 elements not displayed */ }
Types ¶
type ActionRow ¶
func (ActionRow) String ¶
type ActionTable ¶
type ActionTable [NumStates]ActionRow
type Lexer ¶
func NewLexer ¶
func NewLexerFile ¶
func (*Lexer) Reset ¶
func (l *Lexer) Reset()
func (*Lexer) Scan ¶
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.
Source Files ¶
acttab.go doc.go lexer.go transitiontable.go
- Version
- v0.15.1 (latest)
- Published
- Aug 16, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 12 hours ago –
Tools for package owners.