Skip to content

v0.10.0

Compare
Choose a tag to compare
@CodesAway CodesAway released this 15 Aug 23:32
· 46 commits to master since this release
91b80d1

Added

  • BEXPattern syntax

    • :[group\n] to match rest of line, including line terminator
    • :[group\n$] to match rest of line, including line terminator (will also match if last line in text with no line terminator)
  • BEXPair interface extends Comparable interface (so elements are comparable, left then right, if the type is comparable

  • BEXString substring method overridden to take IntPair (including IntRange)

  • BEXPairs.bexPair helper method to create a BEXPair (can use static import)

  • IntRange.length method

Changed

  • Renamed methods which reference start/end now refer to as range
    • BEXMatcher
    • BEXMatchResult
    • ASTNodeUtilities

Fixed

  • In BEXMatcher / BEXMatchResult, throw IllegalStateException if try to get match info if a successful match hasn't occurred yet
  • IntBEXRange will throw exception if range is invalid (start and end match and exclusive on both ends, such as (1, 1))