def p_literal__bool(self, p): "literal : LIT_BOOL" p[0] = ast.LiteralExprAST(self, p[1], "bool")
def p_literal__number(self, p): "literal : NUMBER" p[0] = ast.LiteralExprAST(self, p[1], "int")
def p_literal__float(self, p): "literal : FLOATNUMBER" p[0] = ast.LiteralExprAST(self, p[1], "int")
def p_literal__string(self, p): "literal : STRING" p[0] = ast.LiteralExprAST(self, p[1], "std::string")