Versions in this module Expand all Collapse all v0 v0.12.1 Dec 29, 2021 v0.12.0 Feb 7, 2021 Changes in this version + type Error struct + Inner error + Location Location v0.11.0 May 8, 2020 Changes in this version + type Cloner interface + Clone func() interface{} type Invoke + Location Location + type Location struct + Col int + Line int + Offset int + func UnpackError(err error) (error, Location, bool) type Option + func AllowInvalidUTF8(b bool) Option + func Entrypoint(ruleName string) Option + func InitState(key string, value interface{}) Option + func MaxExpressions(maxExprCnt uint64) Option + func Statistics(stats *Stats, choiceNoMatch string) Option + type Stats struct + ChoiceAltCnt map[string]map[string]int + ExprCnt uint64 v0.10.0 Apr 16, 2019 v0.9.0 Apr 16, 2019 v0.8.0 Mar 12, 2019 v0.7.0 Mar 4, 2019 v0.6.0 Nov 9, 2018 v0.0.1 Jul 12, 2017 Changes in this version + func Parse(filename string, b []byte, opts ...Option) (interface{}, error) + func ParseFile(filename string, opts ...Option) (i interface{}, err error) + func ParseReader(filename string, r io.Reader, opts ...Option) (interface{}, error) + type Invoke struct + Arguments []Node + Function string + func (node Invoke) Method() string + func (node Invoke) Visit(visitor Visitor) error + type Node interface + Visit func(Visitor) error + type Option func(*parser) Option + func Debug(b bool) Option + func GlobalStore(key string, value interface{}) Option + func Memoize(b bool) Option + func Recover(b bool) Option + type Paragraph []Sequence + func (node Paragraph) Visit(visitor Visitor) error + type Preformatted []Sequence + func (node Preformatted) Visit(visitor Visitor) error + type Sequence []Node + func (node Sequence) Visit(visitor Visitor) error + type String string + func (node String) Visit(visitor Visitor) error + type Visitor interface + VisitInvoke func(Invoke) error + VisitParagraph func(Paragraph) error + VisitPreformatted func(Preformatted) error + VisitSequence func(Sequence) error + VisitString func(String) error