This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
v0.7.0
This release improves reliability by automatically validating the grammar during the parser's initialization.
Added
ValidatePattern(ptr Pattern) error
was added to allow for manual recursive pattern validation.
Changed
- Pattern
Lexed
must now be passed as a pointer. - Pattern
Exact
must now be passed as a pointer. - Pattern
Repeated
must now be passed as a pointer. NewParser
now takesgrammar *Rule
anderrGrammar *Rule
parameters and returns(*Parser, error)
returning an error in case of invalid grammars.(pr *Parser) Parse
now takes only one parameter:source *SourceFile
.