|
|
@ -167,12 +167,12 @@ namespace scripting { |
|
|
|
return v; |
|
|
|
} |
|
|
|
|
|
|
|
std::vector<script_error> prepare(std::string code) final { |
|
|
|
std::vector<script_error> prepare(std::string code, bool repeating) final { |
|
|
|
std::vector<script_error> errors; |
|
|
|
auto lexed = ast::lex(code, errors); |
|
|
|
auto parsed = ast::parse(lexed, errors); |
|
|
|
if (errors.empty()) { |
|
|
|
bytecode = generate(errors, parsed, b">true); |
|
|
|
bytecode = generate(errors, parsed, ">repeating); |
|
|
|
} |
|
|
|
|
|
|
|
return errors; |
|
|
|