diff --git a/codes/a_while.soml b/codes/a_while.soml index 79fe07b..3ff86e2 100644 --- a/codes/a_while.soml +++ b/codes/a_while.soml @@ -3,10 +3,10 @@ class Object int main() int i = 5 while_plus(i) - "out".putstring() + "out ".putstring() i = i - 1 end return i end - + end diff --git a/codes/hello_world.soml b/codes/hello_world.soml new file mode 100644 index 0000000..44d3313 --- /dev/null +++ b/codes/hello_world.soml @@ -0,0 +1,6 @@ +class Object + int main() + "Hello World".putstring() + return 1 + end +end diff --git a/codes/if_else.soml b/codes/if_else.soml index 5953086..3c42c72 100644 --- a/codes/if_else.soml +++ b/codes/if_else.soml @@ -1,7 +1,7 @@ class Object int main() - int n = 10 - if_zero( n - 12) + int n = 14 + if_plus( n - 12) "then".putstring() else "else".putstring()