Skip to content

Instantly share code, notes, and snippets.

@abcarroll
Created May 24, 2021 22:39
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 abcarroll/1b23913d91529abbdd795fc547c1605c to your computer and use it in GitHub Desktop.
Save abcarroll/1b23913d91529abbdd795fc547c1605c to your computer and use it in GitHub Desktop.
Example VmScript/JSON Unit (WIP)
{
"units": [
{
"name": "test",
"fn": [
{
"name": "main",
"param": [
{
"type": {
"name": "int"
},
"name": "argc"
},
{
"type": {
"name": "array",
"type": "str"
},
"name": "argv"
}
],
"body": [
{
"printf": [
{
"const": {
"type": "str",
"value": "passed parameters: %i"
}
},
{
"value": {
"ref": "argc"
}
}
]
},
{
"return": [
{
"const": {
"type": "int",
"value": "1"
}
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment