Fix up some broken sample files
This commit is contained in:
@@ -982,9 +982,10 @@ namespace chaiscript
|
||||
Boxed_Value eval_block(Eval_System &ss, const TokenPtr &node) {
|
||||
Boxed_Value retval;
|
||||
unsigned int i;
|
||||
unsigned int num_children = node->children.size();
|
||||
|
||||
ss.new_scope();
|
||||
for (i = 0; i < node->children.size(); ++i) {
|
||||
for (i = 0; i < num_children; ++i) {
|
||||
try {
|
||||
retval = eval_token(ss, node->children[i]);
|
||||
}
|
||||
|
@@ -1586,7 +1586,6 @@ namespace chaiscript
|
||||
if (Operator_Helper(precedence)) {
|
||||
do {
|
||||
if (!Operator(precedence+1)) {
|
||||
std::cout << std::string(input_pos, input_end);
|
||||
throw Eval_Error("Incomplete " + std::string(token_type_to_string(operators[precedence])) + " expression",
|
||||
File_Position(line, col), filename);
|
||||
}
|
||||
|
Reference in New Issue
Block a user