Lines Matching refs:Expr
35 void yyerror(std::unique_ptr<Expr>* root, int* error_count, const char* s);
36 int yyparse(std::unique_ptr<Expr>* root, int* error_count);
44 static Expr* Build(Function fn, YYLTYPE loc, size_t count, ...) {
47 Expr* e = new Expr(fn, "(operator)", loc.start, loc.end);
49 e->argv.emplace_back(va_arg(v, Expr*));
61 Expr* expr;
62 std::vector<std::unique_ptr<Expr>>* args;
73 %parse-param {std::unique_ptr<Expr>* root}
92 $$ = new Expr(Literal, $1, @$.start, @$.end);
113 $$ = new Expr(fn, $1, @$.start, @$.end);
119 $$ = new std::vector<std::unique_ptr<Expr>>;
122 $$ = new std::vector<std::unique_ptr<Expr>>;
127 $$->push_back(std::unique_ptr<Expr>($3));
133 void yyerror(std::unique_ptr<Expr>* root, int* error_count, const char* s) {
141 int ParseString(const std::string& str, std::unique_ptr<Expr>* root, int* error_count) {