UNPKG

evm2term

Version:

Translates from Egg Virtual Machine (JSON) to a summarized AST term

115 lines 2.73 kB
{ "type": "apply", "operator": { "type": "word", "line": 1, "col": 1, "length": 5, "name": "print" }, "args": [ { "type": "property", "operator": { "type": "property", "operator": { "type": "property", "operator": { "type": "apply", "operator": { "type": "word", "line": 1, "col": 8, "length": 5, "name": "object" }, "args": [ { "type": "value", "value": "x", "line": 1, "col": 8, "length": 1, "raw": "\"x\"" }, { "type": "apply", "operator": { "type": "word", "length": 5, "name": "array" }, "args": [ { "type": "apply", "operator": { "type": "word", "line": 1, "col": 14, "length": 5, "name": "object" }, "args": [ { "type": "value", "value": "z", "line": 1, "col": 14, "length": 1, "raw": "\"z\"" }, { "type": "value", "value": 3, "line": 1, "col": 17, "length": 1 } ] }, { "type": "value", "value": 4, "line": 1, "col": 21, "length": 1 } ] } ] }, "args": [ { "type": "value", "value": "x", "line": 1, "col": 25, "length": 1, "raw": "\"x\"" } ] }, "args": [ { "type": "value", "value": 0, "line": 1, "col": 27, "length": 1, "raw": "\"0\"" } ] }, "args": [ { "type": "value", "value": "z", "line": 1, "col": 29, "length": 3, "raw": "\"z\"" } ] } ] }