예제 #1
0
파일: parser.py 프로젝트: liangwang/m5
 def p_void(self, p):
     "void : VOID"
     p[0] = ast.TypeAST(self, p[1])
예제 #2
0
파일: parser.py 프로젝트: liangwang/m5
 def p_enumeration(self, p):
     "enumeration : ident ':' ident"
     p[0] = ast.EnumExprAST(self, ast.TypeAST(self, p[1]), p[3])
예제 #3
0
파일: parser.py 프로젝트: liangwang/m5
 def p_type__one(self, p):
     "type : typestr"
     p[0] = ast.TypeAST(self, p[1])