| 50 | } |
| 51 | |
| 52 | bool AssignParser::where(AssignStatement& expr) |
| 53 | { |
| 54 | if (match(TokenType::Eof)) |
| 55 | return true; |
| 56 | |
| 57 | if (match(TokenType::Identifier)) |
| 58 | { |
| 59 | std::string ident = Utils::toupper(curToken().sval()); |
| 60 | if (ident == "WHERE") |
| 61 | { |
| 62 | ConditionalParser parser(lexer()); |
| 63 | bool status = parser.expression(expr.conditionalExpr()); |
| 64 | if (!status) |
| 65 | setError(parser.error()); |
| 66 | return status; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | setError("Expected keyword 'WHERE' to precede condition assignment. Found '" + |
| 71 | peekToken().sval() + "' instead."); |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | } // namespace expr |
| 76 | } // namespace pdal |
nothing calls this directly
no test coverage detected