Minor optimizations in lexer

This commit is contained in:
2019-06-05 19:11:56 +02:00
parent bda26b0ddf
commit d49692a17e
3 changed files with 64 additions and 58 deletions

View File

@@ -33,7 +33,7 @@ Script::~Script() {
}
void Script::Parse(string script) {
auto lexer = Lexer(std::move(script), this);
auto lexer = Lexer(&script, this);
auto lexResult = lexer.Lex();
auto parser = Parser(lexResult, this);
auto parseResult = parser.Parse();