17 lines
285 B
JSON
17 lines
285 B
JSON
|
{
|
||
|
"comment": "Basic grammar that contains a nullable A nonterminal.",
|
||
|
|
||
|
"lex": {
|
||
|
"rules": [
|
||
|
["\\s+", "/* skip whitespace */"],
|
||
|
["x", "return 'x';"]
|
||
|
]
|
||
|
},
|
||
|
|
||
|
"tokens": "x",
|
||
|
"bnf": {
|
||
|
"A" :[ "A x",
|
||
|
"" ]
|
||
|
}
|
||
|
}
|