Return the basic cards accepted by this Cao-Lang instance
Return a list of types that can appear on Property descriptions
The compile
function will return an object with a compilationError
if the compilation fails, rather
than throwing an exception. Exceptions are thrown on contract violation, e.g. passing in an
object that can not be deserialized into a compilable object.
{
"ty": "compileError",
"val": "someerror"
}
ty
is one of:
program
compileError
{
"lanes": [{
"name": "Foo",
"cards": [
{
"ty": "ScalarInt" , "val": 1
},
{
"ty": "Pass"
}
]
}]
}
Runs the given compiled Cao-Lang program (output of compile
).
Will run in a 'plain' Vm, no custom methods will be available!
Generated using TypeDoc
Init the error handling of the library