Skip to content

Instantly share code, notes, and snippets.

@makoConstruct
Created March 27, 2015 05:49
Show Gist options
  • Save makoConstruct/c35c10bac0bdbe3fa078 to your computer and use it in GitHub Desktop.
Save makoConstruct/c35c10bac0bdbe3fa078 to your computer and use it in GitHub Desktop.
example of the termpose representation of a simple Treesh0 program.
def
name a
type Int32
assign
i 1
def
name b
type Int32
assign
f 2
fun
name f
inputs
def
name a
type Int32
def
name b
type Float
output Int32
code
add
a
round b
def
name c
type Int32
assign
f
a
b
println
if
condition
greaterThan
c
1
then
println okay
else
println nokay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment