| 66 | } |
| 67 | |
| 68 | bool ScriptParser::parseSpecial(int code, const TokenLoc& loc, Scanner& scanner) |
| 69 | { |
| 70 | if (code == Scanner::S_newline) // empty line |
| 71 | return true; |
| 72 | |
| 73 | if (code == Scanner::S_open) /// \todo Option to switch this off |
| 74 | { |
| 75 | scanner.putbackSpecial(code, loc); |
| 76 | return parseKeyword(Scanner::K_if, loc, scanner); |
| 77 | } |
| 78 | |
| 79 | mLineParser.reset(); |
| 80 | if (mLineParser.parseSpecial(code, loc, scanner)) |
| 81 | scanner.scan(mLineParser); |
| 82 | |
| 83 | return true; |
| 84 | } |
| 85 | |
| 86 | void ScriptParser::parseEOF(Scanner& scanner) |
| 87 | { |
nothing calls this directly
no test coverage detected