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

Releases: JuliaServices/Rematch2.jl

v0.6.1

14 Jul 19:06
cc2d31e
Compare
Choose a tag to compare
  • Remove support for quoted expressions as literal patterns. It didn't
    work right, and it interferes with extensions to provide more clever
    introspection in the future.
  • Changed from the use of Base.isequal to Rematch2.ismatch for
    compat with Match.jl and to add some flexibility (clients can override
    it for specific types). Then implemented the usual suspects (default to
    isequal) and added support for ranges and regular expressions.
  • Added more precise support for macros to support bignums, verbatim
    literals, version identifiers, and other string macros.
  • Added support for a Symbol positional pattern (one parameter: its
    string form).
  • Removed support for Expr that merely compared with the input using
    isequel. This permits us to add perhaps more flexible expression
    matching in the future.
  • Fixed a bug in Match.jl that SubStrings will not match a regular
    expression.
  • Add support for pattern, if condition end guard syntax
  • Add support for @ismatch macro
  • Preserve pattern variable names in the generated code.
  • Remove support for let for the @match block.

v0.4.0

30 Jun 16:33
5f28b6d
Compare
Choose a tag to compare

Changes since last tagged version:

Features:

  • Provide macros by which you can either fail in the value part of a rule, or "return" early from that block of code. (#29)
  • Permit clients to specify which fields of a type should be matched positionally (#46)

Minor issues:

  • Addressed precedence issues in where patterns (#49)

Minor improvements:

  • Improve code generation by sharing parts of where clauses (#24, #25)
  • Deduplicate states that behave identically. (#43)
  • [Move the handling of labels into code generation. (#58)
  • Track the type of fields when they are fetched. (#45)

Prerelease for raicode use.

14 Jun 07:05
678a408
Compare
Choose a tag to compare
Pre-release

Snapshot for use in clients such as raicode.