This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
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 tofunc(index uint, cursor llparser.Cursor) bool
.
Removed
FragPrintOptions.HeadFmt
was replaced by the newFragPrintOptions.Format
option.
Fixed
- Fixed a few small documentation issues.