예제 #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])