Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/edify/
Dparser.yy28 #include "edify/expr.h"
61 Expr* expr;
67 %type <expr> expr
70 %destructor { delete $$; } expr
88 input: expr { root->reset($1); }
91 expr: STRING {
94 | '(' expr ')' { $$ = $2; $$->start=@$.start; $$->end=@$.end; }
95 | expr ';' { $$ = $1; $$->start=@1.start; $$->end=@1.end; }
96 | expr ';' expr { $$ = Build(SequenceFn, @$, 2, $1, $3); }
97 | error ';' expr { $$ = $3; $$->start=@$.start; $$->end=@$.end; }
[all …]
Dexpr.cpp45 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result) { in Evaluate() argument
50 std::unique_ptr<Value> v(expr->fn(expr->name.c_str(), state, expr->argv)); in Evaluate()
63 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr) { in EvaluateValue() argument
64 return expr->fn(expr->name.c_str(), state, expr->argv); in EvaluateValue()
DAndroid.bp32 "expr.cpp",
Dlexer.ll21 #include "edify/expr.h"
/bootable/recovery/tests/unit/
Dedify_test.cpp153 std::unique_ptr<Expr> expr; in TEST_F() local
155 EXPECT_EQ(1, ParseString(script1, &expr, &error_count)); in TEST_F()
160 EXPECT_EQ(1, ParseString(script2, &expr, &error_count)); in TEST_F()
165 EXPECT_EQ(1, ParseString(script3, &expr, &error_count)); in TEST_F()
/bootable/recovery/edify/include/edify/
Dexpr.h88 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr);
93 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result);