Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.3 KB

File metadata and controls

32 lines (23 loc) · 1.3 KB

Changelog

All notable changes will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

  • Refactored CustomLexer to add a new CustomLexerContext type that is passed to state functions. This context provides access to the underlying Lexer as well as additional helper methods for lexing.

0.2.0 - 2025-10-31

  • The EOF token emitted by the Lexer now includes the position where the EOF is encountered.
  • The Parser now includes NewNode and SetRoot methods. These methods are useful for parsers that need to build the parse tree themselves instead of using the default methods on the Parser.
  • The Lexer API has been completely redesigned. A Lexer interface was added and there are now two implementations: ScanningLexer and CustomLexer. ScanningLexer is based on text/scanner and can handle many use cases. CustomLexer allows for more custom lexing behavior to be implemented (#129).

0.1.0 - 2025-02-24

  • Initial release