Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/pclc/parser/expressions.py')
-rw-r--r--src/pclc/parser/expressions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pclc/parser/expressions.py b/src/pclc/parser/expressions.py
index bc430cd..b12411d 100644
--- a/src/pclc/parser/expressions.py
+++ b/src/pclc/parser/expressions.py
@@ -74,10 +74,13 @@ class StateIdentifier(Identifier):
def __init__(self, filename, lineno, identifier):
Identifier.__init__(self, filename, lineno, identifier)
+ def __str__(self):
+ return "@%s" % super(StateIdentifier, self).__str__()
+
def __repr__(self):
return "<StateIdentifier: identifier = %s, entity = %s>" % \
(self.identifier.__repr__(),
- super(Identifier, self).__repr__())
+ super(StateIdentifier, self).__repr__())
class Expression(Entity):
def __init__(self, filename, lineno, parent_expr = None):