diff python/c3/codegenerator.py @ 249:e41e4109addd

Added current position arrow
author Windel Bouwman
date Fri, 26 Jul 2013 20:26:05 +0200
parents d3dccf12ca88
children c4370696ccc7
line wrap: on
line diff
--- a/python/c3/codegenerator.py	Fri Jul 26 16:46:02 2013 +0200
+++ b/python/c3/codegenerator.py	Fri Jul 26 20:26:05 2013 +0200
@@ -55,6 +55,7 @@
 
     def genCode(self, code):
         assert isinstance(code, astnodes.Statement)
+        self.builder.setLoc(code.loc)
         if type(code) is astnodes.CompoundStatement:
             for s in code.statements:
                 self.genCode(s)