summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-04-19 09:00:31 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2014-04-19 09:00:31 -0500
commit183100b8cbe137da906631166f6664e4ef1bb612 (patch)
tree69e58be3ec8dd43a932706383596c8410035cca3 /src/mem/slicc/ast
parenta1570f544f7eb24d87a664038705ae6801862eab (diff)
downloadgem5-183100b8cbe137da906631166f6664e4ef1bb612.tar.xz
ruby: slicc: slight change to rule for transitions
It had an unnecessary pairs token which is being removed.
Diffstat (limited to 'src/mem/slicc/ast')
-rw-r--r--src/mem/slicc/ast/DeclAST.py2
-rw-r--r--src/mem/slicc/ast/TransitionDeclAST.py7
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)