Created
March 27, 2015 05:49
-
-
Save makoConstruct/c35c10bac0bdbe3fa078 to your computer and use it in GitHub Desktop.
example of the termpose representation of a simple Treesh0 program.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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