diff ide/compiler/parser.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/parser.py	Thu Sep 22 17:44:31 2011 +0200
+++ b/ide/compiler/parser.py	Fri Oct 07 11:20:06 2011 +0200
@@ -360,6 +360,7 @@
      return procedures
 
    def parseProcedureDeclaration(self):
+     loc = self.getLocation()
      self.Consume('procedure')
      i = self.parseIdentDef()
      procname = i.name
@@ -405,6 +406,7 @@
         self.Error('endname should match {0}'.format(name))
      self.cst = procsymtable.parent    # Switch back to parent symbol table
      proc = Procedure(procname, proctyp, block, procsymtable, returnexpression)
+     self.setLocation(proc, loc)
      self.cst.addSymbol(proc)
      proc.public = i.ispublic
      return proc