diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-05-09 10:01:10 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-05-09 10:01:10 +0100 |
| commit | 64b5afd82096f3e9dfde125a8846d606db7c85fb (patch) | |
| tree | 3771f57ca8afc6420ce11a219f0cb31108b0eb81 /code | |
| parent | 7692061eef48765ac51b8a8f3024491381fdf182 (diff) | |
Fix issue #63 for block comments not terminating at an EOF
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); + /* } |