Documentation
¶
Index ¶
- func Dump(result any, omitSemi ...bool)
- func Fdump(w io.Writer, result any, prefix, indent string, omitSemi bool)
- type Compiler
- func (p *Compiler) Match(filename string, src any, conf *Config) (next []*Token, result any, err error)
- func (p *Compiler) Parse(filename string, src any, conf *Config) (result any, err error)
- func (p *Compiler) ParseExpr(x string, conf *Config) (result any, err error)
- func (p *Compiler) ParseExprFrom(filename string, src any, conf *Config) (result any, err error)
- type Config
- type Scanner
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compiler ¶
Compiler represents a TPL compiler.
func (*Compiler) Match ¶
func (p *Compiler) Match(filename string, src any, conf *Config) (next []*Token, result any, err error)
Match matches a source file.
type Config ¶
type Config struct { Scanner Scanner ScanMode scanner.ScanMode ScanErrorHandler scanner.ScanErrorHandler }
Config represents a parsing configuration of Compiler.Parse.
Click to show internal directories.
Click to hide internal directories.