Skip to content

reflex v6.3

Latest

Choose a tag to compare

@genivia-inc genivia-inc released this 17 May 13:43

What's new?

  • new AbstractMatcher methods chr_last() and wchr_last() to extract the last character of a matching pattern, which is useful in lexers e.g. yytext[yyleng-1] is simply chr_last()
  • new AbstractMatcher methods chr_next() and wchr_next() to inspect the next character in the input without consuming it, i.e. the character that follows a match or EOF
  • new AbstractMatcher method empty() to check if a match is empty (same as size() == 0), useful when searching, splitting or matching input
  • add new example words.l with %option find to search input