This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
v0.2.0
Added
- Added a new pattern
Lexed
to allow instructing the lexer to lex a particular sequence of characters specified by the grammar.
Changed
llparser.SourceFile.Src
is now of type[]rune
instead ofstring
.llparser.Fragment.Src
now returns[]rune
instead ofstring
.llparser.TermExact.Expectation
is now of type[]rune
instead ofstring
.llparser.Checked.Fn
is now of typefunc([]rune) bool
instead offunc(string) bool
.llparser.Lexer.ReadExact
now acceptsexpectation []rune
instead ofexpectation string
as its first parameter.llparser.Lexer
now requires a new method to be supported by the lexer implementation:
ReadUntil(
fn func(Cursor) uint,
kind FragmentKind,
) (
token *Token,
err error,
)