mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
27 lines
748 B
JSON
27 lines
748 B
JSON
|
{
|
||
|
"author": "Jay Ligatti",
|
||
|
|
||
|
"tokens": "ADD SUB MUL MOV LOD STR JMP BEQ BLT RDN PTN HLT INT LABEL COLON",
|
||
|
"bnf": {
|
||
|
"instlist" :[ "instlist label COLON inst",
|
||
|
"instlist inst",
|
||
|
"inst" ],
|
||
|
|
||
|
"inst" :[ "ADD intt intt intt",
|
||
|
"SUB intt intt intt",
|
||
|
"MUL intt intt intt",
|
||
|
"MOV intt intt",
|
||
|
"LOD intt intt intt",
|
||
|
"STR intt intt intt",
|
||
|
"JMP intt intt intt",
|
||
|
"BEQ intt intt intt",
|
||
|
"BLT intt intt intt",
|
||
|
"RDN intt",
|
||
|
"PTN intt",
|
||
|
"HLT intt"],
|
||
|
"label" :[ "LABEL" ],
|
||
|
"intt" :[ "INT", "label" ]
|
||
|
}
|
||
|
}
|
||
|
|