Esempio n. 1
0
 def p_void(self, p):
     "void : VOID"
     p[0] = ast.TypeAST(self, p[1])
Esempio n. 2
0
 def p_enumeration(self, p):
     "enumeration : ident ':' ident"
     p[0] = ast.EnumExprAST(self, ast.TypeAST(self, p[1]), p[3])
Esempio n. 3
0
 def p_type__one(self, p):
     "type : typestr"
     p[0] = ast.TypeAST(self, p[1])