193 void ScriptReader::ParserMessage (const char* header, char* message) { |
193 void ScriptReader::ParserMessage (const char* header, char* message) { |
194 fprintf (stderr, "%sIn file %s, at line %u, col %u: %s\n", |
194 fprintf (stderr, "%sIn file %s, at line %u, col %u: %s\n", |
195 header, filepath.chars(), curline, curchar, message); |
195 header, filepath.chars(), curline, curchar, message); |
196 } |
196 } |
197 |
197 |
198 // I guess this should be a void function putting the return value into token? |
198 void ScriptReader::MustString () { |
199 str ScriptReader::MustGetString () { |
|
200 MustNext ("\""); |
199 MustNext ("\""); |
201 |
200 |
202 str string; |
201 str string; |
203 // Keep reading characters until we find a terminating quote. |
202 // Keep reading characters until we find a terminating quote. |
204 while (1) { |
203 while (1) { |