Skip to content

Releases: MaxXSoft/laps

laps v0.1.7

Choose a tag to compare

@MaxXSoft MaxXSoft released this 30 Dec 09:12
d7c98b3

Added

  • AST type TokenPrefix.

Fixed

  • Issue about method maybe of ASTs generate by macro token_ast.

laps v0.1.6

Choose a tag to compare

@MaxXSoft MaxXSoft released this 24 Dec 11:15
5c3c4a1

Added

  • Implement Parse and Spanned trait for tuples.
  • AST type OptPrefix, OptTokenPrefix, OptSepSeq and NonEmptyOptSepSeq.
  • Trait TrySpan.
  • Attribute try_span for derive macro Spanned.

Changed

  • Improve performance of minimizing DFA.
  • Mark AST Quoted as deprecated.
  • Derived PartialOrd and Ord trait for AST types (except Quoted).

Fixed

  • Issue about parsing if-guard in token_ast.

laps v0.1.5

Choose a tag to compare

@MaxXSoft MaxXSoft released this 17 Dec 13:05
2106e59

Added

  • Method file_type for Span.

Changed

  • Improve performance of compiling regular expressions again.

laps v0.1.4

Choose a tag to compare

@MaxXSoft MaxXSoft released this 13 Dec 13:48
919a0a1

Added

  • Method inner and inner_mut for TokenBuffer.

Fixed

  • Return type of method Lexer::input_mut.

laps v0.1.3

Choose a tag to compare

@MaxXSoft MaxXSoft released this 10 Dec 07:58
3c59c7a

Added

  • laps::lexer::signed_int_literal for parsing integer literal with an optional sign.
  • If-guard support in kind pattern of token_ast macro.
  • Method new for Reader and ByteReader.
  • Method set_line_col for trait InputStream, for supporting C preprocessor.
  • Method input and input_mut for Lexer.

Changed

  • Some document comments.
  • Improve performance of compiling regular expressions.
  • Bumped dependency colored to version 2.1.0.

Fixed

  • Issues about printing line information in Span.

laps v0.1.2

Choose a tag to compare

@MaxXSoft MaxXSoft released this 13 Jul 11:07
339afd0

Changed

  • Made Span fully thread-safe (embarrassed).

laps v0.1.1

Choose a tag to compare

@MaxXSoft MaxXSoft released this 13 Jul 11:01
4ed7a45

Changed

  • Made Span thread-safe.
  • Enabled LTO for release mode.
  • Supported transition table compression.

laps v0.1.0

Choose a tag to compare

@MaxXSoft MaxXSoft released this 17 Jun 14:07
8dbafb3

Added

  • Sub-crate laps_regex for generating state-transition table for multiple regular expressions.
  • Trait and derive macro Tokenize, allow users to get a lexer by deriving Tokenize for a token kind.

Changed

  • New and more intuitive syntax for macro token_ast.
  • Span and InputStream now supports generic character types.
  • Removed trait TokenBuilder and struct Ident.
  • Removed some lexing methods in trait InputStream.

laps v0.0.2

Choose a tag to compare

@MaxXSoft MaxXSoft released this 13 Jan 14:03
2195cd0

Added

  • derive syntax for macro token_ast.
  • More examples, including sexp, calc and json.
  • More documentation comments.
  • Module prelude for some common traits and macros.
  • token_kind now implements Clone, 1ryFrom<Kind> and 1ryFrom<&Kind> for token kinds.
  • token_ast now implements unwrap and unwrap_ref methods for token ASTs.

Changed

  • Updated version of some dependencies.
  • Feature no-logger to default feature logger.
  • License to either Apache 2.0 or MIT.

Fixed

  • Fault about byte buffer offset (byte_buf_offset) in Reader.
  • Fault about namespace of some Rust preludes in procedure macros.
  • Fault about error message in method TokenStream::expect.
  • Fault about string width calculation in Span's error logging related methods.