|
@ -171,6 +171,7 @@ namespace scripting { |
|
|
std::vector<script_error> errors; |
|
|
std::vector<script_error> errors; |
|
|
auto lexed = ast::lex(code, errors); |
|
|
auto lexed = ast::lex(code, errors); |
|
|
auto parsed = ast::parse(lexed, errors); |
|
|
auto parsed = ast::parse(lexed, errors); |
|
|
|
|
|
instruction_ptr = 0; |
|
|
if (errors.empty()) { |
|
|
if (errors.empty()) { |
|
|
bytecode = generate(errors, parsed, repeating); |
|
|
bytecode = generate(errors, parsed, repeating); |
|
|
} |
|
|
} |
|
|