├── .gitignore ├── .vscode └── launch.json ├── Cargo.toml ├── LICENSE ├── README.md ├── benchmark.svg ├── main.lox ├── run_lox_benchmarks.py ├── src ├── builtins.rs ├── chunk.rs ├── compiler.rs ├── fuel.rs ├── main.rs ├── object.rs ├── scanner.rs ├── string.rs ├── string_utils.rs ├── value.rs └── vm.rs ├── test.lox └── tests ├── benchmarks ├── lox │ ├── arithmetic.lox │ ├── binary_trees.lox │ ├── equality.lox │ ├── fib.lox │ ├── instantiation.lox │ ├── invocation.lox │ ├── method_call.lox │ ├── properties.lox │ ├── trees.lox │ └── zoo.lox ├── perl │ ├── arithmetic.pl │ ├── binary_trees.pl │ ├── equality.pl │ ├── fib.pl │ ├── instantiation.pl │ ├── invocation.pl │ ├── method_call.pl │ ├── properties.pl │ ├── trees.pl │ └── zoo.pl └── python │ ├── arithmetic.py │ ├── binary_trees.py │ ├── equality.py │ ├── fib.py │ ├── instantiation.py │ ├── invocation.py │ ├── method_call.py │ ├── properties.py │ ├── trees.py │ └── zoo.py ├── integration.rs ├── integration ├── assignment │ ├── associativity.lox │ ├── global.lox │ ├── grouping.lox │ ├── infix_operator.lox │ ├── local.lox │ ├── prefix_operator.lox │ ├── syntax.lox │ ├── to_this.lox │ └── undefined.lox ├── block │ ├── empty.lox │ └── scope.lox ├── bool │ ├── equality.lox │ └── not.lox ├── call │ ├── bool.lox │ ├── nil.lox │ ├── num.lox │ ├── object.lox │ └── string.lox ├── class │ ├── empty.lox │ ├── inherit_self.lox │ ├── inherited_method.lox │ ├── local_inherit_other.lox │ ├── local_inherit_self.lox │ ├── local_reference_self.lox │ └── reference_self.lox ├── closure │ ├── assign_to_closure.lox │ ├── assign_to_shadowed_later.lox │ ├── close_over_function_parameter.lox │ ├── close_over_later_variable.lox │ ├── close_over_method_parameter.lox │ ├── closed_closure_in_function.lox │ ├── nested_closure.lox │ ├── open_closure_in_function.lox │ ├── reference_closure_multiple_times.lox │ ├── reuse_closure_slot.lox │ ├── shadow_closure_with_local.lox │ ├── unused_closure.lox │ └── unused_later_closure.lox ├── comments │ ├── line_at_eof.lox │ ├── only_line_comment.lox │ ├── only_line_comment_and_line.lox │ └── unicode.lox ├── constructor ├── empty_file.lox ├── field │ ├── call_function_field.lox │ ├── call_nonfunction_field.lox │ ├── get_and_set_method.lox │ ├── get_on_bool.lox │ ├── get_on_class.lox │ ├── get_on_function.lox │ ├── get_on_nil.lox │ ├── get_on_num.lox │ ├── get_on_string.lox │ ├── many.lox │ ├── method.lox │ ├── method_binds_this.lox │ ├── on_instance.lox │ ├── set_evaluation_order.lox │ ├── set_on_bool.lox │ ├── set_on_class.lox │ ├── set_on_function.lox │ ├── set_on_nil.lox │ ├── set_on_num.lox │ ├── set_on_string.lox │ └── undefined.lox ├── for │ ├── class_in_body.lox │ ├── closure_in_body.lox │ ├── fun_in_body.lox │ ├── return_closure.lox │ ├── return_inside.lox │ ├── scope.lox │ ├── statement_condition.lox │ ├── statement_increment.lox │ ├── statement_initializer.lox │ ├── syntax.lox │ └── var_in_body.lox ├── function │ ├── body_must_be_block.lox │ ├── empty_body.lox │ ├── extra_arguments.lox │ ├── local_mutual_recursion.lox │ ├── local_recursion.lox │ ├── missing_arguments.lox │ ├── missing_comma_in_parameters.lox │ ├── mutual_recursion.lox │ ├── nested_call_with_arguments.lox │ ├── parameters.lox │ ├── print.lox │ ├── recursion.lox │ ├── too_many_arguments.lox │ └── too_many_parameters.lox ├── helloworld.lox ├── if │ ├── class_in_else.lox │ ├── class_in_then.lox │ ├── dangling_else.lox │ ├── else.lox │ ├── fun_in_else.lox │ ├── fun_in_then.lox │ ├── if.lox │ ├── truth.lox │ ├── var_in_else.lox │ └── var_in_then.lox ├── inheritance │ ├── constructor.lox │ ├── inherit_from_function.lox │ ├── inherit_from_nil.lox │ ├── inherit_from_number.lox │ ├── inherit_methods.lox │ ├── parenthesized_superclass.lox │ └── set_fields_from_base_class.lox ├── limit │ ├── loop_too_large.lox │ ├── no_reuse_constants.lox │ ├── stack_overflow.lox │ ├── too_many_constants.lox │ ├── too_many_locals.lox │ └── too_many_upvalues.lox ├── logical_operator │ ├── and.lox │ ├── and_truth.lox │ ├── or.lox │ └── or_truth.lox ├── method │ ├── arity.lox │ ├── empty_block.lox │ ├── extra_arguments.lox │ ├── missing_arguments.lox │ ├── not_found.lox │ ├── print_bound_method.lox │ ├── refer_to_name.lox │ ├── too_many_arguments.lox │ └── too_many_parameters.lox ├── nil │ └── literal.lox ├── number │ ├── decimal_point_at_eof.lox │ ├── leading_dot.lox │ ├── literals.lox │ ├── nan_equality.lox │ └── trailing_dot.lox ├── operator │ ├── add.lox │ ├── add_bool_nil.lox │ ├── add_bool_num.lox │ ├── add_bool_string.lox │ ├── add_nil_nil.lox │ ├── add_num_nil.lox │ ├── add_string_nil.lox │ ├── comparison.lox │ ├── divide.lox │ ├── divide_nonnum_num.lox │ ├── divide_num_nonnum.lox │ ├── equals.lox │ ├── equals_class.lox │ ├── equals_method.lox │ ├── greater_nonnum_num.lox │ ├── greater_num_nonnum.lox │ ├── greater_or_equal_nonnum_num.lox │ ├── greater_or_equal_num_nonnum.lox │ ├── less_nonnum_num.lox │ ├── less_num_nonnum.lox │ ├── less_or_equal_nonnum_num.lox │ ├── less_or_equal_num_nonnum.lox │ ├── multiply.lox │ ├── multiply_nonnum_num.lox │ ├── multiply_num_nonnum.lox │ ├── negate.lox │ ├── negate_nonnum.lox │ ├── not.lox │ ├── not_class.lox │ ├── not_equals.lox │ ├── subtract.lox │ ├── subtract_nonnum_num.lox │ └── subtract_num_nonnum.lox ├── precedence.lox ├── print │ └── missing_argument.lox ├── regression │ ├── 394.lox │ └── 40.lox ├── return │ ├── after_else.lox │ ├── after_if.lox │ ├── after_while.lox │ ├── at_top_level.lox │ ├── in_function.lox │ ├── in_method.lox │ └── return_nil_if_no_value.lox ├── string │ ├── error_after_multiline.lox │ ├── literals.lox │ ├── multiline.lox │ └── unterminated.lox ├── super │ ├── bound_method.lox │ ├── call_other_method.lox │ ├── call_same_method.lox │ ├── closure.lox │ ├── constructor.lox │ ├── extra_arguments.lox │ ├── indirectly_inherited.lox │ ├── missing_arguments.lox │ ├── no_superclass_bind.lox │ ├── no_superclass_call.lox │ ├── no_superclass_method.lox │ ├── parenthesized.lox │ ├── reassign_superclass.lox │ ├── super_at_top_level.lox │ ├── super_in_closure_in_inherited_method.lox │ ├── super_in_inherited_method.lox │ ├── super_in_top_level_function.lox │ ├── super_without_dot.lox │ ├── super_without_name.lox │ └── this_in_superclass_method.lox ├── this │ ├── closure.lox │ ├── nested_class.lox │ ├── nested_closure.lox │ ├── this_at_top_level.lox │ ├── this_in_method.lox │ └── this_in_top_level_function.lox ├── unexpected_character.lox ├── variable │ ├── collide_with_parameter.lox │ ├── duplicate_local.lox │ ├── duplicate_parameter.lox │ ├── early_bound.lox │ ├── in_middle_of_block.lox │ ├── in_nested_block.lox │ ├── local_from_method.lox │ ├── redeclare_global.lox │ ├── redefine_global.lox │ ├── scope_reuse_in_different_blocks.lox │ ├── shadow_and_local.lox │ ├── shadow_global.lox │ ├── shadow_local.lox │ ├── undefined_global.lox │ ├── undefined_local.lox │ ├── uninitialized.lox │ ├── unreached_undefined.lox │ ├── use_false_as_var.lox │ ├── use_global_in_initializer.lox │ ├── use_local_in_initializer.lox │ ├── use_nil_as_var.lox │ └── use_this_as_var.lox └── while │ ├── class_in_body.lox │ ├── closure_in_body.lox │ ├── fun_in_body.lox │ ├── return_closure.lox │ ├── return_inside.lox │ ├── syntax.lox │ └── var_in_body.lox └── manual ├── gc_test.lox └── test.lox /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/README.md -------------------------------------------------------------------------------- /benchmark.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/benchmark.svg -------------------------------------------------------------------------------- /main.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/main.lox -------------------------------------------------------------------------------- /run_lox_benchmarks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/run_lox_benchmarks.py -------------------------------------------------------------------------------- /src/builtins.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/builtins.rs -------------------------------------------------------------------------------- /src/chunk.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/chunk.rs -------------------------------------------------------------------------------- /src/compiler.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/compiler.rs -------------------------------------------------------------------------------- /src/fuel.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/fuel.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/object.rs -------------------------------------------------------------------------------- /src/scanner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/scanner.rs -------------------------------------------------------------------------------- /src/string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/string.rs -------------------------------------------------------------------------------- /src/string_utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/string_utils.rs -------------------------------------------------------------------------------- /src/value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/value.rs -------------------------------------------------------------------------------- /src/vm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/src/vm.rs -------------------------------------------------------------------------------- /test.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/test.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/arithmetic.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/arithmetic.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/binary_trees.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/binary_trees.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/equality.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/equality.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/fib.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/fib.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/instantiation.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/instantiation.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/invocation.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/invocation.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/method_call.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/method_call.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/properties.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/properties.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/trees.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/trees.lox -------------------------------------------------------------------------------- /tests/benchmarks/lox/zoo.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/lox/zoo.lox -------------------------------------------------------------------------------- /tests/benchmarks/perl/arithmetic.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/arithmetic.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/binary_trees.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/binary_trees.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/equality.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/equality.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/fib.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/fib.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/instantiation.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/instantiation.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/invocation.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/invocation.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/method_call.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/method_call.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/properties.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/properties.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/trees.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/trees.pl -------------------------------------------------------------------------------- /tests/benchmarks/perl/zoo.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/perl/zoo.pl -------------------------------------------------------------------------------- /tests/benchmarks/python/arithmetic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/arithmetic.py -------------------------------------------------------------------------------- /tests/benchmarks/python/binary_trees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/binary_trees.py -------------------------------------------------------------------------------- /tests/benchmarks/python/equality.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/equality.py -------------------------------------------------------------------------------- /tests/benchmarks/python/fib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/fib.py -------------------------------------------------------------------------------- /tests/benchmarks/python/instantiation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/instantiation.py -------------------------------------------------------------------------------- /tests/benchmarks/python/invocation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/invocation.py -------------------------------------------------------------------------------- /tests/benchmarks/python/method_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/method_call.py -------------------------------------------------------------------------------- /tests/benchmarks/python/properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/properties.py -------------------------------------------------------------------------------- /tests/benchmarks/python/trees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/trees.py -------------------------------------------------------------------------------- /tests/benchmarks/python/zoo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/benchmarks/python/zoo.py -------------------------------------------------------------------------------- /tests/integration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration.rs -------------------------------------------------------------------------------- /tests/integration/assignment/associativity.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/associativity.lox -------------------------------------------------------------------------------- /tests/integration/assignment/global.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/global.lox -------------------------------------------------------------------------------- /tests/integration/assignment/grouping.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/grouping.lox -------------------------------------------------------------------------------- /tests/integration/assignment/infix_operator.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/infix_operator.lox -------------------------------------------------------------------------------- /tests/integration/assignment/local.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/local.lox -------------------------------------------------------------------------------- /tests/integration/assignment/prefix_operator.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/prefix_operator.lox -------------------------------------------------------------------------------- /tests/integration/assignment/syntax.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/syntax.lox -------------------------------------------------------------------------------- /tests/integration/assignment/to_this.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/to_this.lox -------------------------------------------------------------------------------- /tests/integration/assignment/undefined.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/assignment/undefined.lox -------------------------------------------------------------------------------- /tests/integration/block/empty.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/block/empty.lox -------------------------------------------------------------------------------- /tests/integration/block/scope.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/block/scope.lox -------------------------------------------------------------------------------- /tests/integration/bool/equality.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/bool/equality.lox -------------------------------------------------------------------------------- /tests/integration/bool/not.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/bool/not.lox -------------------------------------------------------------------------------- /tests/integration/call/bool.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/call/bool.lox -------------------------------------------------------------------------------- /tests/integration/call/nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/call/nil.lox -------------------------------------------------------------------------------- /tests/integration/call/num.lox: -------------------------------------------------------------------------------- 1 | 123(); // expect runtime error: Can only call functions and classes. 2 | -------------------------------------------------------------------------------- /tests/integration/call/object.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/call/object.lox -------------------------------------------------------------------------------- /tests/integration/call/string.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/call/string.lox -------------------------------------------------------------------------------- /tests/integration/class/empty.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/class/empty.lox -------------------------------------------------------------------------------- /tests/integration/class/inherit_self.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/class/inherit_self.lox -------------------------------------------------------------------------------- /tests/integration/class/inherited_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/class/inherited_method.lox -------------------------------------------------------------------------------- /tests/integration/class/local_inherit_other.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/class/local_inherit_other.lox -------------------------------------------------------------------------------- /tests/integration/class/local_inherit_self.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/class/local_inherit_self.lox -------------------------------------------------------------------------------- /tests/integration/class/local_reference_self.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/class/local_reference_self.lox -------------------------------------------------------------------------------- /tests/integration/class/reference_self.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/class/reference_self.lox -------------------------------------------------------------------------------- /tests/integration/closure/assign_to_closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/assign_to_closure.lox -------------------------------------------------------------------------------- /tests/integration/closure/assign_to_shadowed_later.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/assign_to_shadowed_later.lox -------------------------------------------------------------------------------- /tests/integration/closure/close_over_function_parameter.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/close_over_function_parameter.lox -------------------------------------------------------------------------------- /tests/integration/closure/close_over_later_variable.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/close_over_later_variable.lox -------------------------------------------------------------------------------- /tests/integration/closure/close_over_method_parameter.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/close_over_method_parameter.lox -------------------------------------------------------------------------------- /tests/integration/closure/closed_closure_in_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/closed_closure_in_function.lox -------------------------------------------------------------------------------- /tests/integration/closure/nested_closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/nested_closure.lox -------------------------------------------------------------------------------- /tests/integration/closure/open_closure_in_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/open_closure_in_function.lox -------------------------------------------------------------------------------- /tests/integration/closure/reference_closure_multiple_times.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/reference_closure_multiple_times.lox -------------------------------------------------------------------------------- /tests/integration/closure/reuse_closure_slot.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/reuse_closure_slot.lox -------------------------------------------------------------------------------- /tests/integration/closure/shadow_closure_with_local.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/shadow_closure_with_local.lox -------------------------------------------------------------------------------- /tests/integration/closure/unused_closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/unused_closure.lox -------------------------------------------------------------------------------- /tests/integration/closure/unused_later_closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/closure/unused_later_closure.lox -------------------------------------------------------------------------------- /tests/integration/comments/line_at_eof.lox: -------------------------------------------------------------------------------- 1 | print "ok"; // expect: ok 2 | // comment -------------------------------------------------------------------------------- /tests/integration/comments/only_line_comment.lox: -------------------------------------------------------------------------------- 1 | // comment -------------------------------------------------------------------------------- /tests/integration/comments/only_line_comment_and_line.lox: -------------------------------------------------------------------------------- 1 | // comment 2 | -------------------------------------------------------------------------------- /tests/integration/comments/unicode.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/comments/unicode.lox -------------------------------------------------------------------------------- /tests/integration/constructor/arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/arguments.lox -------------------------------------------------------------------------------- /tests/integration/constructor/call_init_early_return.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/call_init_early_return.lox -------------------------------------------------------------------------------- /tests/integration/constructor/call_init_explicitly.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/call_init_explicitly.lox -------------------------------------------------------------------------------- /tests/integration/constructor/default.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/default.lox -------------------------------------------------------------------------------- /tests/integration/constructor/default_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/default_arguments.lox -------------------------------------------------------------------------------- /tests/integration/constructor/early_return.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/early_return.lox -------------------------------------------------------------------------------- /tests/integration/constructor/extra_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/extra_arguments.lox -------------------------------------------------------------------------------- /tests/integration/constructor/init_not_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/init_not_method.lox -------------------------------------------------------------------------------- /tests/integration/constructor/missing_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/missing_arguments.lox -------------------------------------------------------------------------------- /tests/integration/constructor/return_in_nested_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/return_in_nested_function.lox -------------------------------------------------------------------------------- /tests/integration/constructor/return_value.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/constructor/return_value.lox -------------------------------------------------------------------------------- /tests/integration/empty_file.lox: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/integration/field/call_function_field.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/call_function_field.lox -------------------------------------------------------------------------------- /tests/integration/field/call_nonfunction_field.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/call_nonfunction_field.lox -------------------------------------------------------------------------------- /tests/integration/field/get_and_set_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/get_and_set_method.lox -------------------------------------------------------------------------------- /tests/integration/field/get_on_bool.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/get_on_bool.lox -------------------------------------------------------------------------------- /tests/integration/field/get_on_class.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/get_on_class.lox -------------------------------------------------------------------------------- /tests/integration/field/get_on_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/get_on_function.lox -------------------------------------------------------------------------------- /tests/integration/field/get_on_nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/get_on_nil.lox -------------------------------------------------------------------------------- /tests/integration/field/get_on_num.lox: -------------------------------------------------------------------------------- 1 | 123.foo; // expect runtime error: Only instances have properties. 2 | -------------------------------------------------------------------------------- /tests/integration/field/get_on_string.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/get_on_string.lox -------------------------------------------------------------------------------- /tests/integration/field/many.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/many.lox -------------------------------------------------------------------------------- /tests/integration/field/method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/method.lox -------------------------------------------------------------------------------- /tests/integration/field/method_binds_this.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/method_binds_this.lox -------------------------------------------------------------------------------- /tests/integration/field/on_instance.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/on_instance.lox -------------------------------------------------------------------------------- /tests/integration/field/set_evaluation_order.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/set_evaluation_order.lox -------------------------------------------------------------------------------- /tests/integration/field/set_on_bool.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/set_on_bool.lox -------------------------------------------------------------------------------- /tests/integration/field/set_on_class.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/set_on_class.lox -------------------------------------------------------------------------------- /tests/integration/field/set_on_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/set_on_function.lox -------------------------------------------------------------------------------- /tests/integration/field/set_on_nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/set_on_nil.lox -------------------------------------------------------------------------------- /tests/integration/field/set_on_num.lox: -------------------------------------------------------------------------------- 1 | 123.foo = "value"; // expect runtime error: Only instances have fields. 2 | -------------------------------------------------------------------------------- /tests/integration/field/set_on_string.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/set_on_string.lox -------------------------------------------------------------------------------- /tests/integration/field/undefined.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/field/undefined.lox -------------------------------------------------------------------------------- /tests/integration/for/class_in_body.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/class_in_body.lox -------------------------------------------------------------------------------- /tests/integration/for/closure_in_body.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/closure_in_body.lox -------------------------------------------------------------------------------- /tests/integration/for/fun_in_body.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'fun': Expect expression. 2 | for (;;) fun foo() {} 3 | -------------------------------------------------------------------------------- /tests/integration/for/return_closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/return_closure.lox -------------------------------------------------------------------------------- /tests/integration/for/return_inside.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/return_inside.lox -------------------------------------------------------------------------------- /tests/integration/for/scope.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/scope.lox -------------------------------------------------------------------------------- /tests/integration/for/statement_condition.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/statement_condition.lox -------------------------------------------------------------------------------- /tests/integration/for/statement_increment.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/statement_increment.lox -------------------------------------------------------------------------------- /tests/integration/for/statement_initializer.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/statement_initializer.lox -------------------------------------------------------------------------------- /tests/integration/for/syntax.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/for/syntax.lox -------------------------------------------------------------------------------- /tests/integration/for/var_in_body.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'var': Expect expression. 2 | for (;;) var foo; 3 | -------------------------------------------------------------------------------- /tests/integration/function/body_must_be_block.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/body_must_be_block.lox -------------------------------------------------------------------------------- /tests/integration/function/empty_body.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/empty_body.lox -------------------------------------------------------------------------------- /tests/integration/function/extra_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/extra_arguments.lox -------------------------------------------------------------------------------- /tests/integration/function/local_mutual_recursion.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/local_mutual_recursion.lox -------------------------------------------------------------------------------- /tests/integration/function/local_recursion.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/local_recursion.lox -------------------------------------------------------------------------------- /tests/integration/function/missing_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/missing_arguments.lox -------------------------------------------------------------------------------- /tests/integration/function/missing_comma_in_parameters.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/missing_comma_in_parameters.lox -------------------------------------------------------------------------------- /tests/integration/function/mutual_recursion.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/mutual_recursion.lox -------------------------------------------------------------------------------- /tests/integration/function/nested_call_with_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/nested_call_with_arguments.lox -------------------------------------------------------------------------------- /tests/integration/function/parameters.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/parameters.lox -------------------------------------------------------------------------------- /tests/integration/function/print.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/print.lox -------------------------------------------------------------------------------- /tests/integration/function/recursion.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/recursion.lox -------------------------------------------------------------------------------- /tests/integration/function/too_many_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/too_many_arguments.lox -------------------------------------------------------------------------------- /tests/integration/function/too_many_parameters.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/function/too_many_parameters.lox -------------------------------------------------------------------------------- /tests/integration/helloworld.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/helloworld.lox -------------------------------------------------------------------------------- /tests/integration/if/class_in_else.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/if/class_in_else.lox -------------------------------------------------------------------------------- /tests/integration/if/class_in_then.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/if/class_in_then.lox -------------------------------------------------------------------------------- /tests/integration/if/dangling_else.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/if/dangling_else.lox -------------------------------------------------------------------------------- /tests/integration/if/else.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/if/else.lox -------------------------------------------------------------------------------- /tests/integration/if/fun_in_else.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'fun': Expect expression. 2 | if (true) "ok"; else fun foo() {} 3 | -------------------------------------------------------------------------------- /tests/integration/if/fun_in_then.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'fun': Expect expression. 2 | if (true) fun foo() {} 3 | -------------------------------------------------------------------------------- /tests/integration/if/if.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/if/if.lox -------------------------------------------------------------------------------- /tests/integration/if/truth.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/if/truth.lox -------------------------------------------------------------------------------- /tests/integration/if/var_in_else.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'var': Expect expression. 2 | if (true) "ok"; else var foo; 3 | -------------------------------------------------------------------------------- /tests/integration/if/var_in_then.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'var': Expect expression. 2 | if (true) var foo; 3 | -------------------------------------------------------------------------------- /tests/integration/inheritance/constructor.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/inheritance/constructor.lox -------------------------------------------------------------------------------- /tests/integration/inheritance/inherit_from_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/inheritance/inherit_from_function.lox -------------------------------------------------------------------------------- /tests/integration/inheritance/inherit_from_nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/inheritance/inherit_from_nil.lox -------------------------------------------------------------------------------- /tests/integration/inheritance/inherit_from_number.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/inheritance/inherit_from_number.lox -------------------------------------------------------------------------------- /tests/integration/inheritance/inherit_methods.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/inheritance/inherit_methods.lox -------------------------------------------------------------------------------- /tests/integration/inheritance/parenthesized_superclass.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/inheritance/parenthesized_superclass.lox -------------------------------------------------------------------------------- /tests/integration/inheritance/set_fields_from_base_class.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/inheritance/set_fields_from_base_class.lox -------------------------------------------------------------------------------- /tests/integration/limit/loop_too_large.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/limit/loop_too_large.lox -------------------------------------------------------------------------------- /tests/integration/limit/no_reuse_constants.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/limit/no_reuse_constants.lox -------------------------------------------------------------------------------- /tests/integration/limit/stack_overflow.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/limit/stack_overflow.lox -------------------------------------------------------------------------------- /tests/integration/limit/too_many_constants.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/limit/too_many_constants.lox -------------------------------------------------------------------------------- /tests/integration/limit/too_many_locals.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/limit/too_many_locals.lox -------------------------------------------------------------------------------- /tests/integration/limit/too_many_upvalues.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/limit/too_many_upvalues.lox -------------------------------------------------------------------------------- /tests/integration/logical_operator/and.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/logical_operator/and.lox -------------------------------------------------------------------------------- /tests/integration/logical_operator/and_truth.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/logical_operator/and_truth.lox -------------------------------------------------------------------------------- /tests/integration/logical_operator/or.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/logical_operator/or.lox -------------------------------------------------------------------------------- /tests/integration/logical_operator/or_truth.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/logical_operator/or_truth.lox -------------------------------------------------------------------------------- /tests/integration/method/arity.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/arity.lox -------------------------------------------------------------------------------- /tests/integration/method/empty_block.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/empty_block.lox -------------------------------------------------------------------------------- /tests/integration/method/extra_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/extra_arguments.lox -------------------------------------------------------------------------------- /tests/integration/method/missing_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/missing_arguments.lox -------------------------------------------------------------------------------- /tests/integration/method/not_found.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/not_found.lox -------------------------------------------------------------------------------- /tests/integration/method/print_bound_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/print_bound_method.lox -------------------------------------------------------------------------------- /tests/integration/method/refer_to_name.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/refer_to_name.lox -------------------------------------------------------------------------------- /tests/integration/method/too_many_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/too_many_arguments.lox -------------------------------------------------------------------------------- /tests/integration/method/too_many_parameters.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/method/too_many_parameters.lox -------------------------------------------------------------------------------- /tests/integration/nil/literal.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/nil/literal.lox -------------------------------------------------------------------------------- /tests/integration/number/decimal_point_at_eof.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at end: Expect property name after '.'. 2 | 123. -------------------------------------------------------------------------------- /tests/integration/number/leading_dot.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at '.': Expect expression. 2 | .123; 3 | -------------------------------------------------------------------------------- /tests/integration/number/literals.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/number/literals.lox -------------------------------------------------------------------------------- /tests/integration/number/nan_equality.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/number/nan_equality.lox -------------------------------------------------------------------------------- /tests/integration/number/trailing_dot.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at ';': Expect property name after '.'. 2 | 123.; 3 | -------------------------------------------------------------------------------- /tests/integration/operator/add.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/add.lox -------------------------------------------------------------------------------- /tests/integration/operator/add_bool_nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/add_bool_nil.lox -------------------------------------------------------------------------------- /tests/integration/operator/add_bool_num.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/add_bool_num.lox -------------------------------------------------------------------------------- /tests/integration/operator/add_bool_string.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/add_bool_string.lox -------------------------------------------------------------------------------- /tests/integration/operator/add_nil_nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/add_nil_nil.lox -------------------------------------------------------------------------------- /tests/integration/operator/add_num_nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/add_num_nil.lox -------------------------------------------------------------------------------- /tests/integration/operator/add_string_nil.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/add_string_nil.lox -------------------------------------------------------------------------------- /tests/integration/operator/comparison.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/comparison.lox -------------------------------------------------------------------------------- /tests/integration/operator/divide.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/divide.lox -------------------------------------------------------------------------------- /tests/integration/operator/divide_nonnum_num.lox: -------------------------------------------------------------------------------- 1 | "1" / 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/divide_num_nonnum.lox: -------------------------------------------------------------------------------- 1 | 1 / "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/equals.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/equals.lox -------------------------------------------------------------------------------- /tests/integration/operator/equals_class.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/equals_class.lox -------------------------------------------------------------------------------- /tests/integration/operator/equals_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/equals_method.lox -------------------------------------------------------------------------------- /tests/integration/operator/greater_nonnum_num.lox: -------------------------------------------------------------------------------- 1 | "1" > 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/greater_num_nonnum.lox: -------------------------------------------------------------------------------- 1 | 1 > "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/greater_or_equal_nonnum_num.lox: -------------------------------------------------------------------------------- 1 | "1" >= 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/greater_or_equal_num_nonnum.lox: -------------------------------------------------------------------------------- 1 | 1 >= "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/less_nonnum_num.lox: -------------------------------------------------------------------------------- 1 | "1" < 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/less_num_nonnum.lox: -------------------------------------------------------------------------------- 1 | 1 < "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/less_or_equal_nonnum_num.lox: -------------------------------------------------------------------------------- 1 | "1" <= 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/less_or_equal_num_nonnum.lox: -------------------------------------------------------------------------------- 1 | 1 <= "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/multiply.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/multiply.lox -------------------------------------------------------------------------------- /tests/integration/operator/multiply_nonnum_num.lox: -------------------------------------------------------------------------------- 1 | "1" * 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/multiply_num_nonnum.lox: -------------------------------------------------------------------------------- 1 | 1 * "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/negate.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/negate.lox -------------------------------------------------------------------------------- /tests/integration/operator/negate_nonnum.lox: -------------------------------------------------------------------------------- 1 | -"s"; // expect runtime error: Operand must be a number. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/not.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/not.lox -------------------------------------------------------------------------------- /tests/integration/operator/not_class.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/not_class.lox -------------------------------------------------------------------------------- /tests/integration/operator/not_equals.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/not_equals.lox -------------------------------------------------------------------------------- /tests/integration/operator/subtract.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/operator/subtract.lox -------------------------------------------------------------------------------- /tests/integration/operator/subtract_nonnum_num.lox: -------------------------------------------------------------------------------- 1 | "1" - 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/operator/subtract_num_nonnum.lox: -------------------------------------------------------------------------------- 1 | 1 - "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /tests/integration/precedence.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/precedence.lox -------------------------------------------------------------------------------- /tests/integration/print/missing_argument.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at ';': Expect expression. 2 | print; 3 | -------------------------------------------------------------------------------- /tests/integration/regression/394.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/regression/394.lox -------------------------------------------------------------------------------- /tests/integration/regression/40.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/regression/40.lox -------------------------------------------------------------------------------- /tests/integration/return/after_else.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/return/after_else.lox -------------------------------------------------------------------------------- /tests/integration/return/after_if.lox: -------------------------------------------------------------------------------- 1 | fun f() { 2 | if (true) return "ok"; 3 | } 4 | 5 | print f(); // expect: ok 6 | -------------------------------------------------------------------------------- /tests/integration/return/after_while.lox: -------------------------------------------------------------------------------- 1 | fun f() { 2 | while (true) return "ok"; 3 | } 4 | 5 | print f(); // expect: ok 6 | -------------------------------------------------------------------------------- /tests/integration/return/at_top_level.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/return/at_top_level.lox -------------------------------------------------------------------------------- /tests/integration/return/in_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/return/in_function.lox -------------------------------------------------------------------------------- /tests/integration/return/in_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/return/in_method.lox -------------------------------------------------------------------------------- /tests/integration/return/return_nil_if_no_value.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/return/return_nil_if_no_value.lox -------------------------------------------------------------------------------- /tests/integration/string/error_after_multiline.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/string/error_after_multiline.lox -------------------------------------------------------------------------------- /tests/integration/string/literals.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/string/literals.lox -------------------------------------------------------------------------------- /tests/integration/string/multiline.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/string/multiline.lox -------------------------------------------------------------------------------- /tests/integration/string/unterminated.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/string/unterminated.lox -------------------------------------------------------------------------------- /tests/integration/super/bound_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/bound_method.lox -------------------------------------------------------------------------------- /tests/integration/super/call_other_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/call_other_method.lox -------------------------------------------------------------------------------- /tests/integration/super/call_same_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/call_same_method.lox -------------------------------------------------------------------------------- /tests/integration/super/closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/closure.lox -------------------------------------------------------------------------------- /tests/integration/super/constructor.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/constructor.lox -------------------------------------------------------------------------------- /tests/integration/super/extra_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/extra_arguments.lox -------------------------------------------------------------------------------- /tests/integration/super/indirectly_inherited.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/indirectly_inherited.lox -------------------------------------------------------------------------------- /tests/integration/super/missing_arguments.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/missing_arguments.lox -------------------------------------------------------------------------------- /tests/integration/super/no_superclass_bind.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/no_superclass_bind.lox -------------------------------------------------------------------------------- /tests/integration/super/no_superclass_call.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/no_superclass_call.lox -------------------------------------------------------------------------------- /tests/integration/super/no_superclass_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/no_superclass_method.lox -------------------------------------------------------------------------------- /tests/integration/super/parenthesized.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/parenthesized.lox -------------------------------------------------------------------------------- /tests/integration/super/reassign_superclass.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/reassign_superclass.lox -------------------------------------------------------------------------------- /tests/integration/super/super_at_top_level.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/super_at_top_level.lox -------------------------------------------------------------------------------- /tests/integration/super/super_in_closure_in_inherited_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/super_in_closure_in_inherited_method.lox -------------------------------------------------------------------------------- /tests/integration/super/super_in_inherited_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/super_in_inherited_method.lox -------------------------------------------------------------------------------- /tests/integration/super/super_in_top_level_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/super_in_top_level_function.lox -------------------------------------------------------------------------------- /tests/integration/super/super_without_dot.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/super_without_dot.lox -------------------------------------------------------------------------------- /tests/integration/super/super_without_name.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/super_without_name.lox -------------------------------------------------------------------------------- /tests/integration/super/this_in_superclass_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/super/this_in_superclass_method.lox -------------------------------------------------------------------------------- /tests/integration/this/closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/this/closure.lox -------------------------------------------------------------------------------- /tests/integration/this/nested_class.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/this/nested_class.lox -------------------------------------------------------------------------------- /tests/integration/this/nested_closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/this/nested_closure.lox -------------------------------------------------------------------------------- /tests/integration/this/this_at_top_level.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/this/this_at_top_level.lox -------------------------------------------------------------------------------- /tests/integration/this/this_in_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/this/this_in_method.lox -------------------------------------------------------------------------------- /tests/integration/this/this_in_top_level_function.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/this/this_in_top_level_function.lox -------------------------------------------------------------------------------- /tests/integration/unexpected_character.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/unexpected_character.lox -------------------------------------------------------------------------------- /tests/integration/variable/collide_with_parameter.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/collide_with_parameter.lox -------------------------------------------------------------------------------- /tests/integration/variable/duplicate_local.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/duplicate_local.lox -------------------------------------------------------------------------------- /tests/integration/variable/duplicate_parameter.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/duplicate_parameter.lox -------------------------------------------------------------------------------- /tests/integration/variable/early_bound.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/early_bound.lox -------------------------------------------------------------------------------- /tests/integration/variable/in_middle_of_block.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/in_middle_of_block.lox -------------------------------------------------------------------------------- /tests/integration/variable/in_nested_block.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/in_nested_block.lox -------------------------------------------------------------------------------- /tests/integration/variable/local_from_method.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/local_from_method.lox -------------------------------------------------------------------------------- /tests/integration/variable/redeclare_global.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/redeclare_global.lox -------------------------------------------------------------------------------- /tests/integration/variable/redefine_global.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/redefine_global.lox -------------------------------------------------------------------------------- /tests/integration/variable/scope_reuse_in_different_blocks.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/scope_reuse_in_different_blocks.lox -------------------------------------------------------------------------------- /tests/integration/variable/shadow_and_local.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/shadow_and_local.lox -------------------------------------------------------------------------------- /tests/integration/variable/shadow_global.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/shadow_global.lox -------------------------------------------------------------------------------- /tests/integration/variable/shadow_local.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/shadow_local.lox -------------------------------------------------------------------------------- /tests/integration/variable/undefined_global.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/undefined_global.lox -------------------------------------------------------------------------------- /tests/integration/variable/undefined_local.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/undefined_local.lox -------------------------------------------------------------------------------- /tests/integration/variable/uninitialized.lox: -------------------------------------------------------------------------------- 1 | var a; 2 | print a; // expect: nil 3 | -------------------------------------------------------------------------------- /tests/integration/variable/unreached_undefined.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/unreached_undefined.lox -------------------------------------------------------------------------------- /tests/integration/variable/use_false_as_var.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/use_false_as_var.lox -------------------------------------------------------------------------------- /tests/integration/variable/use_global_in_initializer.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/use_global_in_initializer.lox -------------------------------------------------------------------------------- /tests/integration/variable/use_local_in_initializer.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/use_local_in_initializer.lox -------------------------------------------------------------------------------- /tests/integration/variable/use_nil_as_var.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/use_nil_as_var.lox -------------------------------------------------------------------------------- /tests/integration/variable/use_this_as_var.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/variable/use_this_as_var.lox -------------------------------------------------------------------------------- /tests/integration/while/class_in_body.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/while/class_in_body.lox -------------------------------------------------------------------------------- /tests/integration/while/closure_in_body.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/while/closure_in_body.lox -------------------------------------------------------------------------------- /tests/integration/while/fun_in_body.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'fun': Expect expression. 2 | while (true) fun foo() {} 3 | -------------------------------------------------------------------------------- /tests/integration/while/return_closure.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/while/return_closure.lox -------------------------------------------------------------------------------- /tests/integration/while/return_inside.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/while/return_inside.lox -------------------------------------------------------------------------------- /tests/integration/while/syntax.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/integration/while/syntax.lox -------------------------------------------------------------------------------- /tests/integration/while/var_in_body.lox: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'var': Expect expression. 2 | while (true) var foo; 3 | -------------------------------------------------------------------------------- /tests/manual/gc_test.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/manual/gc_test.lox -------------------------------------------------------------------------------- /tests/manual/test.lox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Folyd/lox-lang/HEAD/tests/manual/test.lox --------------------------------------------------------------------------------