MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / parse_additive_expression

Method parse_additive_expression

src/pugiXML/pugixml.cpp:9447–9463  ·  view source on GitHub ↗

AdditiveExpr ::= MultiplicativeExpr | AdditiveExpr '+' MultiplicativeExpr | AdditiveExpr '-' MultiplicativeExpr

Source from the content-addressed store, hash-verified

9445 // | AdditiveExpr '+' MultiplicativeExpr
9446 // | AdditiveExpr '-' MultiplicativeExpr
9447 xpath_ast_node* parse_additive_expression()
9448 {
9449 xpath_ast_node* n = parse_multiplicative_expression();
9450
9451 while (_lexer.current() == lex_plus || _lexer.current() == lex_minus)
9452 {
9453 lexeme_t l = _lexer.current();
9454
9455 _lexer.next();
9456
9457 xpath_ast_node* expr = parse_multiplicative_expression();
9458
9459 n = new (alloc_node()) xpath_ast_node(l == lex_plus ? ast_op_add : ast_op_subtract, xpath_type_number, n, expr);
9460 }
9461
9462 return n;
9463 }
9464
9465 // RelationalExpr ::= AdditiveExpr
9466 // | RelationalExpr '<' AdditiveExpr

Callers

nothing calls this directly

Calls 2

currentMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected