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

v0.8.0

Latest
Compare
Choose a tag to compare
@romshark romshark released this 03 Nov 12:12
· 2 commits to master since this release
23b0ffa

This release introduces improved performance for the Lexed pattern, improved parse-tree formatting options and the new recursion control feature which allows limiting the maximum level of recursion when parsing, hence avoiding runtime panics.

Added

  • Parser.MaxRecursionLevel specifying the maximum tolerated recursion level.
  • Lexed.MinLen specifying the minimum expected length of the lexed token.
  • FragPrintOptions.Format specifying the formatting of a parse-tree node (optionally both header and body).

Changed

  • Lexed.Fn changed its type to func(index uint, cursor llparser.Cursor) bool.

Removed

  • FragPrintOptions.HeadFmt was replaced by the new FragPrintOptions.Format option.

Fixed

  • Fixed a few small documentation issues.