Everything else has the filename as the last parameter, so let's be
consistent here.
source_index = index;
if(index>=0)
source_reference(1, name);
- tokenizer.begin(name, source);
+ tokenizer.begin(source, name);
allow_stage_change = true;
while(!tokenizer.peek_token().empty())
if(RefPtr<Statement> statement = parse_with_recovery(&Parser::parse_global_declaration))
source_end = empty.end();
}
-void Tokenizer::begin(const string &name, const string &src)
+void Tokenizer::begin(const string &src, const string &name)
{
iter = src.begin();
source_end = src.end();
debug(format("%3d: %s", j+1, lines[j]));
GL::SL::Tokenizer tokenizer;
- tokenizer.begin("<output>", output);
+ tokenizer.begin(output, "<output>");
GL::SL::Tokenizer expected_tkn;
- expected_tkn.begin("<expected>", i->second);
+ expected_tkn.begin(i->second, "<expected>");
while(1)
{