Skip to content

0.5.4

Compare
Choose a tag to compare
@zazedd zazedd released this 16 Jul 00:25
· 33 commits to master since this release
91b1147

New features

  • patterns >>> function_name as res
    • this mikmatch extension takes all bound expressions to the left (in order) and passes them to function_name (semantics might change in the future, might not need to be bound at all)
    • the result from this application is named res
  • let re = {%mik|some regex|} as an alternative to let%mik re = {|some regex|}
  • match str with | {%mik|some regex|} -> ... | ...
    • inside a regular match case, only patterns with %mik inside the string definition are compiled to an RE.
    • raw string matching allowed
  • access to RE bound variables inside respective match guards

Bug fixes and more

  • Generated ccode for match%mik/%pcre, function%mik/%pcreoptimized
  • Fixed escaping for strings and '\' in %mik expressions