kit

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

anchors_utf8.ebnf (330B)


      1 // Tier-1 edge anchors in utf8 mode: the scalar pipeline must lower start/end
      2 // anchors to the same zero-width DFA encoding as the byte pipeline, and the C and
      3 // Python generators must agree byte-for-byte.
      4 %lex :utf8 {
      5   KW = \A "if";
      6   END = "x" \z;
      7   W = [\p{L}] [\p{L}]*;
      8   NUM = [0-9] [0-9]*;
      9 }
     10 
     11 start = KW | END | W | NUM;