kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

match.ebnf (307B)


      1 // Match-API fixture for --lexer-standalone. A plain pattern (NUM, unanchored)
      2 // and an end-anchored one (WORD$) so match_anchored/full/find/iter and the
      3 // runtime `opts.multiline` `$` are exercised against the gram_match_* drivers.
      4 %lex { NUM = [0-9][0-9]*; WORD = [a-z][a-z]*$; }
      5 start = (NUM | WORD)*;