diff python/c3/parser.py @ 186:46d62dadd61b

Improved testsuite
author Windel Bouwman
date Sat, 25 May 2013 14:26:25 +0200
parents ee0d30533dae
children 003c8a976fff
line wrap: on
line diff
--- a/python/c3/parser.py	Fri May 24 20:45:03 2013 +0200
+++ b/python/c3/parser.py	Sat May 25 14:26:25 2013 +0200
@@ -16,9 +16,9 @@
       self.sema.reinit()
       try:
          self.parsePackage()
+         return self.sema.mod
       except CompilerError as e:
          self.diag.addDiag(e)
-      return self.sema.mod
    def Error(self, msg):
       raise CompilerError(msg, self.token.loc)
    # Lexer helpers: