package parser
import "gonum.org/v1/gonum/graph/formats/dot/internal/parser"
Package parser provides generated internal parsing functions for DOT parsing.
Index ¶
- type Attrib
- type Context
- type Parser
- func NewParser() *Parser
- func (p *Parser) Error(err error, scanner Scanner) (recovered bool, errorAttrib *parseError.Error)
- func (p *Parser) Parse(scanner Scanner) (res interface{}, err error)
- func (p *Parser) Reset()
- type ProdTab
- type ProdTabEntry
- type Scanner
Types ¶
type Attrib ¶
type Attrib interface { }
type Context ¶
type Context interface{}
Parser-specific user-defined and entirely-optional context, accessible as '$Context' in SDT actions.
type Parser ¶
type Parser struct { Context Context // contains filtered or unexported fields }
func NewParser ¶
func NewParser() *Parser
func (*Parser) Error ¶
func (*Parser) Parse ¶
func (*Parser) Reset ¶
func (p *Parser) Reset()
type ProdTab ¶
type ProdTab [numProductions]ProdTabEntry
type ProdTabEntry ¶
type ProdTabEntry struct { String string Id string NTType int Index int NumSymbols int ReduceFunc func([]Attrib, interface{}) (Attrib, error) }
type Scanner ¶
Source Files ¶
action.go actiontable.go context.go doc.go gototable.go parser.go productionstable.go
- Version
- v0.15.1 (latest)
- Published
- Aug 16, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 12 hours ago –
Tools for package owners.