Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

v0.7.0

Compare
Choose a tag to compare
@romshark romshark released this 27 Oct 10:22
· 7 commits to master since this release

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 takes grammar *Rule and errGrammar *Rule parameters and returns (*Parser, error) returning an error in case of invalid grammars.
  • (pr *Parser) Parse now takes only one parameter: source *SourceFile.