/third_party/ltp/tools/sparse/sparse-src/ |
H A D | expression.h | 4 * sparse/expression.h 27 * Declarations and helper functions for expression parsing. 54 EXPR_SELECT, // a "safe" conditional expression 98 * A constant expression in the sense of [6.6]: 99 * - integer constant expression [6.6(6)] 100 * - arithmetic constant expression [6.6(8)] 107 /* integer constant expression => arithmetic constant expression */ 110 /* integer constant => integer constant expression */ 113 /* floating point constant => arithmetic constant expression */ 159 struct expression { global() struct [all...] |
H A D | parse.h | 55 struct expression *expression; member 56 struct expression *context; 59 struct expression *ret_value; 63 struct expression *if_conditional; 79 struct expression *case_expression; 80 struct expression *case_to; 85 struct expression *switch_expression; 94 struct expression *iterator_pre_condition; 99 struct expression *iterator_post_conditio [all...] |
H A D | expression.c | 2 * sparse/expression.c 25 * This is the expression parsing part of parsing C. 43 #include "expression.h" 63 static struct token *comma_expression(struct token *, struct expression **); 65 struct token *parens_expression(struct token *token, struct expression **expr, const char *where) in parens_expression() 72 struct expression *e = alloc_expression(token->pos, EXPR_STATEMENT); in parens_expression() 79 token = expect(token, '}', "at end of statement expression"); in parens_expression() 84 sparse_error(token->pos, "an expression is expected before ')'"); in parens_expression() 88 struct token *string_expression(struct token *token, struct expression **expr, const char *where) in string_expression() 148 static struct token *parse_type(struct token *token, struct expression **tre [all...] |
H A D | expand.c | 43 #include "expression.h" 48 static int expand_expression(struct expression *); 52 // and don't mark the expression as erroneous but leave it as-is. 53 // This allows testing some characteristics of the expression 57 static int expand_symbol_expression(struct expression *expr) in expand_symbol_expression() 77 /* The cost of a symbol expression is lower for on-stack symbols */ in expand_symbol_expression() 81 static long long get_longlong(struct expression *expr) in get_longlong() 97 void cast_value(struct expression *expr, struct symbol *newtype, in cast_value() 98 struct expression *old, struct symbol *oldtype) in cast_value() 174 static bool check_shift_count(struct expression *exp [all...] |
H A D | inline.c | 34 #include "expression.h" 39 static struct expression * dup_expression(struct expression *expr) in dup_expression() 41 struct expression *dup = alloc_expression(expr->pos, expr->type); in dup_expression() 78 static struct expression * copy_expression(struct expression *expr) in copy_expression() 97 /* Atomics, never change, just return the expression directly */ in copy_expression() 107 struct expression *unop = copy_expression(expr->unop); in copy_expression() 116 struct expression *base = copy_expression(expr->base); in copy_expression() 127 struct expression *lef in copy_expression() [all...] |
H A D | evaluate.c | 44 #include "expression.h" 50 static struct symbol *degenerate(struct expression *expr); 53 static inline int valid_expr_type(struct expression *expr) in valid_expr_type() 58 static inline int valid_subexpr_type(struct expression *expr) in valid_subexpr_type() 78 static struct symbol *evaluate_symbol_expression(struct expression *expr) in evaluate_symbol_expression() 80 struct expression *addr; in evaluate_symbol_expression() 112 static struct symbol *evaluate_string(struct expression *expr) in evaluate_string() 116 struct expression *addr = alloc_expression(expr->pos, EXPR_SYMBOL); in evaluate_string() 117 struct expression *initstr = alloc_expression(expr->pos, EXPR_STRING); in evaluate_string() 248 static int is_same_type(struct expression *exp [all...] |
H A D | builtin.c | 27 #include "expression.h" 42 static int evaluate_to_int_const_expr(struct expression *expr) in evaluate_to_int_const_expr() 49 static int evaluate_pure_unop(struct expression *expr) in evaluate_pure_unop() 51 struct expression *arg = first_expression(expr->args); in evaluate_pure_unop() 55 * Allow such functions with a constant integer expression in evaluate_pure_unop() 67 static int eval_args(struct expression *expr, int n) in eval_args() 69 struct expression *arg; in eval_args() 94 static int args_prototype(struct expression *expr) in args_prototype() 101 static int args_triadic(struct expression *expr) in args_triadic() 106 static int evaluate_choose(struct expression *exp [all...] |
H A D | show-parse.c | 41 #include "expression.h" 45 static int show_string_expr(struct expression *expr); 82 /* FIXME: should print context expression */ in do_debug_symbol() 550 struct expression *expr = case_stmt->case_expression; in show_switch_statement() 551 struct expression *to = case_stmt->case_to; in show_switch_statement() 626 return show_expression(stmt->expression); in show_statement() 629 struct expression *cond = stmt->if_conditional; in show_statement() 666 struct expression *pre_condition = stmt->iterator_pre_condition; in show_statement() 669 struct expression *post_condition = stmt->iterator_post_condition; in show_statement() 729 int val = show_expression(stmt->expression); in show_statement() [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
H A D | preprocessor.y | 8 This file contains the Yacc grammar for GLSL ES preprocessor expression. 11 WHICH GENERATES THE GLSL ES preprocessor expression parser. 113 : expression { 119 expression 132 | expression TOK_OP_OR { 135 // Ignore errors in the short-circuited part of the expression. 142 } expression { 153 | expression TOK_OP_AND { 156 // Ignore errors in the short-circuited part of the expression. 163 } expression { [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/ |
H A D | ExpressionParser.y | 16 This file contains the Yacc grammar for GLSL ES preprocessor expression. 19 WHICH GENERATES THE GLSL ES preprocessor expression parser. 125 : expression { 131 expression 144 | expression TOK_OP_OR { 147 // Ignore errors in the short-circuited part of the expression. 154 } expression { 165 | expression TOK_OP_AND { 168 // Ignore errors in the short-circuited part of the expression. 175 } expression { [all...] |
/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | Debug.hpp | 85 # define ASSERT_MSG(expression, format, ...) \ 88 if(!(expression)) \ 90 DABORT("ASSERT(%s): " format "\n", #expression, ##__VA_ARGS__); \ 96 # define ASSERT_MSG(expression, format, ...) \ 99 (void)sizeof((int)(bool)(expression)); \ 108 # define ASSERT(expression) \ 111 if(!(expression)) \ 113 DABORT("ASSERT(%s)\n", #expression); \ 118 # define ASSERT(expression) \ 121 (void)sizeof((int)(bool)(expression)); \ [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | Debug.hpp | 87 # define ASSERT_MSG(expression, format, ...) \ 90 if(!(expression)) \ 92 DABORT("ASSERT(%s): " format "\n", #expression, ##__VA_ARGS__); \ 98 # define ASSERT_MSG(expression, format, ...) \ 101 (void)sizeof((int)(bool)(expression)); \ 110 # define ASSERT(expression) \ 113 if(!(expression)) \ 115 DABORT("ASSERT(%s)\n", #expression); \ 120 # define ASSERT(expression) \ 123 (void)sizeof((int)(bool)(expression)); \ [all...] |
H A D | Assert.hpp | 22 void failedAssert(const char *expression, const char *file, unsigned int line, const char *func); 33 # define Assert(expression) ((void)0) 35 # define Assert(expression) \ 36 If(!(expression)) \ 38 Call(failedAssert, ConstantPointer(#expression), ConstantPointer(__FILE__), Int(__LINE__), ConstantPointer(FUNCSIG)); \
|
/third_party/typescript/tests/baselines/reference/ |
H A D | arrayDestructuringInSwitch1.js | 5 export function evaluate(expression: Expression): boolean { 6 if (Array.isArray(expression)) { 7 const [operator, ...operands] = expression; 20 return expression === 'true'; 28 function evaluate(expression) {
29 if (Array.isArray(expression)) {
30 var operator = expression[0], operands = expression.slice(1);
44 return expression === 'true';
|
/third_party/skia/src/sksl/ir/ |
H A D | SkSLReturnStatement.h | 23 ReturnStatement(int line, std::unique_ptr<Expression> expression) in ReturnStatement() argument 25 , fExpression(std::move(expression)) {} in ReturnStatement() 27 static std::unique_ptr<Statement> Make(int line, std::unique_ptr<Expression> expression) { in Make() argument 28 return std::make_unique<ReturnStatement>(line, std::move(expression)); in Make() 31 std::unique_ptr<Expression>& expression() { in expression() function in SkSL::final 35 const std::unique_ptr<Expression>& expression() const { in expression() function in SkSL::final 44 return std::make_unique<ReturnStatement>(fLine, this->expression()->clone()); 48 if (this->expression()) { 49 return "return " + this->expression()->description() + ";";
|
H A D | SkSLExpressionStatement.h | 17 * A lone expression being used as a statement. 23 ExpressionStatement(std::unique_ptr<Expression> expression) in ExpressionStatement() argument 24 : INHERITED(expression->fLine, kStatementKind) in ExpressionStatement() 25 , fExpression(std::move(expression)) {} in ExpressionStatement() 27 // Creates an SkSL expression-statement. Note that there is never any type-coercion and no error 32 const std::unique_ptr<Expression>& expression() const { in expression() function in SkSL::final 36 std::unique_ptr<Expression>& expression() { in expression() function in SkSL::final 41 return std::make_unique<ExpressionStatement>(this->expression()->clone()); 45 return this->expression()->description() + ";";
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/ |
H A D | db.js | 223 function dedupKey(expression) { 224 if (!expression.dependencies) { 225 return expression.source; 228 let result = expression.source; 229 for (let dependency of expression.dependencies) { 244 * Returns true if an expression can be applied or false otherwise. 246 function isValid(expression) { 248 expression.source, 252 if (expression.dependencies) { 253 for (const dependency of expression [all...] |
/third_party/python/Lib/idlelib/ |
H A D | calltip.py | 82 expression = hp.get_expression() 84 expression = None 85 if not expression: 86 # No expression before the opening parenthesis, e.g. 93 # expression. If there is a calltip shown, it's not for the 97 # Simple, fast heuristic: If the preceding expression includes 99 if not evalfuncs and (expression.find('(') != -1): 102 argspec = self.fetch_tip(expression) 108 def fetch_tip(self, expression): 128 (expression,), {}) [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/common/ |
H A D | debug.h | 61 #define ASSERT(expression) do { \ 62 if(!(expression)) { \ 63 ERR("\t! Assert failed in %s(%d): "#expression"\n", __FUNCTION__, __LINE__); \ 64 assert(expression); \ 67 #define ASSERT(expression) (void(0)) 98 #define ASSERT_OR_RETURN(expression) do { \ 99 if(!(expression)) { \ 100 ASSERT(expression); \
|
/third_party/skia/src/sksl/ |
H A D | SkSLInliner.cpp | 303 const Expression& expression) { in inlineExpression() 319 switch (expression.kind()) { in inlineExpression() 321 const BinaryExpression& binaryExpr = expression.as<BinaryExpression>(); in inlineExpression() 328 return expression.clone(); in inlineExpression() 330 const ChildCall& childCall = expression.as<ChildCall>(); in inlineExpression() 338 const ConstructorArray& ctor = expression.as<ConstructorArray>(); in inlineExpression() 344 const ConstructorArrayCast& ctor = expression.as<ConstructorArrayCast>(); in inlineExpression() 350 const ConstructorCompound& ctor = expression.as<ConstructorCompound>(); in inlineExpression() 356 const ConstructorCompoundCast& ctor = expression.as<ConstructorCompoundCast>(); in inlineExpression() 362 const ConstructorDiagonalMatrix& ctor = expression in inlineExpression() 300 inlineExpression(int line, VariableRewriteMap* varMap, SymbolTable* symbolTableForExpression, const Expression& expression) inlineExpression() argument [all...] |
H A D | SkSLRehydrator.cpp | 331 std::unique_ptr<Expression> expr = this->expression(); in statement() 335 std::unique_ptr<Expression> expr = this->expression(); in statement() 340 std::unique_ptr<Expression> test = this->expression(); in statement() 341 std::unique_ptr<Expression> next = this->expression(); in statement() 353 std::unique_ptr<Expression> test = this->expression(); in statement() 365 std::unique_ptr<Expression> expr = this->expression(); in statement() 371 std::unique_ptr<Expression> expr = this->expression(); in statement() 376 std::unique_ptr<Expression> value = this->expression(); in statement() 388 std::unique_ptr<Expression> value = this->expression(); in statement() 405 array.push_back(this->expression()); in expressionArray() 410 std::unique_ptr<Expression> Rehydrator::expression() { expression() function in SkSL::Rehydrator [all...] |
/third_party/mbedtls/scripts/mbedtls_dev/ |
H A D | crypto_knowledge.py | 18 """Abbreviate the expression, keeping it human-readable. 78 passing an expression of the form 'PSA_KEY_TYPE_xxx(param1, ...)' 102 self.expression = self.name 103 """A C expression whose value is the key type encoding.""" 105 self.expression += '(' + ', '.join(self.params) + ')' 120 """Abbreviate the expression, keeping it human-readable. 124 return short_expression(self.expression, level=level) 183 psa_set_key_type(&attributes, `self.expression`); 190 if self.expression in ASYMMETRIC_KEY_DATA: 191 if bits not in ASYMMETRIC_KEY_DATA[self.expression] [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | Debug.hpp | 52 #define ASSERT(expression) {if(!(expression)) sw::trace("\t! Assert failed in %s(%d): " #expression "\n", __FUNCTION__, __LINE__); assert(expression);}
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | debug.h | 44 #define ASSERT(expression) do { \ 45 if(!(expression)) \ 46 sh::Trace("Assert failed: %s(%d): "#expression"\n", __FUNCTION__, __LINE__); \ 47 assert(expression); \
|
/third_party/mesa3d/src/compiler/glsl/glcpp/ |
H A D | glcpp-parse.y | 199 %type <expression_value> expression 236 IF_EXPANDED expression NEWLINE { 238 glcpp_error(& @1, parser, "undefined macro %s in expression (illegal in GLES)", $2.undefined_macro); 241 | ELIF_EXPANDED expression NEWLINE { 243 glcpp_error(& @1, parser, "undefined macro %s in expression (illegal in GLES)", $2.undefined_macro); 427 /* Be careful to only evaluate the 'if' expression if 448 /* #if without an expression is only an error if we 453 glcpp_error(& @1, parser, "#if with no expression"); 470 /* Be careful to only evaluate the 'elif' expression 496 /* #elif without an expression i 583 expression: global() label [all...] |