示例#1
0
文件: parser.py 项目: liangwang/m5
 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])
示例#2
0
 def p_decl__trans2(self, p):
     "decl : TRANS '(' idents ',' idents ',' ident_or_star ')' idents idents"
     p[0] = ast.TransitionDeclAST(self, p[9], p[3], p[5], p[7], p[10])
示例#3
0
文件: parser.py 项目: liangwang/m5
 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])
示例#4
0
 def p_decl__trans0(self, p):
     "decl : TRANS '(' idents ',' idents ',' ident ')' idents"
     p[0] = ast.TransitionDeclAST(self, [], p[3], p[5], p[7], p[9])