* Unexpected token error. */
| 722 | * Unexpected token error. |
| 723 | */ |
| 724 | NO_RETURN void Parser::unexpectedToken() const |
| 725 | { |
| 726 | std::string str; |
| 727 | getPositionStr(str); |
| 728 | error("failed to parse %s at position \"%s\"; unexpected token \"%s\"", |
| 729 | mode, str.c_str(), s); |
| 730 | } |
| 731 | |
| 732 | /* |
| 733 | * Get the name of a token. |
no test coverage detected