Sha256: 82e1c27b49304a395f6512a369680f68af202b015f665ecc44ac9971af1d47eb
Contents?: true
Size: 994 Bytes
Versions: 14
Compression:
Stored size: 994 Bytes
Contents
{ "rules": [ ["\\s+", "/* skip whitespace */"], ["\\/\\*[^*]*\\*", "return yy.lexComment(this);"], ["[a-zA-Z][a-zA-Z0-9_-]*", "return 'ID';"], ["\"[^\"]+\"", "yytext = yytext.substr(1, yyleng-2); return 'STRING';"], ["'[^']+'", "yytext = yytext.substr(1, yyleng-2); return 'STRING';"], [":", "return ':';"], [";", "return ';';"], ["\\|", "return '|';"], ["%%", "return '%%';"], ["%prec\\b", "return 'PREC';"], ["%start\\b", "return 'START';"], ["%left\\b", "return 'LEFT';"], ["%right\\b", "return 'RIGHT';"], ["%nonassoc\\b", "return 'NONASSOC';"], ["%[a-zA-Z]+[^\\n]*", "/* ignore unrecognized decl */"], ["\\{\\{[^}]*\\}", "return yy.lexAction(this);"], ["\\{[^}]*\\}", "yytext = yytext.substr(1, yyleng-2); return 'ACTION';"], ["<[^>]*>", "yytext = yytext.substr(1, yyleng-2); return 'ACTION';"], [".", "/* ignore bad characters */"], ["$", "return 'EOF';"] ] }
Version data entries
14 entries across 7 versions & 1 rubygems