diff ide/compiler/compiler.py @ 6:1784af239df4

Added error list
author windel
date Fri, 07 Oct 2011 11:20:06 +0200
parents 818f80afa78b
children 2db4d2b362e6
line wrap: on
line diff
--- a/ide/compiler/compiler.py	Thu Sep 22 17:44:31 2011 +0200
+++ b/ide/compiler/compiler.py	Fri Oct 07 11:20:06 2011 +0200
@@ -16,11 +16,11 @@
 
    def compilesource(self, src):
       """ Front end that handles the stages: """
+      self.errorlist = []
       # Pass 1: parsing and type checking
       tokens = lexer.tokenize(src) # Lexical stage
       p = Parser(tokens)
       ast = p.parseModule() # Parse a module
-      print(p.errorlist)
       if len(p.errorlist) > 0:
          self.errorlist = p.errorlist
          return