Versions in this module Expand all Collapse all v0 v0.1.0 Sep 11, 2018 Changes in this version + var NextMatch = errors.New("no match") + type Capture interface + Capture func(values []string) error + type Error string + func (e Error) Error() string + type Mapper func(token lexer.Token) lexer.Token + type Option func(p *Parser) error + func ClearMappers() Option + func Lexer(def lexer.Definition) Option + func Map(mappers ...Mapper) Option + func Unquote(def lexer.Definition, types ...string) Option + func Upper(def lexer.Definition, types ...string) Option + func UseLookahead() Option + type Parseable interface + Parse func(lex lexer.PeekingLexer) error + type Parser struct + func Build(grammar interface{}, options ...Option) (parser *Parser, err error) + func MustBuild(grammar interface{}, options ...Option) *Parser + func (p *Parser) Lex(r io.Reader) ([]lexer.Token, error) + func (p *Parser) Parse(r io.Reader, v interface{}) (err error) + func (p *Parser) ParseBytes(b []byte, v interface{}) error + func (p *Parser) ParseString(s string, v interface{}) error + func (p *Parser) String() string