| 435 | } |
| 436 | |
| 437 | FieldGeneratorPtr ExpressionParser::parseParenExpr(LexInfo& lex) const { |
| 438 | lex.nextToken(); // eat '(' |
| 439 | |
| 440 | FieldGeneratorPtr g = parseExpression(lex); |
| 441 | |
| 442 | if ((lex.curtok != ')') && (lex.curtok != ']')) { |
| 443 | throw ParseException("Expecting ')' or ']' but got curtok={:d} ({:c})", |
| 444 | static_cast<int>(lex.curtok), static_cast<char>(lex.curtok)); |
| 445 | } |
| 446 | |
| 447 | lex.nextToken(); // eat ')' |
| 448 | return g; |
| 449 | } |
| 450 | |
| 451 | // This will return a pointer to a FieldContext. |
| 452 | FieldGeneratorPtr ExpressionParser::parseContextExpr(LexInfo& lex) const { |
nothing calls this directly
no test coverage detected