From 64b5afd82096f3e9dfde125a8846d606db7c85fb Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Tue, 9 May 2017 10:01:10 +0100 Subject: Fix issue #63 for block comments not terminating at an EOF --- code/demo.odin | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'code') 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); + /* } -- cgit v1.2.3