Browse Source

Fixed function constructor

Yentl Van Tendeloo 8 years ago
parent
commit
597f8b5ae1
3 changed files with 2 additions and 1 deletions
  1. BIN
      bootstrap/bootstrap.m.gz
  2. 1 1
      bootstrap/constructors.alc
  3. 1 0
      scripts/compile.py

BIN
bootstrap/bootstrap.m.gz


+ 1 - 1
bootstrap/constructors.alc

@@ -318,7 +318,7 @@ Action function construct_function():
 	variable_map = create_node()
 
 	inp = input()
-	while (bool_or(inp == "funcdef", inp == "mutable_funcdef")):
+	while (bool_and(inp != "funcdef", inp != "mutable_funcdef")):
 		// We skip over everything that is not a funcdef, as these are all just definitions of global stuff
 		inp = input()
 

+ 1 - 0
scripts/compile.py

@@ -3,6 +3,7 @@ import os
 import urllib2
 import urllib
 import subprocess
+import time
 
 def do_compile(address, filename, username, modulename, mode, optionals=['--debug'], grammar=""):
     filename = os.path.realpath(filename)