示例#1
0
文件: parser.py 项目: liangwang/m5
 def p_literal__bool(self, p):
     "literal : LIT_BOOL"
     p[0] = ast.LiteralExprAST(self, p[1], "bool")
示例#2
0
文件: parser.py 项目: liangwang/m5
 def p_literal__number(self, p):
     "literal : NUMBER"
     p[0] = ast.LiteralExprAST(self, p[1], "int")
示例#3
0
文件: parser.py 项目: liangwang/m5
 def p_literal__float(self, p):
     "literal : FLOATNUMBER"
     p[0] = ast.LiteralExprAST(self, p[1], "int")
示例#4
0
文件: parser.py 项目: liangwang/m5
 def p_literal__string(self, p):
     "literal : STRING"
     p[0] = ast.LiteralExprAST(self, p[1], "std::string")