README ¶ This is compiler of lexer configuration file. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Generate(r *bufio.Reader, pkgName string, outfile string) type LexerTemplate type Parser func NewParser(r *bufio.Reader) *Parser func (p *Parser) Parse() (def string, rules [][]string, userCode string) func (p *Parser) Split() (def string, rules string, userCode string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Generate ¶ func Generate(r *bufio.Reader, pkgName string, outfile string) Types ¶ type LexerTemplate ¶ type LexerTemplate struct { PackageName string EmbeddedTmpl string StateIDToRegexIDTmpl string FinStatesTmpl string TransitionTableTmpl string RegexActionsTmpl string UserCodeTmpl string } type Parser ¶ type Parser struct { // contains filtered or unexported fields } func NewParser ¶ func NewParser(r *bufio.Reader) *Parser func (*Parser) Parse ¶ func (p *Parser) Parse() (def string, rules [][]string, userCode string) func (*Parser) Split ¶ func (p *Parser) Split() (def string, rules string, userCode string) Source Files ¶ View all Source files generator.go parser.go template.go Click to show internal directories. Click to hide internal directories.