nitron

commit 08f7ac7b2f81003ca761cae859516db69903c933

Author: mesyeti <mesyeti@mesyeti.uk>

remove debug output

 basic-std/std/file.bas | 22 +++++++++++-----------
 basic/source/parser.c | 10 ----------


diff --git a/basic/source/parser.c b/basic/source/parser.c
index 9d7de8224336a0d2a72b814befba8f398451d794..7639ba55f501ab953e4c0919e358ded7950b33c4 100644
--- a/basic/source/parser.c
+++ b/basic/source/parser.c
@@ -770,10 +770,6 @@ static Node ParseNode(Parser* p) {
 	static int level = 0;
 
 	Token* token = &p->tokens[p->i];
-	for (int i = 0; i < level; ++ i) {
-		printf("  ");
-	}
-	printf("Parsing '%s' on line %d\n", Lexer_TypeAsString(token), token->err.line);
 
 	++ level;
 
@@ -820,12 +816,6 @@ 			);
 			exit(1);
 		}
 	}
-
-	-- level;
-	for (int i = 0; i < level; ++ i) {
-		printf("  ");
-	}
-	printf("Finished parsing '%s' on line %d\n", Lexer_TypeAsString(token), token->err.line);
 
 	return ret;
 }




diff --git a/basic-std/std/file.bas b/basic-std/std/file.bas
index 38a2c0218a9b8f3abdfbca7b3d2a6d23f110fbd4..f89c1c1a239e6c0b0cbe06c25546fa7541ce5d22 100644
--- a/basic-std/std/file.bas
+++ b/basic-std/std/file.bas
@@ -1,11 +1,11 @@
 'NITRON
 
-'extern func fopen(path as ptr(char), mode as ptr(char)) ptr(unit)
-'extern func fclose(file as ptr(unit)) i32
-''
-'type File
-''	file as ptr(unit)
-'end
+extern func fopen(path as ptr(char), mode as ptr(char)) ptr(unit)
+extern func fclose(file as ptr(unit)) i32
+
+type File
+	file as ptr(unit)
+end
 
 func File_Open(this as ptr(File), path as ptr(char), write as bool) bool
 	dim file    as ptr(unit)
@@ -19,10 +19,10 @@ 	end
 
 	file = fopen(path, modeStr)
 
-	'if file != 0 then
-	''	return 0
-	'end
+	if file != 0 then
+		return 0
+	end
 
-	'this.file = file
-	'return 1
+	this.file = file
+	return 1
 end