summaryrefslogtreecommitdiffstats
path: root/src/front/ast.py
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2009-06-29 12:28:01 +0200
committerBenedikt Böhm <bb@xnull.de>2009-06-29 12:28:01 +0200
commit4aedc5d76250fae734af1cd89256ec70e165ab18 (patch)
tree9f9c290f7d31a9aa966045019972670382596d45 /src/front/ast.py
parent17fab2bc59945045a8df39ece8c845d1565245da (diff)
downloadswppy-4aedc5d76250fae734af1cd89256ec70e165ab18.tar.gz
swppy-4aedc5d76250fae734af1cd89256ec70e165ab18.tar.xz
swppy-4aedc5d76250fae734af1cd89256ec70e165ab18.zip
fix function_call
- function_call is now an expression and a statement - call keyword is required to make lookahead = 1 work
Diffstat (limited to '')
-rw-r--r--src/front/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/front/ast.py b/src/front/ast.py
index 751d38d..d6d4a3f 100644
--- a/src/front/ast.py
+++ b/src/front/ast.py
@@ -25,7 +25,7 @@ class Function(Node):
self.lineno = lineno
def __repr__(self):
- return "<Function: %s %s %s>" % (self.name, str(self.params), str(self.statements))
+ return "<Function: %s(%s) at line %d: %s>" % (self.name, str(self.params), self.lineno, str(self.statements))
def eval(self,tacarray):
return tacarray.append(te)