mlox/lox.t/run.t
2024-08-03 02:44:12 +02:00

1082 lines
22 KiB
Perl

$ for lox_file in *.lox **/*.lox; do
> mlox $lox_file > /dev/null || echo $lox_file failed
> done
unexpected_character.lox failed
string/unterminated.lox failed
file empty_file.lox
$ mlox empty_file.lox > /dev/null
file precedence.lox
$ mlox precedence.lox > /dev/null
file unexpected_character.lox
$ mlox unexpected_character.lox
found 1 LexerError:
LexerError at line 3, column 6: Unexpected character '|'
[1]
file assignment/associativity.lox
$ mlox assignment/associativity.lox > /dev/null
file assignment/global.lox
$ mlox assignment/global.lox > /dev/null
file assignment/grouping.lox
$ mlox assignment/grouping.lox > /dev/null
file assignment/infix_operator.lox
$ mlox assignment/infix_operator.lox > /dev/null
file assignment/local.lox
$ mlox assignment/local.lox > /dev/null
file assignment/prefix_operator.lox
$ mlox assignment/prefix_operator.lox > /dev/null
file assignment/syntax.lox
$ mlox assignment/syntax.lox > /dev/null
file assignment/to_this.lox
$ mlox assignment/to_this.lox > /dev/null
file assignment/undefined.lox
$ mlox assignment/undefined.lox > /dev/null
file benchmark/binary_trees.lox
$ mlox benchmark/binary_trees.lox > /dev/null
file benchmark/equality.lox
$ mlox benchmark/equality.lox > /dev/null
file benchmark/fib.lox
$ mlox benchmark/fib.lox > /dev/null
file benchmark/instantiation.lox
$ mlox benchmark/instantiation.lox > /dev/null
file benchmark/invocation.lox
$ mlox benchmark/invocation.lox > /dev/null
file benchmark/method_call.lox
$ mlox benchmark/method_call.lox > /dev/null
file benchmark/properties.lox
$ mlox benchmark/properties.lox > /dev/null
file benchmark/string_equality.lox
$ mlox benchmark/string_equality.lox > /dev/null
file benchmark/trees.lox
$ mlox benchmark/trees.lox > /dev/null
file benchmark/zoo.lox
$ mlox benchmark/zoo.lox > /dev/null
file benchmark/zoo_batch.lox
$ mlox benchmark/zoo_batch.lox > /dev/null
file block/empty.lox
$ mlox block/empty.lox > /dev/null
file block/scope.lox
$ mlox block/scope.lox > /dev/null
file bool/equality.lox
$ mlox bool/equality.lox > /dev/null
file bool/not.lox
$ mlox bool/not.lox > /dev/null
file call/bool.lox
$ mlox call/bool.lox > /dev/null
file call/nil.lox
$ mlox call/nil.lox > /dev/null
file call/num.lox
$ mlox call/num.lox > /dev/null
file call/object.lox
$ mlox call/object.lox > /dev/null
file call/string.lox
$ mlox call/string.lox > /dev/null
file class/empty.lox
$ mlox class/empty.lox > /dev/null
file class/inherit_self.lox
$ mlox class/inherit_self.lox > /dev/null
file class/inherited_method.lox
$ mlox class/inherited_method.lox > /dev/null
file class/local_inherit_other.lox
$ mlox class/local_inherit_other.lox > /dev/null
file class/local_inherit_self.lox
$ mlox class/local_inherit_self.lox > /dev/null
file class/local_reference_self.lox
$ mlox class/local_reference_self.lox > /dev/null
file class/reference_self.lox
$ mlox class/reference_self.lox > /dev/null
file closure/assign_to_closure.lox
$ mlox closure/assign_to_closure.lox > /dev/null
file closure/assign_to_shadowed_later.lox
$ mlox closure/assign_to_shadowed_later.lox > /dev/null
file closure/close_over_function_parameter.lox
$ mlox closure/close_over_function_parameter.lox > /dev/null
file closure/close_over_later_variable.lox
$ mlox closure/close_over_later_variable.lox > /dev/null
file closure/close_over_method_parameter.lox
$ mlox closure/close_over_method_parameter.lox > /dev/null
file closure/closed_closure_in_function.lox
$ mlox closure/closed_closure_in_function.lox > /dev/null
file closure/nested_closure.lox
$ mlox closure/nested_closure.lox > /dev/null
file closure/open_closure_in_function.lox
$ mlox closure/open_closure_in_function.lox > /dev/null
file closure/reference_closure_multiple_times.lox
$ mlox closure/reference_closure_multiple_times.lox > /dev/null
file closure/reuse_closure_slot.lox
$ mlox closure/reuse_closure_slot.lox > /dev/null
file closure/shadow_closure_with_local.lox
$ mlox closure/shadow_closure_with_local.lox > /dev/null
file closure/unused_closure.lox
$ mlox closure/unused_closure.lox > /dev/null
file closure/unused_later_closure.lox
$ mlox closure/unused_later_closure.lox > /dev/null
file comments/line_at_eof.lox
$ mlox comments/line_at_eof.lox > /dev/null
file comments/only_line_comment.lox
$ mlox comments/only_line_comment.lox > /dev/null
file comments/only_line_comment_and_line.lox
$ mlox comments/only_line_comment_and_line.lox > /dev/null
file comments/unicode.lox
$ mlox comments/unicode.lox > /dev/null
file constructor/arguments.lox
$ mlox constructor/arguments.lox > /dev/null
file constructor/call_init_early_return.lox
$ mlox constructor/call_init_early_return.lox > /dev/null
file constructor/call_init_explicitly.lox
$ mlox constructor/call_init_explicitly.lox > /dev/null
file constructor/default.lox
$ mlox constructor/default.lox > /dev/null
file constructor/default_arguments.lox
$ mlox constructor/default_arguments.lox > /dev/null
file constructor/early_return.lox
$ mlox constructor/early_return.lox > /dev/null
file constructor/extra_arguments.lox
$ mlox constructor/extra_arguments.lox > /dev/null
file constructor/init_not_method.lox
$ mlox constructor/init_not_method.lox > /dev/null
file constructor/missing_arguments.lox
$ mlox constructor/missing_arguments.lox > /dev/null
file constructor/return_in_nested_function.lox
$ mlox constructor/return_in_nested_function.lox > /dev/null
file constructor/return_value.lox
$ mlox constructor/return_value.lox > /dev/null
file empty_file.lox
$ mlox empty_file.lox > /dev/null
file expressions/evaluate.lox
$ mlox expressions/evaluate.lox > /dev/null
file expressions/parse.lox
$ mlox expressions/parse.lox > /dev/null
file field/call_function_field.lox
$ mlox field/call_function_field.lox > /dev/null
file field/call_nonfunction_field.lox
$ mlox field/call_nonfunction_field.lox > /dev/null
file field/get_and_set_method.lox
$ mlox field/get_and_set_method.lox > /dev/null
file field/get_on_bool.lox
$ mlox field/get_on_bool.lox > /dev/null
file field/get_on_class.lox
$ mlox field/get_on_class.lox > /dev/null
file field/get_on_function.lox
$ mlox field/get_on_function.lox > /dev/null
file field/get_on_nil.lox
$ mlox field/get_on_nil.lox > /dev/null
file field/get_on_num.lox
$ mlox field/get_on_num.lox > /dev/null
file field/get_on_string.lox
$ mlox field/get_on_string.lox > /dev/null
file field/many.lox
$ mlox field/many.lox > /dev/null
file field/method.lox
$ mlox field/method.lox > /dev/null
file field/method_binds_this.lox
$ mlox field/method_binds_this.lox > /dev/null
file field/on_instance.lox
$ mlox field/on_instance.lox > /dev/null
file field/set_evaluation_order.lox
$ mlox field/set_evaluation_order.lox > /dev/null
file field/set_on_bool.lox
$ mlox field/set_on_bool.lox > /dev/null
file field/set_on_class.lox
$ mlox field/set_on_class.lox > /dev/null
file field/set_on_function.lox
$ mlox field/set_on_function.lox > /dev/null
file field/set_on_nil.lox
$ mlox field/set_on_nil.lox > /dev/null
file field/set_on_num.lox
$ mlox field/set_on_num.lox > /dev/null
file field/set_on_string.lox
$ mlox field/set_on_string.lox > /dev/null
file field/undefined.lox
$ mlox field/undefined.lox > /dev/null
file for/class_in_body.lox
$ mlox for/class_in_body.lox > /dev/null
file for/closure_in_body.lox
$ mlox for/closure_in_body.lox > /dev/null
file for/fun_in_body.lox
$ mlox for/fun_in_body.lox > /dev/null
file for/return_closure.lox
$ mlox for/return_closure.lox > /dev/null
file for/return_inside.lox
$ mlox for/return_inside.lox > /dev/null
file for/scope.lox
$ mlox for/scope.lox > /dev/null
file for/statement_condition.lox
$ mlox for/statement_condition.lox > /dev/null
file for/statement_increment.lox
$ mlox for/statement_increment.lox > /dev/null
file for/statement_initializer.lox
$ mlox for/statement_initializer.lox > /dev/null
file for/syntax.lox
$ mlox for/syntax.lox > /dev/null
file for/var_in_body.lox
$ mlox for/var_in_body.lox > /dev/null
file function/body_must_be_block.lox
$ mlox function/body_must_be_block.lox > /dev/null
file function/empty_body.lox
$ mlox function/empty_body.lox > /dev/null
file function/extra_arguments.lox
$ mlox function/extra_arguments.lox > /dev/null
file function/local_mutual_recursion.lox
$ mlox function/local_mutual_recursion.lox > /dev/null
file function/local_recursion.lox
$ mlox function/local_recursion.lox > /dev/null
file function/missing_arguments.lox
$ mlox function/missing_arguments.lox > /dev/null
file function/missing_comma_in_parameters.lox
$ mlox function/missing_comma_in_parameters.lox > /dev/null
file function/mutual_recursion.lox
$ mlox function/mutual_recursion.lox > /dev/null
file function/nested_call_with_arguments.lox
$ mlox function/nested_call_with_arguments.lox > /dev/null
file function/parameters.lox
$ mlox function/parameters.lox > /dev/null
file function/print.lox
$ mlox function/print.lox > /dev/null
file function/recursion.lox
$ mlox function/recursion.lox > /dev/null
file function/too_many_arguments.lox
$ mlox function/too_many_arguments.lox > /dev/null
file function/too_many_parameters.lox
$ mlox function/too_many_parameters.lox > /dev/null
file if/class_in_else.lox
$ mlox if/class_in_else.lox > /dev/null
file if/class_in_then.lox
$ mlox if/class_in_then.lox > /dev/null
file if/dangling_else.lox
$ mlox if/dangling_else.lox > /dev/null
file if/else.lox
$ mlox if/else.lox > /dev/null
file if/fun_in_else.lox
$ mlox if/fun_in_else.lox > /dev/null
file if/fun_in_then.lox
$ mlox if/fun_in_then.lox > /dev/null
file if/if.lox
$ mlox if/if.lox > /dev/null
file if/truth.lox
$ mlox if/truth.lox > /dev/null
file if/var_in_else.lox
$ mlox if/var_in_else.lox > /dev/null
file if/var_in_then.lox
$ mlox if/var_in_then.lox > /dev/null
file inheritance/constructor.lox
$ mlox inheritance/constructor.lox > /dev/null
file inheritance/inherit_from_function.lox
$ mlox inheritance/inherit_from_function.lox > /dev/null
file inheritance/inherit_from_nil.lox
$ mlox inheritance/inherit_from_nil.lox > /dev/null
file inheritance/inherit_from_number.lox
$ mlox inheritance/inherit_from_number.lox > /dev/null
file inheritance/inherit_methods.lox
$ mlox inheritance/inherit_methods.lox > /dev/null
file inheritance/parenthesized_superclass.lox
$ mlox inheritance/parenthesized_superclass.lox > /dev/null
file inheritance/set_fields_from_base_class.lox
$ mlox inheritance/set_fields_from_base_class.lox > /dev/null
file limit/loop_too_large.lox
$ mlox limit/loop_too_large.lox > /dev/null
file limit/no_reuse_constants.lox
$ mlox limit/no_reuse_constants.lox > /dev/null
file limit/stack_overflow.lox
$ mlox limit/stack_overflow.lox > /dev/null
file limit/too_many_constants.lox
$ mlox limit/too_many_constants.lox > /dev/null
file limit/too_many_locals.lox
$ mlox limit/too_many_locals.lox > /dev/null
file limit/too_many_upvalues.lox
$ mlox limit/too_many_upvalues.lox > /dev/null
file logical_operator/and.lox
$ mlox logical_operator/and.lox > /dev/null
file logical_operator/and_truth.lox
$ mlox logical_operator/and_truth.lox > /dev/null
file logical_operator/or.lox
$ mlox logical_operator/or.lox > /dev/null
file logical_operator/or_truth.lox
$ mlox logical_operator/or_truth.lox > /dev/null
file method/arity.lox
$ mlox method/arity.lox > /dev/null
file method/empty_block.lox
$ mlox method/empty_block.lox > /dev/null
file method/extra_arguments.lox
$ mlox method/extra_arguments.lox > /dev/null
file method/missing_arguments.lox
$ mlox method/missing_arguments.lox > /dev/null
file method/not_found.lox
$ mlox method/not_found.lox > /dev/null
file method/print_bound_method.lox
$ mlox method/print_bound_method.lox > /dev/null
file method/refer_to_name.lox
$ mlox method/refer_to_name.lox > /dev/null
file method/too_many_arguments.lox
$ mlox method/too_many_arguments.lox > /dev/null
file method/too_many_parameters.lox
$ mlox method/too_many_parameters.lox > /dev/null
file nil/literal.lox
$ mlox nil/literal.lox > /dev/null
file number/decimal_point_at_eof.lox
$ mlox number/decimal_point_at_eof.lox > /dev/null
file number/leading_dot.lox
$ mlox number/leading_dot.lox > /dev/null
file number/literals.lox
$ mlox number/literals.lox > /dev/null
file number/nan_equality.lox
$ mlox number/nan_equality.lox > /dev/null
file number/trailing_dot.lox
$ mlox number/trailing_dot.lox > /dev/null
file operator/add.lox
$ mlox operator/add.lox > /dev/null
file operator/add_bool_nil.lox
$ mlox operator/add_bool_nil.lox > /dev/null
file operator/add_bool_num.lox
$ mlox operator/add_bool_num.lox > /dev/null
file operator/add_bool_string.lox
$ mlox operator/add_bool_string.lox > /dev/null
file operator/add_nil_nil.lox
$ mlox operator/add_nil_nil.lox > /dev/null
file operator/add_num_nil.lox
$ mlox operator/add_num_nil.lox > /dev/null
file operator/add_string_nil.lox
$ mlox operator/add_string_nil.lox > /dev/null
file operator/comparison.lox
$ mlox operator/comparison.lox > /dev/null
file operator/divide.lox
$ mlox operator/divide.lox > /dev/null
file operator/divide_nonnum_num.lox
$ mlox operator/divide_nonnum_num.lox > /dev/null
file operator/divide_num_nonnum.lox
$ mlox operator/divide_num_nonnum.lox > /dev/null
file operator/equals.lox
$ mlox operator/equals.lox > /dev/null
file operator/equals_class.lox
$ mlox operator/equals_class.lox > /dev/null
file operator/equals_method.lox
$ mlox operator/equals_method.lox > /dev/null
file operator/greater_nonnum_num.lox
$ mlox operator/greater_nonnum_num.lox > /dev/null
file operator/greater_num_nonnum.lox
$ mlox operator/greater_num_nonnum.lox > /dev/null
file operator/greater_or_equal_nonnum_num.lox
$ mlox operator/greater_or_equal_nonnum_num.lox > /dev/null
file operator/greater_or_equal_num_nonnum.lox
$ mlox operator/greater_or_equal_num_nonnum.lox > /dev/null
file operator/less_nonnum_num.lox
$ mlox operator/less_nonnum_num.lox > /dev/null
file operator/less_num_nonnum.lox
$ mlox operator/less_num_nonnum.lox > /dev/null
file operator/less_or_equal_nonnum_num.lox
$ mlox operator/less_or_equal_nonnum_num.lox > /dev/null
file operator/less_or_equal_num_nonnum.lox
$ mlox operator/less_or_equal_num_nonnum.lox > /dev/null
file operator/multiply.lox
$ mlox operator/multiply.lox > /dev/null
file operator/multiply_nonnum_num.lox
$ mlox operator/multiply_nonnum_num.lox > /dev/null
file operator/multiply_num_nonnum.lox
$ mlox operator/multiply_num_nonnum.lox > /dev/null
file operator/negate.lox
$ mlox operator/negate.lox > /dev/null
file operator/negate_nonnum.lox
$ mlox operator/negate_nonnum.lox > /dev/null
file operator/not.lox
$ mlox operator/not.lox > /dev/null
file operator/not_class.lox
$ mlox operator/not_class.lox > /dev/null
file operator/not_equals.lox
$ mlox operator/not_equals.lox > /dev/null
file operator/subtract.lox
$ mlox operator/subtract.lox > /dev/null
file operator/subtract_nonnum_num.lox
$ mlox operator/subtract_nonnum_num.lox > /dev/null
file operator/subtract_num_nonnum.lox
$ mlox operator/subtract_num_nonnum.lox > /dev/null
file precedence.lox
$ mlox precedence.lox > /dev/null
file print/missing_argument.lox
$ mlox print/missing_argument.lox > /dev/null
file regression/40.lox
$ mlox regression/40.lox > /dev/null
file regression/394.lox
$ mlox regression/394.lox > /dev/null
file return/after_else.lox
$ mlox return/after_else.lox > /dev/null
file return/after_if.lox
$ mlox return/after_if.lox > /dev/null
file return/after_while.lox
$ mlox return/after_while.lox > /dev/null
file return/at_top_level.lox
$ mlox return/at_top_level.lox > /dev/null
file return/in_function.lox
$ mlox return/in_function.lox > /dev/null
file return/in_method.lox
$ mlox return/in_method.lox > /dev/null
file return/return_nil_if_no_value.lox
$ mlox return/return_nil_if_no_value.lox > /dev/null
file scanning/identifiers.lox
$ mlox scanning/identifiers.lox > /dev/null
file scanning/keywords.lox
$ mlox scanning/keywords.lox > /dev/null
file scanning/numbers.lox
$ mlox scanning/numbers.lox > /dev/null
file scanning/punctuators.lox
$ mlox scanning/punctuators.lox > /dev/null
file scanning/strings.lox
$ mlox scanning/strings.lox > /dev/null
file scanning/whitespace.lox
$ mlox scanning/whitespace.lox > /dev/null
file string/error_after_multiline.lox
$ mlox string/error_after_multiline.lox > /dev/null
file string/literals.lox
$ mlox string/literals.lox > /dev/null
file string/multiline.lox
$ mlox string/multiline.lox > /dev/null
file string/unterminated.lox
$ mlox string/unterminated.lox
found 1 LexerError:
LexerError at line 2, column 0: Unterminated string literal
[1]
file super/bound_method.lox
$ mlox super/bound_method.lox > /dev/null
file super/call_other_method.lox
$ mlox super/call_other_method.lox > /dev/null
file super/call_same_method.lox
$ mlox super/call_same_method.lox > /dev/null
file super/closure.lox
$ mlox super/closure.lox > /dev/null
file super/constructor.lox
$ mlox super/constructor.lox > /dev/null
file super/extra_arguments.lox
$ mlox super/extra_arguments.lox > /dev/null
file super/indirectly_inherited.lox
$ mlox super/indirectly_inherited.lox > /dev/null
file super/missing_arguments.lox
$ mlox super/missing_arguments.lox > /dev/null
file super/no_superclass_bind.lox
$ mlox super/no_superclass_bind.lox > /dev/null
file super/no_superclass_call.lox
$ mlox super/no_superclass_call.lox > /dev/null
file super/no_superclass_method.lox
$ mlox super/no_superclass_method.lox > /dev/null
file super/parenthesized.lox
$ mlox super/parenthesized.lox > /dev/null
file super/reassign_superclass.lox
$ mlox super/reassign_superclass.lox > /dev/null
file super/super_at_top_level.lox
$ mlox super/super_at_top_level.lox > /dev/null
file super/super_in_closure_in_inherited_method.lox
$ mlox super/super_in_closure_in_inherited_method.lox > /dev/null
file super/super_in_inherited_method.lox
$ mlox super/super_in_inherited_method.lox > /dev/null
file super/super_in_top_level_function.lox
$ mlox super/super_in_top_level_function.lox > /dev/null
file super/super_without_dot.lox
$ mlox super/super_without_dot.lox > /dev/null
file super/super_without_name.lox
$ mlox super/super_without_name.lox > /dev/null
file super/this_in_superclass_method.lox
$ mlox super/this_in_superclass_method.lox > /dev/null
file this/closure.lox
$ mlox this/closure.lox > /dev/null
file this/nested_class.lox
$ mlox this/nested_class.lox > /dev/null
file this/nested_closure.lox
$ mlox this/nested_closure.lox > /dev/null
file this/this_at_top_level.lox
$ mlox this/this_at_top_level.lox > /dev/null
file this/this_in_method.lox
$ mlox this/this_in_method.lox > /dev/null
file this/this_in_top_level_function.lox
$ mlox this/this_in_top_level_function.lox > /dev/null
file variable/collide_with_parameter.lox
$ mlox variable/collide_with_parameter.lox > /dev/null
file variable/duplicate_local.lox
$ mlox variable/duplicate_local.lox > /dev/null
file variable/duplicate_parameter.lox
$ mlox variable/duplicate_parameter.lox > /dev/null
file variable/early_bound.lox
$ mlox variable/early_bound.lox > /dev/null
file variable/in_middle_of_block.lox
$ mlox variable/in_middle_of_block.lox > /dev/null
file variable/in_nested_block.lox
$ mlox variable/in_nested_block.lox > /dev/null
file variable/local_from_method.lox
$ mlox variable/local_from_method.lox > /dev/null
file variable/redeclare_global.lox
$ mlox variable/redeclare_global.lox > /dev/null
file variable/redefine_global.lox
$ mlox variable/redefine_global.lox > /dev/null
file variable/scope_reuse_in_different_blocks.lox
$ mlox variable/scope_reuse_in_different_blocks.lox > /dev/null
file variable/shadow_and_local.lox
$ mlox variable/shadow_and_local.lox > /dev/null
file variable/shadow_global.lox
$ mlox variable/shadow_global.lox > /dev/null
file variable/shadow_local.lox
$ mlox variable/shadow_local.lox > /dev/null
file variable/undefined_global.lox
$ mlox variable/undefined_global.lox > /dev/null
file variable/undefined_local.lox
$ mlox variable/undefined_local.lox > /dev/null
file variable/uninitialized.lox
$ mlox variable/uninitialized.lox > /dev/null
file variable/unreached_undefined.lox
$ mlox variable/unreached_undefined.lox > /dev/null
file variable/use_false_as_var.lox
$ mlox variable/use_false_as_var.lox > /dev/null
file variable/use_global_in_initializer.lox
$ mlox variable/use_global_in_initializer.lox > /dev/null
file variable/use_local_in_initializer.lox
$ mlox variable/use_local_in_initializer.lox > /dev/null
file variable/use_nil_as_var.lox
$ mlox variable/use_nil_as_var.lox > /dev/null
file variable/use_this_as_var.lox
$ mlox variable/use_this_as_var.lox > /dev/null
file while/class_in_body.lox
$ mlox while/class_in_body.lox > /dev/null
file while/closure_in_body.lox
$ mlox while/closure_in_body.lox > /dev/null
file while/fun_in_body.lox
$ mlox while/fun_in_body.lox > /dev/null
file while/return_closure.lox
$ mlox while/return_closure.lox > /dev/null
file while/return_inside.lox
$ mlox while/return_inside.lox > /dev/null
file while/syntax.lox
$ mlox while/syntax.lox > /dev/null
file while/var_in_body.lox
$ mlox while/var_in_body.lox > /dev/null