mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
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",
|
||
|
"" ]
|
||
|
}
|
||
|
}
|