MCPcopy Create free account
hub / github.com/OpenMW/openmw / parseSpecial

Method parseSpecial

components/compiler/scriptparser.cpp:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

putbackSpecialMethod · 0.80
scanMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected