diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/code/demo.odin b/code/demo.odin index 54ad01201..660594bae 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,19 +1,3 @@ -#import "fmt.odin"; -#import "os.odin"; - main :: proc() { - immutable program := "+ + * - /"; - accumulator := 0; - - for token in program { - match token { - case '+': accumulator += 1; - case '-': accumulator -= 1; - case '*': accumulator *= 2; - case '/': accumulator /= 2; - default: // Ignore everything else - } - } - - fmt.printf("The program \"%s\" calculates the value %d\n", program, accumulator); + /* } |