kit

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

ok.ebnf (305B)


      1 // Byte-mode grammar exercising \u and \U scalar escapes. These stay
      2 // valid when Unicode/utf8 lexer support is compiled out (GRAMGEN_NO_UNICODE):
      3 // each escape lowers to its UTF-8 bytes inside the byte-mode string literal.
      4 %lex {
      5   LAMBDA = "\u03BB";
      6   ROCKET = "\U0001F680";
      7 }
      8 
      9 start = LAMBDA ROCKET;