Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created February 12, 2013 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/4761622 to your computer and use it in GitHub Desktop.
Save einarwh/4761622 to your computer and use it in GitHub Desktop.
The JSON incarnation of the Mkay AST representing a comparison between property X and the result of adding three values together.
{
"type": "call",
"value": ">",
"operands": [
{
"type": "property",
"value": "X"
},
{
"type": "call",
"value": "+",
"operands": [
{
"type": "property",
"value": "A"
},
{
"type": "property",
"value": "B"
},
{
"type": "property",
"value": "C"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment