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

v0.2.0

Compare
Choose a tag to compare
@romshark romshark released this 01 Sep 14:49
· 39 commits to master since this release
2ae3898

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 of string.
  • llparser.Fragment.Src now returns []rune instead of string.
  • llparser.TermExact.Expectation is now of type []rune instead of string.
  • llparser.Checked.Fn is now of type func([]rune) bool instead of func(string) bool.
  • llparser.Lexer.ReadExact now accepts expectation []rune instead of expectation 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,
)