Add simpler full test
This commit is contained in:
parent
a33bf77407
commit
3c41cf9876
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"functions": [
|
||||
{
|
||||
"args": [],
|
||||
"instrs": [
|
||||
{
|
||||
"label": "start"
|
||||
},
|
||||
{
|
||||
"dest": "tmp.0",
|
||||
"op": "const",
|
||||
"type": "int",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"dest": "tmp.1",
|
||||
"op": "const",
|
||||
"type": "int",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"tmp.0",
|
||||
"tmp.1"
|
||||
],
|
||||
"dest": "tmp.2",
|
||||
"funcs": [],
|
||||
"labels": [],
|
||||
"op": "add",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"tmp.2"
|
||||
],
|
||||
"funcs": [],
|
||||
"labels": [],
|
||||
"op": "return"
|
||||
}
|
||||
],
|
||||
"name": "main"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(Program '()
|
||||
(Prim '+
|
||||
(list (Int 1) (Int 2))))
|
||||
Loading…
Reference in New Issue