diff options
Diffstat (limited to 'src/mem/slicc/ast')
-rw-r--r-- | src/mem/slicc/ast/DeclAST.py | 2 | ||||
-rw-r--r-- | src/mem/slicc/ast/TransitionDeclAST.py | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mem/slicc/ast/DeclAST.py b/src/mem/slicc/ast/DeclAST.py index 1adb31321..8b0f4ea96 100644 --- a/src/mem/slicc/ast/DeclAST.py +++ b/src/mem/slicc/ast/DeclAST.py @@ -28,7 +28,7 @@ from slicc.ast.AST import AST class DeclAST(AST): - def __init__(self, slicc, pairs): + def __init__(self, slicc, pairs = None): super(DeclAST, self).__init__(slicc, pairs) def files(self, parent=None): diff --git a/src/mem/slicc/ast/TransitionDeclAST.py b/src/mem/slicc/ast/TransitionDeclAST.py index 41e5b9aff..2de707940 100644 --- a/src/mem/slicc/ast/TransitionDeclAST.py +++ b/src/mem/slicc/ast/TransitionDeclAST.py @@ -29,9 +29,9 @@ from slicc.ast.DeclAST import DeclAST from slicc.symbols import Transition class TransitionDeclAST(DeclAST): - def __init__(self, slicc, request_types, states, events, next_state, pairs, + def __init__(self, slicc, request_types, states, events, next_state, actions): - super(TransitionDeclAST, self).__init__(slicc, pairs) + super(TransitionDeclAST, self).__init__(slicc) self.request_types = request_types self.states = states @@ -69,6 +69,5 @@ class TransitionDeclAST(DeclAST): self.error("Invalid event: %s is not part of machine: %s" % \ (event, machine)) t = Transition(self.symtab, machine, state, event, next_state, - self.actions, self.request_types, self.location, - self.pairs) + self.actions, self.request_types, self.location) machine.addTransition(t) |