summaryrefslogtreecommitdiff
path: root/src/mem/slicc/parser.py
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/parser.py
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/parser.py')
-rw-r--r--src/mem/slicc/parser.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mem/slicc/parser.py b/src/mem/slicc/parser.py
index d0d26afe8..1a8fbd937 100644
--- a/src/mem/slicc/parser.py
+++ b/src/mem/slicc/parser.py
@@ -278,20 +278,20 @@ class SLICC(Grammar):
p[0] = ast.OutPortDeclAST(self, p[3], p[5], p[7], p[8])
def p_decl__trans0(self, p):
- "decl : TRANS '(' idents ',' idents ',' ident pairs ')' idents"
- p[0] = ast.TransitionDeclAST(self, [], p[3], p[5], p[7], p[8], p[10])
+ "decl : TRANS '(' idents ',' idents ',' ident ')' idents"
+ p[0] = ast.TransitionDeclAST(self, [], p[3], p[5], p[7], p[9])
def p_decl__trans1(self, p):
- "decl : TRANS '(' idents ',' idents pairs ')' idents"
- p[0] = ast.TransitionDeclAST(self, [], p[3], p[5], None, p[6], p[8])
+ "decl : TRANS '(' idents ',' idents ')' idents"
+ p[0] = ast.TransitionDeclAST(self, [], p[3], p[5], None, p[7])
def p_decl__trans2(self, p):
- "decl : TRANS '(' idents ',' idents ',' ident pairs ')' idents idents"
- p[0] = ast.TransitionDeclAST(self, p[10], p[3], p[5], p[7], p[8], p[11])
+ "decl : TRANS '(' idents ',' idents ',' ident ')' idents idents"
+ p[0] = ast.TransitionDeclAST(self, p[9], p[3], p[5], p[7], p[10])
def p_decl__trans3(self, p):
- "decl : TRANS '(' idents ',' idents pairs ')' idents idents"
- p[0] = ast.TransitionDeclAST(self, p[8], p[3], p[5], None, p[6], p[9])
+ "decl : TRANS '(' idents ',' idents ')' idents idents"
+ p[0] = ast.TransitionDeclAST(self, p[7], p[3], p[5], None, p[8])
def p_decl__extern0(self, p):
"decl : EXTERN_TYPE '(' type pairs ')' SEMI"