├── .DS_Store ├── .github └── workflows │ └── rust.yml ├── .gitignore ├── .ruby-version ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── laythe.bnf ├── laythe ├── Cargo.toml └── src │ └── main.rs ├── laythe_core ├── Cargo.toml └── src │ ├── align_utils.rs │ ├── allocator.rs │ ├── captures.rs │ ├── chunk.rs │ ├── collections │ ├── array.rs │ ├── mod.rs │ ├── shared_vector │ │ ├── mod.rs │ │ └── raw_shared_vector.rs │ ├── unique_vector │ │ ├── mod.rs │ │ └── raw_unique_vector.rs │ ├── utils.rs │ └── vec_builder.rs │ ├── constants.rs │ ├── hooks.rs │ ├── impls.rs │ ├── lib.rs │ ├── macros.rs │ ├── managed │ ├── allocate.rs │ ├── allocation.rs │ ├── header.rs │ ├── manage.rs │ └── mod.rs │ ├── module │ ├── error.rs │ ├── import.rs │ ├── mod.rs │ └── package.rs │ ├── object │ ├── channel │ │ ├── channel_queue.rs │ │ ├── channel_waiter.rs │ │ └── mod.rs │ ├── class.rs │ ├── closure.rs │ ├── enumerator.rs │ ├── fun.rs │ ├── header.rs │ ├── instance │ │ ├── header.rs │ │ └── mod.rs │ ├── list.rs │ ├── ly_box.rs │ ├── ly_str.rs │ ├── map.rs │ ├── method.rs │ ├── mod.rs │ ├── native.rs │ └── tuple.rs │ ├── reference │ ├── mod.rs │ └── obj_reference.rs │ ├── signature.rs │ ├── support │ └── mod.rs │ ├── utils.rs │ └── value.rs ├── laythe_env ├── Cargo.toml └── src │ ├── env.rs │ ├── fs.rs │ ├── io.rs │ ├── lib.rs │ ├── stdio.rs │ └── time.rs ├── laythe_frontend_bench ├── Cargo.toml └── src │ └── main.rs ├── laythe_lib ├── Cargo.toml └── src │ ├── builtin.rs │ ├── env │ ├── mod.rs │ └── utils.rs │ ├── global │ ├── assert │ │ └── mod.rs │ ├── misc.rs │ ├── mod.rs │ ├── primitives │ │ ├── bool.rs │ │ ├── channel.rs │ │ ├── class.rs │ │ ├── closure.rs │ │ ├── error.rs │ │ ├── fun.rs │ │ ├── iter.rs │ │ ├── list.rs │ │ ├── map.rs │ │ ├── method.rs │ │ ├── mod.rs │ │ ├── module.rs │ │ ├── native.rs │ │ ├── nil.rs │ │ ├── number.rs │ │ ├── object.rs │ │ ├── string.rs │ │ └── tuple.rs │ ├── support │ │ └── mod.rs │ └── time │ │ ├── clock.rs │ │ └── mod.rs │ ├── io │ ├── fs │ │ ├── mod.rs │ │ └── utils.rs │ ├── global │ │ └── mod.rs │ ├── mod.rs │ └── stdio │ │ ├── mod.rs │ │ ├── stderr.rs │ │ ├── stdin.rs │ │ └── stdout.rs │ ├── lib.rs │ ├── math │ ├── mod.rs │ └── utils.rs │ ├── regexp │ ├── class.rs │ └── mod.rs │ └── support │ └── mod.rs ├── laythe_native ├── Cargo.toml └── src │ ├── env.rs │ ├── fs.rs │ ├── io.rs │ ├── lib.rs │ ├── stdio.rs │ └── time.rs ├── laythe_vm ├── Cargo.toml ├── benches │ ├── compiler_benches.rs │ ├── parser_benches.rs │ └── vm_benches.rs ├── fixture │ ├── benchmark │ │ ├── binary_trees.lay │ │ ├── channel.lay │ │ ├── collections.lay │ │ ├── equality.lay │ │ ├── fib.lay │ │ ├── fibers.lay │ │ ├── fluent.lay │ │ ├── instantiation.lay │ │ ├── invocation.lay │ │ ├── list.lay │ │ ├── method_call.lay │ │ ├── properties.lay │ │ ├── string.lay │ │ ├── string_equality.lay │ │ ├── trees.lay │ │ └── zoo.lay │ ├── compiler │ │ ├── README.md │ │ └── arm_compiler.lay │ ├── criterion │ │ ├── binary_trees.lay │ │ ├── channel.lay │ │ ├── equality.lay │ │ ├── fib.lay │ │ ├── fibers.lay │ │ ├── fluent.lay │ │ ├── instantiation.lay │ │ ├── invocation.lay │ │ ├── method_call.lay │ │ ├── properties.lay │ │ ├── string.lay │ │ ├── string_equality.lay │ │ ├── trees.lay │ │ └── zoo.lay │ ├── demo │ │ └── gameOfLife.lay │ ├── language │ │ ├── assignment │ │ │ ├── allowed_postfix.lay │ │ │ ├── associativity.lay │ │ │ ├── global.lay │ │ │ ├── grouping.lay │ │ │ ├── infix_operator.lay │ │ │ ├── local.lay │ │ │ ├── prefix_operator.lay │ │ │ ├── syntax.lay │ │ │ ├── to_this.lay │ │ │ └── undefined.lay │ │ ├── binary_assignment │ │ │ ├── associativity.lay │ │ │ ├── global.lay │ │ │ ├── grouping.lay │ │ │ ├── infix_operator.lay │ │ │ ├── local.lay │ │ │ ├── operators.lay │ │ │ ├── prefix_operator.lay │ │ │ ├── syntax.lay │ │ │ ├── to_this.lay │ │ │ └── undefined.lay │ │ ├── block │ │ │ ├── empty.lay │ │ │ └── scope.lay │ │ ├── bool │ │ │ ├── equality.lay │ │ │ └── not.lay │ │ ├── break │ │ │ ├── additional_scopes.lay │ │ │ ├── for_break.lay │ │ │ ├── in_function_in_loop.lay │ │ │ ├── nested_for_loops.lay │ │ │ ├── nested_while_loops.lay │ │ │ ├── outside_loop.lay │ │ │ ├── while_break.lay │ │ │ └── with_drops.lay │ │ ├── call │ │ │ ├── bool.lay │ │ │ ├── nil.lay │ │ │ ├── num.lay │ │ │ ├── object.lay │ │ │ └── string.lay │ │ ├── channel │ │ │ ├── buffered.lay │ │ │ ├── channel_send_channel.lay │ │ │ ├── channel_sync.lay │ │ │ ├── close_closed.lay │ │ │ ├── fancy.lay │ │ │ ├── in_collection.lay │ │ │ ├── in_function.lay │ │ │ ├── in_instance.lay │ │ │ ├── in_instance_implicit.lay │ │ │ ├── missing_closing_paren.lay │ │ │ ├── missing_open_paren.lay │ │ │ ├── multi_capture_increment.lay │ │ │ ├── non_integer_capacity.lay │ │ │ ├── non_number_capacity.lay │ │ │ ├── receive_buffered.lay │ │ │ ├── receive_buffered_closed.lay │ │ │ ├── receive_buffered_deadlock.lay │ │ │ ├── receive_sync.lay │ │ │ ├── receive_sync_closed.lay │ │ │ ├── receive_sync_deadlock.lay │ │ │ ├── receive_sync_no_send.lay │ │ │ ├── send_buffered.lay │ │ │ ├── send_buffered_closed.lay │ │ │ ├── send_buffered_deadlock.lay │ │ │ ├── send_sync.lay │ │ │ ├── send_sync_closed.lay │ │ │ ├── send_sync_deadlock.lay │ │ │ └── sync.lay │ │ ├── class │ │ │ ├── allowed_postfix.lay │ │ │ ├── bro.lay │ │ │ ├── empty.lay │ │ │ ├── inherit_self.lay │ │ │ ├── inherited_method.lay │ │ │ ├── local_inherit_other.lay │ │ │ ├── local_inherit_self.lay │ │ │ ├── local_reference_self.lay │ │ │ └── reference_self.lay │ │ ├── closure │ │ │ ├── assign_to_closure.lay │ │ │ ├── assign_to_module_from_closure.lay │ │ │ ├── assign_to_shadowed_later.lay │ │ │ ├── close_over_function_parameter.lay │ │ │ ├── close_over_later_variable.lay │ │ │ ├── close_over_method_parameter.lay │ │ │ ├── closed_closure_in_function.lay │ │ │ ├── nested_closure.lay │ │ │ ├── open_closure_in_function.lay │ │ │ ├── reference_closure_multiple_times.lay │ │ │ ├── retrieve_from_module_from_closure.lay │ │ │ ├── reuse_closure_slot.lay │ │ │ ├── shadow_closure_with_local.lay │ │ │ ├── unused_closure.lay │ │ │ └── unused_later_closure.lay │ │ ├── comments │ │ │ ├── line_at_eof.lay │ │ │ ├── only_line_comment.lay │ │ │ ├── only_line_comment_and_line.lay │ │ │ └── unicode.lay │ │ ├── constructor │ │ ├── continue │ │ │ ├── additional_scopes.lay │ │ │ ├── for_continue.lay │ │ │ ├── in_function_in_loop.lay │ │ │ ├── nested_for_loops.lay │ │ │ ├── nested_while_loops.lay │ │ │ ├── outside_loop.lay │ │ │ ├── while_continue.lay │ │ │ └── with_drops.lay │ │ ├── empty_file.lay │ │ ├── exception │ │ │ ├── catch_no_block.lay │ │ │ ├── catch_not_class.lay │ │ │ ├── catch_not_error_class.lay │ │ │ ├── catch_not_identifier.lay │ │ │ ├── multiple_catches.lay │ │ │ ├── nested_break.lay │ │ │ ├── nested_continue.lay │ │ │ ├── nested_return.lay │ │ │ ├── not_error_catch_not_tested.lay │ │ │ ├── one_deep_catch.lay │ │ │ ├── one_deep_raise.lay │ │ │ ├── top_level_catch.lay │ │ │ ├── top_level_catch_raise.lay │ │ │ ├── top_level_raise.lay │ │ │ ├── try_error_in_catch.lay │ │ │ ├── try_fall_through.lay │ │ │ ├── try_no_block.lay │ │ │ ├── try_no_catch.lay │ │ │ ├── two_deep_catch.lay │ │ │ └── two_deep_raise.lay │ │ ├── export │ │ │ ├── declaration_class.lay │ │ │ ├── declaration_fn.lay │ │ │ ├── declaration_let.lay │ │ │ ├── literal.lay │ │ │ ├── local.lay │ │ │ ├── non_declaration_class.lay │ │ │ ├── non_declaration_fn.lay │ │ │ └── non_declaration_let.lay │ │ ├── expressions │ │ │ ├── evaluate.lay │ │ │ └── parse.lay │ │ ├── field │ │ │ ├── call_function_field.lay │ │ │ ├── call_function_field_implicit.lay │ │ │ ├── call_nonfunction_field.lay │ │ │ ├── get_on_bool.lay │ │ │ ├── get_on_class.lay │ │ │ ├── get_on_function.lay │ │ │ ├── get_on_nil.lay │ │ │ ├── get_on_num.lay │ │ │ ├── get_on_string.lay │ │ │ ├── get_undefined.lay │ │ │ ├── many.lay │ │ │ ├── many_implicit.lay │ │ │ ├── method.lay │ │ │ ├── method_binds_self.lay │ │ │ ├── method_binds_self_implicit.lay │ │ │ ├── on_instance.lay │ │ │ ├── on_instance_implicit.lay │ │ │ ├── set_evaluation_order.lay │ │ │ ├── set_on_bool.lay │ │ │ ├── set_on_class.lay │ │ │ ├── set_on_function.lay │ │ │ ├── set_on_nil.lay │ │ │ ├── set_on_num.lay │ │ │ ├── set_on_string.lay │ │ │ └── set_undefined.lay │ │ ├── for │ │ │ ├── cannot_assign_iter.lay │ │ │ ├── class_in_body.lay │ │ │ ├── closure_in_body.lay │ │ │ ├── fn_in_body.lay │ │ │ ├── let_in_body.lay │ │ │ ├── return_closure.lay │ │ │ ├── return_inside.lay │ │ │ ├── scope.lay │ │ │ └── statement_iterator.lay │ │ ├── function │ │ │ ├── allowed_postfix.lay │ │ │ ├── body_must_be_block.lay │ │ │ ├── empty_body.lay │ │ │ ├── extra_arguments.lay │ │ │ ├── local_mutual_recursion.lay │ │ │ ├── local_recursion.lay │ │ │ ├── missing_arguments.lay │ │ │ ├── missing_comma_in_parameters.lay │ │ │ ├── mutual_recursion.lay │ │ │ ├── parameters.lay │ │ │ ├── print.lay │ │ │ ├── recursion.lay │ │ │ ├── too_many_arguments.lay │ │ │ └── too_many_parameters.lay │ │ ├── hooks │ │ │ ├── call_ly_closure.lay │ │ │ ├── call_ly_function.lay │ │ │ ├── call_ly_instance.lay │ │ │ ├── call_native.lay │ │ │ ├── pass_error_ly_closure.lay │ │ │ ├── pass_error_ly_function.lay │ │ │ ├── pass_error_ly_instance.lay │ │ │ └── pass_error_native.lay │ │ ├── if │ │ │ ├── class_in_else.lay │ │ │ ├── class_in_then.lay │ │ │ ├── dangling_else.lay │ │ │ ├── else.lay │ │ │ ├── fun_in_else.lay │ │ │ ├── fun_in_then.lay │ │ │ ├── if.lay │ │ │ ├── let_in_else.lay │ │ │ ├── let_in_then.lay │ │ │ └── truth.lay │ │ ├── implicit_return │ │ │ ├── after_else.lay │ │ │ ├── after_if.lay │ │ │ ├── after_while.lay │ │ │ ├── at_top_level.lay │ │ │ ├── in_function.lay │ │ │ ├── in_function_middle.lay │ │ │ ├── in_init.lay │ │ │ ├── in_method.lay │ │ │ └── in_method_middle.lay │ │ ├── import │ │ │ ├── import_in_class.lay │ │ │ ├── import_in_fun.lay │ │ │ ├── import_in_scope.lay │ │ │ ├── missing_path.lay │ │ │ ├── missing_semicolon.lay │ │ │ ├── module.lay │ │ │ ├── module_not_real.lay │ │ │ ├── module_rename.lay │ │ │ ├── non_identifier_path.lay │ │ │ ├── rename_missing.lay │ │ │ ├── rename_not_identifer.lay │ │ │ ├── rename_redefine.lay │ │ │ ├── symbol.lay │ │ │ ├── symbol_rename.lay │ │ │ ├── symbols_not_real.lay │ │ │ ├── symbols_redefine.lay │ │ │ ├── symbols_rename_missing.lay │ │ │ ├── symbols_rename_not_identifer.lay │ │ │ ├── symbols_rename_redefine.lay │ │ │ └── user_import │ │ │ │ ├── cycle_1.lay │ │ │ │ ├── cycle_2.lay │ │ │ │ ├── cycle_3.lay │ │ │ │ ├── lib.lay │ │ │ │ ├── module.lay │ │ │ │ └── symbol.lay │ │ ├── inheritance │ │ │ ├── constructor.lay │ │ │ ├── inherit_from_function.lay │ │ │ ├── inherit_from_nil.lay │ │ │ ├── inherit_from_number.lay │ │ │ ├── inherit_methods.lay │ │ │ ├── parenthesized_superclass.lay │ │ │ └── set_fields_from_base_class.lay │ │ ├── inline_cache │ │ │ ├── invoke_thrash.lay │ │ │ ├── property_get_thrash.lay │ │ │ ├── property_set_thrash.lay │ │ │ └── super_invoke_thrash.lay │ │ ├── iterator │ │ │ ├── assign_iter_keep_state.lay │ │ │ ├── basic.lay │ │ │ └── equality.lay │ │ ├── lambda │ │ │ ├── body_must_be_block_or_expr.lay │ │ │ ├── empty_body.lay │ │ │ ├── expression_body.lay │ │ │ ├── extra_arguments.lay │ │ │ ├── local_mutual_recursion.lay │ │ │ ├── local_recursion.lay │ │ │ ├── missing_arguments.lay │ │ │ ├── missing_comma_in_parameters.lay │ │ │ ├── mutual_recursion.lay │ │ │ ├── parameters.lay │ │ │ ├── recursion.lay │ │ │ ├── str.lay │ │ │ ├── too_many_arguments.lay │ │ │ └── too_many_parameters.lay │ │ ├── launch │ │ │ ├── launch_bound_method.lay │ │ │ ├── launch_error.lay │ │ │ ├── launch_exit.lay │ │ │ ├── launch_init.lay │ │ │ ├── launch_method.lay │ │ │ ├── launch_multi.lay │ │ │ ├── launch_multi_channel_join.lay │ │ │ ├── launch_native.lay │ │ │ ├── launch_single.lay │ │ │ ├── launch_with_capture_global.lay │ │ │ ├── launch_with_capture_local.lay │ │ │ ├── no_call.lay │ │ │ ├── no_expr.lay │ │ │ └── no_semi.lay │ │ ├── limit │ │ │ ├── loop_too_large.lay │ │ │ ├── reuse_constants.lay │ │ │ ├── stack_overflow.lay │ │ │ ├── too_many_captures.lay │ │ │ ├── too_many_constants.lay │ │ │ ├── too_many_locals.lay │ │ │ └── too_many_module_symbols.lay │ │ ├── list │ │ │ ├── empty.lay │ │ │ ├── homogeneous.lay │ │ │ ├── missing_closing_bracket.lay │ │ │ ├── missing_comma_in_initializer.lay │ │ │ └── mixed.lay │ │ ├── logical_operator │ │ │ ├── and.lay │ │ │ ├── and_truth.lay │ │ │ ├── nested_ternary.lay │ │ │ ├── or.lay │ │ │ ├── or_truth.lay │ │ │ └── ternary.lay │ │ ├── map │ │ │ ├── empty.lay │ │ │ ├── homogeneous.lay │ │ │ ├── missing_closing_curly.lay │ │ │ ├── missing_colon.lay │ │ │ ├── mixed.lay │ │ │ ├── statement_key.lay │ │ │ └── statement_value.lay │ │ ├── method │ │ │ ├── arity.lay │ │ │ ├── empty_block.lay │ │ │ ├── extra_arguments.lay │ │ │ ├── missing_arguments.lay │ │ │ ├── not_found.lay │ │ │ ├── print_bound_method.lay │ │ │ ├── refer_to_name.lay │ │ │ ├── too_many_arguments.lay │ │ │ └── too_many_parameters.lay │ │ ├── native │ │ │ ├── assert.lay │ │ │ ├── assert_eq.lay │ │ │ ├── assert_ne.lay │ │ │ ├── clock.lay │ │ │ ├── signature_fixed_arity.lay │ │ │ └── signature_type.lay │ │ ├── nil │ │ │ └── literal.lay │ │ ├── number │ │ │ ├── decimal_point_at_eof.lay │ │ │ ├── leading_dot.lay │ │ │ ├── literals.lay │ │ │ └── trailing_dot.lay │ │ ├── operator │ │ │ ├── add.lay │ │ │ ├── add_bool_nil.lay │ │ │ ├── add_bool_num.lay │ │ │ ├── add_bool_string.lay │ │ │ ├── add_nil_nil.lay │ │ │ ├── add_num_nil.lay │ │ │ ├── add_string_nil.lay │ │ │ ├── comparison.lay │ │ │ ├── divide.lay │ │ │ ├── divide_nonnum_num.lay │ │ │ ├── divide_num_nonnum.lay │ │ │ ├── equals.lay │ │ │ ├── equals_class.lay │ │ │ ├── equals_method.lay │ │ │ ├── greater_nonnum_num.lay │ │ │ ├── greater_num_nonnum.lay │ │ │ ├── greater_or_equal_nonnum_num.lay │ │ │ ├── greater_or_equal_num_nonnum.lay │ │ │ ├── less_nonnum_num.lay │ │ │ ├── less_num_nonnum.lay │ │ │ ├── less_or_equal_nonnum_num.lay │ │ │ ├── less_or_equal_num_nonnum.lay │ │ │ ├── multiply.lay │ │ │ ├── multiply_nonnum_num.lay │ │ │ ├── multiply_num_nonnum.lay │ │ │ ├── negate.lay │ │ │ ├── negate_nonnum.lay │ │ │ ├── not.lay │ │ │ ├── not_class.lay │ │ │ ├── not_equals.lay │ │ │ ├── subtract.lay │ │ │ ├── subtract_nonnum_num.lay │ │ │ └── subtract_num_nonnum.lay │ │ ├── precedence.lay │ │ ├── raise │ │ │ ├── no_expr.lay │ │ │ ├── no_semi.lay │ │ │ ├── not_error_subclass.lay │ │ │ ├── not_instance.lay │ │ │ ├── raise_error.lay │ │ │ └── raise_error_subclass.lay │ │ ├── regression │ │ │ ├── 394.lay │ │ │ ├── 40.lay │ │ │ ├── catch_laythe_stack_overflow.lay │ │ │ ├── continue.lay │ │ │ ├── missing_symbol.lay │ │ │ └── native_stack_overvflow.lay │ │ ├── return │ │ │ ├── after_else.lay │ │ │ ├── after_if.lay │ │ │ ├── after_while.lay │ │ │ ├── at_top_level.lay │ │ │ ├── in_function.lay │ │ │ ├── in_method.lay │ │ │ └── return_nil_if_no_value.lay │ │ ├── scanning │ │ │ ├── identifiers.lay │ │ │ ├── keywords.lay │ │ │ ├── numbers.lay │ │ │ ├── punctuators.lay │ │ │ ├── strings.lay │ │ │ └── whitespace.lay │ │ ├── self │ │ │ ├── closure.lay │ │ │ ├── nested_class.lay │ │ │ ├── nested_closure.lay │ │ │ ├── pass_through_assign.lay │ │ │ ├── pass_through_assign_implicit.lay │ │ │ ├── self_at_top_level.lay │ │ │ ├── self_in_method.lay │ │ │ └── self_in_top_level_function.lay │ │ ├── static_method │ │ │ ├── arity.lay │ │ │ ├── call_bound.lay │ │ │ ├── empty_block.lay │ │ │ ├── extra_arguments.lay │ │ │ ├── missing_arguments.lay │ │ │ ├── no_self.lay │ │ │ ├── no_self_implicit.lay │ │ │ ├── not_found.lay │ │ │ ├── not_inherited.lay │ │ │ ├── print_bound_method.lay │ │ │ ├── refer_to_name.lay │ │ │ ├── too_many_arguments.lay │ │ │ └── too_many_parameters.lay │ │ ├── string │ │ │ ├── error_after_multiline.lay │ │ │ ├── escape.lay │ │ │ ├── interpolation.lay │ │ │ ├── invalid_escape.lay │ │ │ ├── invalid_interpolation_missing_close.lay │ │ │ ├── invalid_unicode_hex.lay │ │ │ ├── invalid_unicode_missing_close.lay │ │ │ ├── invalid_unicode_missing_open.lay │ │ │ ├── invalid_unicode_no_hex.lay │ │ │ ├── invalid_unicode_too_long.lay │ │ │ ├── literals.lay │ │ │ ├── multiline.lay │ │ │ ├── unicode_escape.lay │ │ │ ├── unterminated_double.lay │ │ │ └── unterminated_single.lay │ │ ├── super │ │ │ ├── bound_method.lay │ │ │ ├── call_other_method.lay │ │ │ ├── call_same_method.lay │ │ │ ├── closure.lay │ │ │ ├── constructor.lay │ │ │ ├── extra_arguments.lay │ │ │ ├── indirectly_inherited.lay │ │ │ ├── missing_arguments.lay │ │ │ ├── no_superclass_call.lay │ │ │ ├── no_superclass_method.lay │ │ │ ├── parenthesized.lay │ │ │ ├── reassign_superclass.lay │ │ │ ├── super_at_top_level.lay │ │ │ ├── super_in_closure_in_inherited_method.lay │ │ │ ├── super_in_inherited_method.lay │ │ │ ├── super_in_top_level_function.lay │ │ │ ├── super_without_dot.lay │ │ │ ├── super_without_name.lay │ │ │ └── this_in_superclass_method.lay │ │ ├── tuple │ │ │ ├── empty.lay │ │ │ ├── empty_comma.lay │ │ │ ├── homogeneous.lay │ │ │ ├── missing_closing_bracket.lay │ │ │ ├── missing_comma_in_initializer.lay │ │ │ └── mixed.lay │ │ ├── unexpected_character.lay │ │ ├── variable │ │ │ ├── collide_with_parameter.lay │ │ │ ├── duplicate_local.lay │ │ │ ├── duplicate_parameter.lay │ │ │ ├── early_bound.lay │ │ │ ├── in_middle_of_block.lay │ │ │ ├── in_nested_block.lay │ │ │ ├── local_from_method.lay │ │ │ ├── redeclare_global.lay │ │ │ ├── redefine_global.lay │ │ │ ├── scope_reuse_in_different_blocks.lay │ │ │ ├── shadow_and_local.lay │ │ │ ├── shadow_global.lay │ │ │ ├── shadow_local.lay │ │ │ ├── undefined_global.lay │ │ │ ├── undefined_local.lay │ │ │ ├── uninitialized.lay │ │ │ ├── unreached_undefined.lay │ │ │ ├── use_false_as_var.lay │ │ │ ├── use_global_in_initializer.lay │ │ │ ├── use_local_in_initializer.lay │ │ │ ├── use_nil_as_var.lay │ │ │ └── use_this_as_var.lay │ │ └── while │ │ │ ├── class_in_body.lay │ │ │ ├── closure_in_body.lay │ │ │ ├── fun_in_body.lay │ │ │ ├── return_closure.lay │ │ │ ├── return_inside.lay │ │ │ ├── syntax.lay │ │ │ └── var_in_body.lay │ ├── lox_interpreter │ │ └── lox.lay │ ├── py_benchmark │ │ ├── binary_trees.py │ │ ├── equality.py │ │ ├── fib.py │ │ ├── instantiation.py │ │ ├── invocation.py │ │ ├── list.py │ │ ├── method_call.py │ │ ├── properties.py │ │ ├── strings.py │ │ ├── trees.py │ │ └── zoo.py │ ├── rb_benchmark │ │ ├── binary_trees.rb │ │ ├── equality.rb │ │ ├── fib.rb │ │ ├── instantiation.rb │ │ ├── invocation.rb │ │ ├── list.rb │ │ ├── method_call.rb │ │ ├── properties.rb │ │ ├── string.rb │ │ ├── trees.rb │ │ └── zoo.rb │ └── std_lib │ │ ├── env │ │ ├── args.lay │ │ └── cwd.lay │ │ ├── global │ │ ├── bool │ │ │ └── str.lay │ │ ├── channel │ │ │ ├── capacity.lay │ │ │ ├── close.lay │ │ │ ├── close_close.lay │ │ │ ├── len.lay │ │ │ └── str.lay │ │ ├── class │ │ │ ├── name.lay │ │ │ ├── str.lay │ │ │ └── superCls.lay │ │ ├── closure │ │ │ ├── call.lay │ │ │ ├── call_wrong_args.lay │ │ │ ├── len.lay │ │ │ ├── len_wrong_args.lay │ │ │ ├── name.lay │ │ │ └── name_wrong_args.lay │ │ ├── error │ │ │ ├── construct.lay │ │ │ └── sub_class.lay │ │ ├── fun │ │ │ ├── call.lay │ │ │ ├── call_wrong_args.lay │ │ │ ├── len.lay │ │ │ ├── len_wrong_args.lay │ │ │ ├── name.lay │ │ │ └── name_wrong_args.lay │ │ ├── iter │ │ │ ├── all.lay │ │ │ ├── any.lay │ │ │ ├── chain.lay │ │ │ ├── each.lay │ │ │ ├── filter.lay │ │ │ ├── filter_method.lay │ │ │ ├── first.lay │ │ │ ├── into.lay │ │ │ ├── iter.lay │ │ │ ├── last.lay │ │ │ ├── len.lay │ │ │ ├── map.lay │ │ │ ├── map_method.lay │ │ │ ├── next.lay │ │ │ ├── reduce.lay │ │ │ ├── skip.lay │ │ │ ├── str.lay │ │ │ ├── take.lay │ │ │ ├── to_list.lay │ │ │ └── zip.lay │ │ ├── list │ │ │ ├── clear.lay │ │ │ ├── collect.lay │ │ │ ├── has.lay │ │ │ ├── index.lay │ │ │ ├── index_get.lay │ │ │ ├── index_get_fractional.lay │ │ │ ├── index_get_fractional_negative.lay │ │ │ ├── index_get_negative.lay │ │ │ ├── index_get_nested.lay │ │ │ ├── index_get_out_of_range.lay │ │ │ ├── index_get_out_of_range_negative.lay │ │ │ ├── index_set.lay │ │ │ ├── index_set_fractional.lay │ │ │ ├── index_set_fractional_negative.lay │ │ │ ├── index_set_negative.lay │ │ │ ├── index_set_nested.lay │ │ │ ├── index_set_out_of_range.lay │ │ │ ├── index_set_out_of_range_negative.lay │ │ │ ├── index_set_pass_through.lay │ │ │ ├── insert.lay │ │ │ ├── insert_out_of_bounds.lay │ │ │ ├── iter.lay │ │ │ ├── len.lay │ │ │ ├── pop.lay │ │ │ ├── push.lay │ │ │ ├── remove.lay │ │ │ ├── remove_out_of_bounds.lay │ │ │ ├── rev.lay │ │ │ ├── slice.lay │ │ │ ├── sort.lay │ │ │ └── str.lay │ │ ├── map │ │ │ ├── get.lay │ │ │ ├── has.lay │ │ │ ├── index_get.lay │ │ │ ├── index_get_key_not_found.lay │ │ │ ├── index_get_nan.lay │ │ │ ├── index_get_nested.lay │ │ │ ├── index_get_ref_equal.lay │ │ │ ├── index_set.lay │ │ │ ├── index_set_nested.lay │ │ │ ├── index_set_pass_through.lay │ │ │ ├── insert.lay │ │ │ ├── iter.lay │ │ │ ├── len.lay │ │ │ ├── remove.lay │ │ │ ├── remove_missing_key.lay │ │ │ ├── set.lay │ │ │ └── str.lay │ │ ├── method │ │ │ ├── call.lay │ │ │ └── name.lay │ │ ├── module │ │ │ └── name.lay │ │ ├── nil │ │ │ └── str.lay │ │ ├── number │ │ │ ├── ceil.lay │ │ │ ├── cmp.lay │ │ │ ├── floor.lay │ │ │ ├── parse.lay │ │ │ ├── round.lay │ │ │ ├── str.lay │ │ │ └── times.lay │ │ ├── object │ │ │ ├── cls.lay │ │ │ ├── equals.lay │ │ │ ├── is_a.lay │ │ │ └── str.lay │ │ ├── print │ │ │ ├── basic.lay │ │ │ ├── multi.lay │ │ │ └── with_newline_char.lay │ │ ├── str │ │ │ ├── down_case.lay │ │ │ ├── has.lay │ │ │ ├── index.lay │ │ │ ├── iter.lay │ │ │ ├── len.lay │ │ │ ├── slice.lay │ │ │ ├── split.lay │ │ │ ├── str.lay │ │ │ ├── trim.lay │ │ │ ├── trim_end.lay │ │ │ ├── trim_start.lay │ │ │ └── up_case.lay │ │ └── tuple │ │ │ ├── collect.lay │ │ │ ├── has.lay │ │ │ ├── index.lay │ │ │ ├── index_get.lay │ │ │ ├── index_get_fractional.lay │ │ │ ├── index_get_fractional_negative.lay │ │ │ ├── index_get_negative.lay │ │ │ ├── index_get_nested.lay │ │ │ ├── index_get_out_of_range.lay │ │ │ ├── index_get_out_of_range_negative.lay │ │ │ ├── iter.lay │ │ │ ├── len.lay │ │ │ ├── slice.lay │ │ │ └── str.lay │ │ ├── io │ │ ├── fs │ │ │ ├── readFile.lay │ │ │ ├── read_example.txt │ │ │ ├── removeFile.lay │ │ │ └── writeFile.lay │ │ └── stdio │ │ │ ├── stderr │ │ │ ├── write.lay │ │ │ └── writeln.lay │ │ │ ├── stdin │ │ │ ├── read.lay │ │ │ └── readline.lay │ │ │ └── stdout │ │ │ ├── write.lay │ │ │ └── writeln.lay │ │ ├── math │ │ └── utils │ │ │ ├── abs.lay │ │ │ ├── cos.lay │ │ │ ├── ln.lay │ │ │ ├── max.lay │ │ │ ├── min.lay │ │ │ ├── rand.lay │ │ │ ├── rem.lay │ │ │ └── sin.lay │ │ └── regexp │ │ └── class │ │ ├── captures.lay │ │ ├── match.lay │ │ └── test.lay ├── src │ ├── byte_code.rs │ ├── cache.rs │ ├── chunk_builder.rs │ ├── compiler │ │ ├── ir │ │ │ ├── ast.rs │ │ │ ├── ast_printer.rs │ │ │ ├── mod.rs │ │ │ ├── symbol_table.rs │ │ │ └── token.rs │ │ ├── mod.rs │ │ ├── parser.rs │ │ ├── peephole.rs │ │ ├── ref_no_context.rs │ │ ├── resolver.rs │ │ └── scanner.rs │ ├── constants.rs │ ├── debug.rs │ ├── fiber │ │ ├── builder.rs │ │ ├── call_frame.rs │ │ ├── exception_handler.rs │ │ └── mod.rs │ ├── lib.rs │ ├── source │ │ ├── files.rs │ │ └── mod.rs │ └── vm │ │ ├── basic.rs │ │ ├── debug.rs │ │ ├── error.rs │ │ ├── hooks.rs │ │ ├── impls.rs │ │ ├── mod.rs │ │ ├── ops.rs │ │ └── source_loader.rs └── tests │ ├── env.rs │ ├── global.rs │ ├── io.rs │ ├── language.rs │ ├── math.rs │ ├── regexp.rs │ └── support │ └── mod.rs ├── laythe_wasm ├── Cargo.toml ├── src │ ├── lib.rs │ ├── stdio_wasm.rs │ └── time_wasm.rs └── web │ ├── .travis.yml │ ├── LICENSE-APACHE │ ├── LICENSE-MIT │ ├── README.md │ ├── bootstrap.js │ ├── index.html │ ├── index.js │ ├── init.js │ ├── language.js │ ├── package-lock.json │ ├── package.json │ └── webpack.config.js ├── profiling.md └── rustfmt.toml /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/.DS_Store -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/.gitignore -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.3.4 2 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/README.md -------------------------------------------------------------------------------- /laythe.bnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe.bnf -------------------------------------------------------------------------------- /laythe/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe/Cargo.toml -------------------------------------------------------------------------------- /laythe/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe/src/main.rs -------------------------------------------------------------------------------- /laythe_core/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/Cargo.toml -------------------------------------------------------------------------------- /laythe_core/src/align_utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/align_utils.rs -------------------------------------------------------------------------------- /laythe_core/src/allocator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/allocator.rs -------------------------------------------------------------------------------- /laythe_core/src/captures.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/captures.rs -------------------------------------------------------------------------------- /laythe_core/src/chunk.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/chunk.rs -------------------------------------------------------------------------------- /laythe_core/src/collections/array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/collections/array.rs -------------------------------------------------------------------------------- /laythe_core/src/collections/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/collections/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/collections/shared_vector/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/collections/shared_vector/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/collections/shared_vector/raw_shared_vector.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/collections/shared_vector/raw_shared_vector.rs -------------------------------------------------------------------------------- /laythe_core/src/collections/unique_vector/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/collections/unique_vector/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/collections/unique_vector/raw_unique_vector.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/collections/unique_vector/raw_unique_vector.rs -------------------------------------------------------------------------------- /laythe_core/src/collections/utils.rs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /laythe_core/src/collections/vec_builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/collections/vec_builder.rs -------------------------------------------------------------------------------- /laythe_core/src/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/constants.rs -------------------------------------------------------------------------------- /laythe_core/src/hooks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/hooks.rs -------------------------------------------------------------------------------- /laythe_core/src/impls.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/impls.rs -------------------------------------------------------------------------------- /laythe_core/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/lib.rs -------------------------------------------------------------------------------- /laythe_core/src/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/macros.rs -------------------------------------------------------------------------------- /laythe_core/src/managed/allocate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/managed/allocate.rs -------------------------------------------------------------------------------- /laythe_core/src/managed/allocation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/managed/allocation.rs -------------------------------------------------------------------------------- /laythe_core/src/managed/header.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/managed/header.rs -------------------------------------------------------------------------------- /laythe_core/src/managed/manage.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/managed/manage.rs -------------------------------------------------------------------------------- /laythe_core/src/managed/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/managed/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/module/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/module/error.rs -------------------------------------------------------------------------------- /laythe_core/src/module/import.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/module/import.rs -------------------------------------------------------------------------------- /laythe_core/src/module/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/module/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/module/package.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/module/package.rs -------------------------------------------------------------------------------- /laythe_core/src/object/channel/channel_queue.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/channel/channel_queue.rs -------------------------------------------------------------------------------- /laythe_core/src/object/channel/channel_waiter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/channel/channel_waiter.rs -------------------------------------------------------------------------------- /laythe_core/src/object/channel/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/channel/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/object/class.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/class.rs -------------------------------------------------------------------------------- /laythe_core/src/object/closure.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/closure.rs -------------------------------------------------------------------------------- /laythe_core/src/object/enumerator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/enumerator.rs -------------------------------------------------------------------------------- /laythe_core/src/object/fun.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/fun.rs -------------------------------------------------------------------------------- /laythe_core/src/object/header.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/header.rs -------------------------------------------------------------------------------- /laythe_core/src/object/instance/header.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/instance/header.rs -------------------------------------------------------------------------------- /laythe_core/src/object/instance/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/instance/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/object/list.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/list.rs -------------------------------------------------------------------------------- /laythe_core/src/object/ly_box.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/ly_box.rs -------------------------------------------------------------------------------- /laythe_core/src/object/ly_str.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/ly_str.rs -------------------------------------------------------------------------------- /laythe_core/src/object/map.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/map.rs -------------------------------------------------------------------------------- /laythe_core/src/object/method.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/method.rs -------------------------------------------------------------------------------- /laythe_core/src/object/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/object/native.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/native.rs -------------------------------------------------------------------------------- /laythe_core/src/object/tuple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/object/tuple.rs -------------------------------------------------------------------------------- /laythe_core/src/reference/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/reference/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/reference/obj_reference.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/reference/obj_reference.rs -------------------------------------------------------------------------------- /laythe_core/src/signature.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/signature.rs -------------------------------------------------------------------------------- /laythe_core/src/support/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/support/mod.rs -------------------------------------------------------------------------------- /laythe_core/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/utils.rs -------------------------------------------------------------------------------- /laythe_core/src/value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_core/src/value.rs -------------------------------------------------------------------------------- /laythe_env/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_env/Cargo.toml -------------------------------------------------------------------------------- /laythe_env/src/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_env/src/env.rs -------------------------------------------------------------------------------- /laythe_env/src/fs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_env/src/fs.rs -------------------------------------------------------------------------------- /laythe_env/src/io.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_env/src/io.rs -------------------------------------------------------------------------------- /laythe_env/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_env/src/lib.rs -------------------------------------------------------------------------------- /laythe_env/src/stdio.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_env/src/stdio.rs -------------------------------------------------------------------------------- /laythe_env/src/time.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_env/src/time.rs -------------------------------------------------------------------------------- /laythe_frontend_bench/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_frontend_bench/Cargo.toml -------------------------------------------------------------------------------- /laythe_frontend_bench/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_frontend_bench/src/main.rs -------------------------------------------------------------------------------- /laythe_lib/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/Cargo.toml -------------------------------------------------------------------------------- /laythe_lib/src/builtin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/builtin.rs -------------------------------------------------------------------------------- /laythe_lib/src/env/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/env/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/env/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/env/utils.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/assert/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/assert/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/misc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/misc.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/bool.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/bool.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/channel.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/channel.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/class.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/class.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/closure.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/closure.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/error.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/fun.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/fun.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/iter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/iter.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/list.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/list.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/map.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/map.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/method.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/method.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/module.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/module.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/native.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/native.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/nil.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/nil.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/number.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/number.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/object.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/object.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/string.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/primitives/tuple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/primitives/tuple.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/support/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/support/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/time/clock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/time/clock.rs -------------------------------------------------------------------------------- /laythe_lib/src/global/time/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/global/time/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/fs/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/fs/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/fs/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/fs/utils.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/global/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/global/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/stdio/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/stdio/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/stdio/stderr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/stdio/stderr.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/stdio/stdin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/stdio/stdin.rs -------------------------------------------------------------------------------- /laythe_lib/src/io/stdio/stdout.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/io/stdio/stdout.rs -------------------------------------------------------------------------------- /laythe_lib/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/lib.rs -------------------------------------------------------------------------------- /laythe_lib/src/math/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/math/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/math/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/math/utils.rs -------------------------------------------------------------------------------- /laythe_lib/src/regexp/class.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/regexp/class.rs -------------------------------------------------------------------------------- /laythe_lib/src/regexp/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/regexp/mod.rs -------------------------------------------------------------------------------- /laythe_lib/src/support/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_lib/src/support/mod.rs -------------------------------------------------------------------------------- /laythe_native/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_native/Cargo.toml -------------------------------------------------------------------------------- /laythe_native/src/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_native/src/env.rs -------------------------------------------------------------------------------- /laythe_native/src/fs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_native/src/fs.rs -------------------------------------------------------------------------------- /laythe_native/src/io.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_native/src/io.rs -------------------------------------------------------------------------------- /laythe_native/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_native/src/lib.rs -------------------------------------------------------------------------------- /laythe_native/src/stdio.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_native/src/stdio.rs -------------------------------------------------------------------------------- /laythe_native/src/time.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_native/src/time.rs -------------------------------------------------------------------------------- /laythe_vm/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/Cargo.toml -------------------------------------------------------------------------------- /laythe_vm/benches/compiler_benches.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/benches/compiler_benches.rs -------------------------------------------------------------------------------- /laythe_vm/benches/parser_benches.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/benches/parser_benches.rs -------------------------------------------------------------------------------- /laythe_vm/benches/vm_benches.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/benches/vm_benches.rs -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/binary_trees.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/binary_trees.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/channel.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/channel.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/collections.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/collections.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/equality.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/equality.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/fib.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/fib.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/fibers.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/fibers.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/fluent.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/fluent.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/instantiation.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/instantiation.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/invocation.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/invocation.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/list.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/list.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/method_call.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/method_call.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/properties.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/properties.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/string.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/string.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/string_equality.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/string_equality.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/trees.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/trees.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/benchmark/zoo.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/benchmark/zoo.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/compiler/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/compiler/README.md -------------------------------------------------------------------------------- /laythe_vm/fixture/compiler/arm_compiler.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/compiler/arm_compiler.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/binary_trees.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/binary_trees.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/channel.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/channel.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/equality.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/equality.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/fib.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/fib.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/fibers.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/fibers.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/fluent.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/fluent.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/instantiation.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/instantiation.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/invocation.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/invocation.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/method_call.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/method_call.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/properties.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/properties.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/string.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/string.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/string_equality.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/string_equality.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/trees.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/trees.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/criterion/zoo.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/criterion/zoo.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/demo/gameOfLife.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/demo/gameOfLife.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/allowed_postfix.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/allowed_postfix.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/associativity.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/associativity.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/global.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/global.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/grouping.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/grouping.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/infix_operator.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/infix_operator.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/local.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/local.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/prefix_operator.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/prefix_operator.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/syntax.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/syntax.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/to_this.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/to_this.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/assignment/undefined.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/assignment/undefined.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/associativity.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/associativity.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/global.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/global.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/grouping.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/grouping.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/local.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/local.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/operators.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/operators.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/syntax.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/syntax.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/to_this.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/to_this.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/binary_assignment/undefined.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/binary_assignment/undefined.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/block/empty.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/block/empty.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/block/scope.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/block/scope.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/bool/equality.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/bool/equality.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/bool/not.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/bool/not.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/additional_scopes.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/break/additional_scopes.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/for_break.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/break/for_break.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/in_function_in_loop.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/break/in_function_in_loop.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/nested_for_loops.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/break/nested_for_loops.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/nested_while_loops.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/break/nested_while_loops.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/outside_loop.lay: -------------------------------------------------------------------------------- 1 | break; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/while_break.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/break/while_break.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/break/with_drops.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/break/with_drops.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/call/bool.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/call/bool.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/call/nil.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/call/nil.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/call/num.lay: -------------------------------------------------------------------------------- 1 | 123(); // expect runtime error: Can only call functions and classes. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/call/object.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/call/object.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/call/string.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/call/string.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/buffered.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/buffered.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/channel_send_channel.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/channel_send_channel.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/channel_sync.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/channel_sync.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/close_closed.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/close_closed.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/fancy.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/fancy.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/in_collection.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/in_collection.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/in_function.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/in_function.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/in_instance.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/in_instance.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/in_instance_implicit.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/in_instance_implicit.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/missing_closing_paren.lay: -------------------------------------------------------------------------------- 1 | chan(; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/missing_open_paren.lay: -------------------------------------------------------------------------------- 1 | chan; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/multi_capture_increment.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/multi_capture_increment.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/non_integer_capacity.lay: -------------------------------------------------------------------------------- 1 | chan(1.5); -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/non_number_capacity.lay: -------------------------------------------------------------------------------- 1 | chan('5'); -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/receive_buffered.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/receive_buffered.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/receive_buffered_closed.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/receive_buffered_closed.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/receive_buffered_deadlock.lay: -------------------------------------------------------------------------------- 1 | let x = chan(5); 2 | <- x; 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/receive_sync.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/receive_sync.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/receive_sync_closed.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/receive_sync_closed.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/receive_sync_deadlock.lay: -------------------------------------------------------------------------------- 1 | let x = chan(); 2 | <- x; 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/receive_sync_no_send.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/receive_sync_no_send.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/send_buffered.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/send_buffered.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/send_buffered_closed.lay: -------------------------------------------------------------------------------- 1 | let x = chan(5); 2 | 3 | x.close(); 4 | x <- 1; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/send_buffered_deadlock.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/send_buffered_deadlock.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/send_sync.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/send_sync.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/send_sync_closed.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/send_sync_closed.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/send_sync_deadlock.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/send_sync_deadlock.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/channel/sync.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/channel/sync.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/allowed_postfix.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/allowed_postfix.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/bro.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/bro.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/empty.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/empty.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/inherit_self.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/inherit_self.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/inherited_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/inherited_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/local_inherit_other.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/local_inherit_other.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/local_inherit_self.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/local_inherit_self.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/local_reference_self.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/local_reference_self.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/class/reference_self.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/class/reference_self.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/closure/assign_to_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/closure/assign_to_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/closure/nested_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/closure/nested_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/closure/reuse_closure_slot.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/closure/reuse_closure_slot.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/closure/unused_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/closure/unused_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/closure/unused_later_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/closure/unused_later_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/comments/line_at_eof.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/comments/line_at_eof.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/comments/only_line_comment.lay: -------------------------------------------------------------------------------- 1 | // comment -------------------------------------------------------------------------------- /laythe_vm/fixture/language/comments/only_line_comment_and_line.lay: -------------------------------------------------------------------------------- 1 | // comment 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/comments/unicode.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/comments/unicode.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/default.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/default.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/default_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/default_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/early_return.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/early_return.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/extra_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/extra_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/init_not_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/init_not_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/missing_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/missing_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/constructor/return_value.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/constructor/return_value.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/additional_scopes.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/continue/additional_scopes.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/for_continue.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/continue/for_continue.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/in_function_in_loop.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/continue/in_function_in_loop.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/nested_for_loops.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/continue/nested_for_loops.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/nested_while_loops.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/continue/nested_while_loops.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/outside_loop.lay: -------------------------------------------------------------------------------- 1 | continue; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/while_continue.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/continue/while_continue.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/continue/with_drops.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/continue/with_drops.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/empty_file.lay: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/catch_no_block.lay: -------------------------------------------------------------------------------- 1 | try {} catch -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/catch_not_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/catch_not_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/catch_not_error_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/catch_not_error_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/catch_not_identifier.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/catch_not_identifier.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/multiple_catches.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/multiple_catches.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/nested_break.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/nested_break.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/nested_continue.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/nested_continue.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/nested_return.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/nested_return.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/one_deep_catch.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/one_deep_catch.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/one_deep_raise.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/one_deep_raise.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/top_level_catch.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/top_level_catch.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/top_level_catch_raise.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/top_level_catch_raise.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/top_level_raise.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/top_level_raise.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/try_error_in_catch.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/try_error_in_catch.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/try_fall_through.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/try_fall_through.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/try_no_block.lay: -------------------------------------------------------------------------------- 1 | try -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/try_no_catch.lay: -------------------------------------------------------------------------------- 1 | try {} -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/two_deep_catch.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/two_deep_catch.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/exception/two_deep_raise.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/exception/two_deep_raise.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/declaration_class.lay: -------------------------------------------------------------------------------- 1 | export class A {} -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/declaration_fn.lay: -------------------------------------------------------------------------------- 1 | export fn a() { 10 } -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/declaration_let.lay: -------------------------------------------------------------------------------- 1 | export let a = 10; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/literal.lay: -------------------------------------------------------------------------------- 1 | export 10; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/local.lay: -------------------------------------------------------------------------------- 1 | { 2 | export let a = 10; 3 | } -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/non_declaration_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/export/non_declaration_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/non_declaration_fn.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/export/non_declaration_fn.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/export/non_declaration_let.lay: -------------------------------------------------------------------------------- 1 | let a = 10; 2 | export a; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/expressions/evaluate.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/expressions/evaluate.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/expressions/parse.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/expressions/parse.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/call_function_field.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/call_function_field.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/call_nonfunction_field.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/call_nonfunction_field.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/get_on_bool.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/get_on_bool.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/get_on_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/get_on_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/get_on_function.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/get_on_function.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/get_on_nil.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/get_on_nil.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/get_on_num.lay: -------------------------------------------------------------------------------- 1 | 123.foo; // expect runtime error: Only instances have properties. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/get_on_string.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/get_on_string.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/get_undefined.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/get_undefined.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/many.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/many.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/many_implicit.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/many_implicit.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/method_binds_self.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/method_binds_self.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/on_instance.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/on_instance.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/on_instance_implicit.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/on_instance_implicit.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_evaluation_order.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/set_evaluation_order.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_on_bool.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/set_on_bool.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_on_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/set_on_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_on_function.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/set_on_function.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_on_nil.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/set_on_nil.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_on_num.lay: -------------------------------------------------------------------------------- 1 | 123.foo = "value"; // expect runtime error: Only instances have fields. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_on_string.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/set_on_string.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/field/set_undefined.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/field/set_undefined.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/cannot_assign_iter.lay: -------------------------------------------------------------------------------- 1 | for i in [1, 2, 3] { 2 | $iter = false; 3 | } -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/class_in_body.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/for/class_in_body.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/closure_in_body.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/for/closure_in_body.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/fn_in_body.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'fun': Expect expression. 2 | for i in [] fn foo() {} 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/let_in_body.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'let': Expect expression. 2 | for i in [] let foo; 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/return_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/for/return_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/return_inside.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/for/return_inside.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/scope.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/for/scope.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/for/statement_iterator.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/for/statement_iterator.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/allowed_postfix.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/allowed_postfix.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/body_must_be_block.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/body_must_be_block.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/empty_body.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/empty_body.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/extra_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/extra_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/local_mutual_recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/local_mutual_recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/local_recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/local_recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/missing_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/missing_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/mutual_recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/mutual_recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/parameters.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/parameters.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/print.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/print.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/too_many_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/too_many_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/function/too_many_parameters.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/function/too_many_parameters.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/call_ly_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/hooks/call_ly_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/call_ly_function.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/hooks/call_ly_function.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/call_ly_instance.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/hooks/call_ly_instance.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/call_native.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/hooks/call_native.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/pass_error_ly_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/hooks/pass_error_ly_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/pass_error_ly_function.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/hooks/pass_error_ly_function.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/pass_error_ly_instance.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/hooks/pass_error_ly_instance.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/hooks/pass_error_native.lay: -------------------------------------------------------------------------------- 1 | [].remove.call(-2); -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/class_in_else.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/class_in_else.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/class_in_then.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/class_in_then.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/dangling_else.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/dangling_else.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/else.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/else.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/fun_in_else.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/fun_in_else.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/fun_in_then.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'fun': Expect expression. 2 | if true) fn foo( {} 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/if.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/if.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/let_in_else.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/let_in_else.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/let_in_then.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'let': Expect expression. 2 | if true let foo; 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/if/truth.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/if/truth.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/implicit_return/after_else.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/implicit_return/after_else.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/implicit_return/after_if.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/implicit_return/after_if.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/implicit_return/after_while.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/implicit_return/after_while.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/implicit_return/at_top_level.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/implicit_return/at_top_level.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/implicit_return/in_function.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/implicit_return/in_function.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/implicit_return/in_init.lay: -------------------------------------------------------------------------------- 1 | class A { 2 | init() { 10 } 3 | } -------------------------------------------------------------------------------- /laythe_vm/fixture/language/implicit_return/in_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/implicit_return/in_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/import_in_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/import_in_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/import_in_fun.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/import_in_fun.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/import_in_scope.lay: -------------------------------------------------------------------------------- 1 | if true { 2 | import std.math:{abs}; 3 | } -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/missing_path.lay: -------------------------------------------------------------------------------- 1 | import -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/missing_semicolon.lay: -------------------------------------------------------------------------------- 1 | import std.time -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/module.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/module.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/module_not_real.lay: -------------------------------------------------------------------------------- 1 | import std.no_real; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/module_rename.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/module_rename.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/non_identifier_path.lay: -------------------------------------------------------------------------------- 1 | import false:{time}; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/rename_missing.lay: -------------------------------------------------------------------------------- 1 | import std.time as -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/rename_not_identifer.lay: -------------------------------------------------------------------------------- 1 | import std.time as true; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/rename_redefine.lay: -------------------------------------------------------------------------------- 1 | let Fs = "example"; 2 | import std.io.fs as Fs; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/symbol.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/symbol.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/symbol_rename.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/symbol_rename.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/symbols_not_real.lay: -------------------------------------------------------------------------------- 1 | import std.math:{foo}; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/symbols_redefine.lay: -------------------------------------------------------------------------------- 1 | let File = "example"; 2 | import std.io.fs:{File}; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/symbols_rename_missing.lay: -------------------------------------------------------------------------------- 1 | import std.io.fs:{File as}; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/symbols_rename_not_identifer.lay: -------------------------------------------------------------------------------- 1 | import std.io.fs:{File as true}; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/symbols_rename_redefine.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/symbols_rename_redefine.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/user_import/cycle_1.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/user_import/cycle_1.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/user_import/cycle_2.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/user_import/cycle_2.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/user_import/cycle_3.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/user_import/cycle_3.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/user_import/lib.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/user_import/lib.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/user_import/module.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/user_import/module.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/import/user_import/symbol.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/import/user_import/symbol.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/inheritance/constructor.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/inheritance/constructor.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/inheritance/inherit_from_nil.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/inheritance/inherit_from_nil.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/inheritance/inherit_from_number.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/inheritance/inherit_from_number.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/inheritance/inherit_methods.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/inheritance/inherit_methods.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/inline_cache/invoke_thrash.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/inline_cache/invoke_thrash.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/iterator/assign_iter_keep_state.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/iterator/assign_iter_keep_state.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/iterator/basic.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/iterator/basic.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/iterator/equality.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/iterator/equality.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/empty_body.lay: -------------------------------------------------------------------------------- 1 | let f = || {}; 2 | assertEq(f(), nil); // expect: nil 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/expression_body.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/expression_body.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/extra_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/extra_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/local_mutual_recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/local_mutual_recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/local_recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/local_recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/missing_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/missing_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/mutual_recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/mutual_recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/parameters.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/parameters.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/recursion.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/lambda/recursion.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/lambda/str.lay: -------------------------------------------------------------------------------- 1 | let foo = || {}; 2 | assert(foo.str().has(" 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/greater_num_nonnum.lay: -------------------------------------------------------------------------------- 1 | 1 > "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/greater_or_equal_nonnum_num.lay: -------------------------------------------------------------------------------- 1 | "1" >= 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/greater_or_equal_num_nonnum.lay: -------------------------------------------------------------------------------- 1 | 1 >= "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/less_nonnum_num.lay: -------------------------------------------------------------------------------- 1 | "1" < 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/less_num_nonnum.lay: -------------------------------------------------------------------------------- 1 | 1 < "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/less_or_equal_nonnum_num.lay: -------------------------------------------------------------------------------- 1 | "1" <= 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/less_or_equal_num_nonnum.lay: -------------------------------------------------------------------------------- 1 | 1 <= "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/multiply.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/operator/multiply.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/multiply_nonnum_num.lay: -------------------------------------------------------------------------------- 1 | "1" * 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/multiply_num_nonnum.lay: -------------------------------------------------------------------------------- 1 | 1 * "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/negate.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/operator/negate.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/negate_nonnum.lay: -------------------------------------------------------------------------------- 1 | -"s"; // expect runtime error: Operand must be a number. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/not.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/operator/not.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/not_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/operator/not_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/not_equals.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/operator/not_equals.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/subtract.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/operator/subtract.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/subtract_nonnum_num.lay: -------------------------------------------------------------------------------- 1 | "1" - 1; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/operator/subtract_num_nonnum.lay: -------------------------------------------------------------------------------- 1 | 1 - "1"; // expect runtime error: Operands must be numbers. 2 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/precedence.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/precedence.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/raise/no_expr.lay: -------------------------------------------------------------------------------- 1 | raise -------------------------------------------------------------------------------- /laythe_vm/fixture/language/raise/no_semi.lay: -------------------------------------------------------------------------------- 1 | raise Error("cool") -------------------------------------------------------------------------------- /laythe_vm/fixture/language/raise/not_error_subclass.lay: -------------------------------------------------------------------------------- 1 | class A {} 2 | 3 | raise A(); -------------------------------------------------------------------------------- /laythe_vm/fixture/language/raise/not_instance.lay: -------------------------------------------------------------------------------- 1 | raise 10; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/raise/raise_error.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/raise/raise_error.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/raise/raise_error_subclass.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/raise/raise_error_subclass.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/regression/394.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/regression/394.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/regression/40.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/regression/40.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/regression/continue.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/regression/continue.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/regression/missing_symbol.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/regression/missing_symbol.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/return/after_else.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/return/after_else.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/return/after_if.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/return/after_if.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/return/after_while.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/return/after_while.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/return/at_top_level.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/return/at_top_level.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/return/in_function.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/return/in_function.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/return/in_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/return/in_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/scanning/identifiers.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/scanning/identifiers.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/scanning/keywords.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/scanning/keywords.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/scanning/numbers.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/scanning/numbers.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/scanning/punctuators.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/scanning/punctuators.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/scanning/strings.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/scanning/strings.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/scanning/whitespace.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/scanning/whitespace.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/self/closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/self/closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/self/nested_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/self/nested_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/self/nested_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/self/nested_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/self/pass_through_assign.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/self/pass_through_assign.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/self/self_at_top_level.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/self/self_at_top_level.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/self/self_in_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/self/self_in_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/static_method/arity.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/static_method/arity.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/static_method/call_bound.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/static_method/call_bound.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/static_method/empty_block.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/static_method/empty_block.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/static_method/no_self.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/static_method/no_self.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/static_method/not_found.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/static_method/not_found.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/static_method/not_inherited.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/static_method/not_inherited.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/static_method/refer_to_name.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/static_method/refer_to_name.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/error_after_multiline.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/error_after_multiline.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/escape.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/escape.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/interpolation.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/interpolation.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/invalid_escape.lay: -------------------------------------------------------------------------------- 1 | "\q"; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/invalid_interpolation_missing_close.lay: -------------------------------------------------------------------------------- 1 | '${10' -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/invalid_unicode_hex.lay: -------------------------------------------------------------------------------- 1 | "\u{x}"; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/invalid_unicode_missing_close.lay: -------------------------------------------------------------------------------- 1 | "\u{1"; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/invalid_unicode_missing_open.lay: -------------------------------------------------------------------------------- 1 | "\u"; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/invalid_unicode_no_hex.lay: -------------------------------------------------------------------------------- 1 | "\u{}"; -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/literals.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/literals.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/multiline.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/multiline.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/unicode_escape.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/unicode_escape.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/unterminated_double.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/unterminated_double.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/string/unterminated_single.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/string/unterminated_single.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/bound_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/bound_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/call_other_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/call_other_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/call_same_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/call_same_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/constructor.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/constructor.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/extra_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/extra_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/indirectly_inherited.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/indirectly_inherited.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/missing_arguments.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/missing_arguments.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/no_superclass_call.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/no_superclass_call.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/no_superclass_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/no_superclass_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/parenthesized.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/parenthesized.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/reassign_superclass.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/reassign_superclass.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/super_at_top_level.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/super_at_top_level.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/super_without_dot.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/super_without_dot.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/super/super_without_name.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/super/super_without_name.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/tuple/empty.lay: -------------------------------------------------------------------------------- 1 | assertEq(().cls(), Tuple); -------------------------------------------------------------------------------- /laythe_vm/fixture/language/tuple/empty_comma.lay: -------------------------------------------------------------------------------- 1 | (,); -------------------------------------------------------------------------------- /laythe_vm/fixture/language/tuple/homogeneous.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/tuple/homogeneous.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/tuple/missing_closing_bracket.lay: -------------------------------------------------------------------------------- 1 | let a = (1, 2, 3 -------------------------------------------------------------------------------- /laythe_vm/fixture/language/tuple/mixed.lay: -------------------------------------------------------------------------------- 1 | assertEq((nil, true, 10.3, "cat").cls(), Tuple); -------------------------------------------------------------------------------- /laythe_vm/fixture/language/unexpected_character.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/unexpected_character.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/duplicate_local.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/duplicate_local.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/duplicate_parameter.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/duplicate_parameter.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/early_bound.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/early_bound.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/in_middle_of_block.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/in_middle_of_block.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/in_nested_block.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/in_nested_block.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/local_from_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/local_from_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/redeclare_global.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/redeclare_global.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/redefine_global.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/redefine_global.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/shadow_and_local.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/shadow_and_local.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/shadow_global.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/shadow_global.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/shadow_local.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/shadow_local.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/undefined_global.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/undefined_global.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/undefined_local.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/undefined_local.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/uninitialized.lay: -------------------------------------------------------------------------------- 1 | let a; 2 | assertEq(a, nil); // expect: nil 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/unreached_undefined.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/unreached_undefined.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/use_false_as_var.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/variable/use_false_as_var.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/use_nil_as_var.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'nil': Expect variable name. 2 | let nil = "value"; 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/variable/use_this_as_var.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'self': Expect variable name. 2 | let self = "value"; 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/while/class_in_body.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/while/class_in_body.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/while/closure_in_body.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/while/closure_in_body.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/while/fun_in_body.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'fun': Expect expression. 2 | while true) fn foo( {} 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/language/while/return_closure.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/while/return_closure.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/while/return_inside.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/while/return_inside.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/while/syntax.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/language/while/syntax.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/language/while/var_in_body.lay: -------------------------------------------------------------------------------- 1 | // [line 2] Error at 'let': Expect expression. 2 | while (true) let foo; 3 | -------------------------------------------------------------------------------- /laythe_vm/fixture/lox_interpreter/lox.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/lox_interpreter/lox.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/binary_trees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/binary_trees.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/equality.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/equality.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/fib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/fib.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/instantiation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/instantiation.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/invocation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/invocation.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/list.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/method_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/method_call.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/properties.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/strings.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/trees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/trees.py -------------------------------------------------------------------------------- /laythe_vm/fixture/py_benchmark/zoo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/py_benchmark/zoo.py -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/binary_trees.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/binary_trees.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/equality.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/equality.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/fib.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/fib.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/instantiation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/instantiation.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/invocation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/invocation.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/list.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/method_call.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/method_call.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/properties.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/properties.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/string.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/trees.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/trees.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/rb_benchmark/zoo.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/rb_benchmark/zoo.rb -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/env/args.lay: -------------------------------------------------------------------------------- 1 | import std.env; 2 | 3 | assert(env.args().len() > 0); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/env/cwd.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/env/cwd.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/bool/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/bool/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/channel/capacity.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/channel/capacity.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/channel/close.lay: -------------------------------------------------------------------------------- 1 | assertEq(chan().close(), nil); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/channel/close_close.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/channel/close_close.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/channel/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/channel/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/channel/str.lay: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/class/name.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/class/name.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/class/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/class/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/class/superCls.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/class/superCls.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/closure/call.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/closure/call.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/closure/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/closure/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/closure/len_wrong_args.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/closure/len_wrong_args.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/closure/name.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/closure/name.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/error/construct.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/error/construct.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/error/sub_class.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/error/sub_class.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/fun/call.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/fun/call.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/fun/call_wrong_args.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/fun/call_wrong_args.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/fun/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/fun/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/fun/len_wrong_args.lay: -------------------------------------------------------------------------------- 1 | fn f(x) { 2 | print(x); 3 | } 4 | 5 | f.len(10); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/fun/name.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/fun/name.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/fun/name_wrong_args.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/fun/name_wrong_args.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/all.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/all.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/any.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/any.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/chain.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/chain.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/each.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/each.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/filter.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/filter.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/filter_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/filter_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/first.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/first.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/into.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/into.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/iter.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/iter.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/last.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/last.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/map.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/map.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/map_method.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/map_method.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/next.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/next.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/reduce.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/reduce.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/skip.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/skip.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/take.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/take.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/to_list.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/to_list.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/iter/zip.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/iter/zip.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/clear.lay: -------------------------------------------------------------------------------- 1 | let x = [1, 2, 3]; 2 | x.clear(); 3 | assertEq(x.len(), 0); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/collect.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/collect.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/has.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/has.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/index.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_get.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/index_get.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_get_fractional.lay: -------------------------------------------------------------------------------- 1 | [1][0.5]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_get_fractional_negative.lay: -------------------------------------------------------------------------------- 1 | [1][-0.5]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_get_nested.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/index_get_nested.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_get_out_of_range.lay: -------------------------------------------------------------------------------- 1 | let list = [1, 2, 3]; 2 | list[10]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_get_out_of_range_negative.lay: -------------------------------------------------------------------------------- 1 | let list = [1, 2, 3]; 2 | list[-5]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_set.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/index_set.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_set_fractional.lay: -------------------------------------------------------------------------------- 1 | let list = [1, 2, 3, 4, "5"]; 2 | list[0.5]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_set_fractional_negative.lay: -------------------------------------------------------------------------------- 1 | let list = [1, 2, 3, 4, "5"]; 2 | list[-0.5]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/index_set_nested.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/index_set_nested.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/insert.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/insert.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/insert_out_of_bounds.lay: -------------------------------------------------------------------------------- 1 | [].insert(1, true); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/iter.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/iter.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/pop.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/pop.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/push.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/push.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/remove.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/remove.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/remove_out_of_bounds.lay: -------------------------------------------------------------------------------- 1 | [].remove(10); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/rev.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/rev.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/slice.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/slice.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/sort.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/sort.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/list/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/list/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/get.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/get.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/has.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/has.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/index_get.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/index_get.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/index_get_key_not_found.lay: -------------------------------------------------------------------------------- 1 | let map = {}; 2 | map["not found"]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/index_get_nan.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/index_get_nan.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/index_get_nested.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/index_get_nested.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/index_set.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/index_set.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/index_set_nested.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/index_set_nested.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/insert.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/insert.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/iter.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/iter.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/remove.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/remove.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/remove_missing_key.lay: -------------------------------------------------------------------------------- 1 | ({}).remove(10); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/set.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/set.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/map/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/map/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/method/call.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/method/call.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/method/name.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/method/name.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/module/name.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/module/name.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/nil/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/nil/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/number/ceil.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/number/ceil.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/number/cmp.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/number/cmp.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/number/floor.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/number/floor.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/number/parse.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/number/parse.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/number/round.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/number/round.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/number/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/number/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/number/times.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/number/times.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/object/cls.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/object/cls.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/object/equals.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/object/equals.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/object/is_a.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/object/is_a.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/object/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/object/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/print/basic.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/print/basic.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/print/multi.lay: -------------------------------------------------------------------------------- 1 | print(10, false, true, ['dog'], { 'cat': nil }); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/print/with_newline_char.lay: -------------------------------------------------------------------------------- 1 | print('hi!\nbye!'); -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/down_case.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/down_case.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/has.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/has.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/index.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/index.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/iter.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/iter.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/slice.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/slice.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/split.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/split.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/trim.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/trim.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/trim_end.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/trim_end.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/trim_start.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/trim_start.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/str/up_case.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/str/up_case.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/collect.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/collect.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/has.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/has.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/index.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/index.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/index_get.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/index_get.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/index_get_fractional.lay: -------------------------------------------------------------------------------- 1 | (1,)[0.5]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/index_get_fractional_negative.lay: -------------------------------------------------------------------------------- 1 | (1,)[-0.5]; -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/index_get_nested.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/index_get_nested.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/iter.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/iter.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/len.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/len.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/slice.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/slice.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/global/tuple/str.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/global/tuple/str.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/fs/readFile.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/fs/readFile.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/fs/read_example.txt: -------------------------------------------------------------------------------- 1 | example text 2 | with a new line -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/fs/removeFile.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/fs/removeFile.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/fs/writeFile.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/fs/writeFile.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/stdio/stderr/write.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/stdio/stderr/write.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/stdio/stderr/writeln.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/stdio/stderr/writeln.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/stdio/stdin/read.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/stdio/stdin/read.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/stdio/stdin/readline.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/stdio/stdin/readline.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/stdio/stdout/write.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/stdio/stdout/write.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/io/stdio/stdout/writeln.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/io/stdio/stdout/writeln.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/abs.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/abs.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/cos.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/cos.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/ln.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/ln.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/max.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/max.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/min.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/min.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/rand.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/rand.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/rem.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/rem.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/math/utils/sin.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/math/utils/sin.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/regexp/class/captures.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/regexp/class/captures.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/regexp/class/match.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/regexp/class/match.lay -------------------------------------------------------------------------------- /laythe_vm/fixture/std_lib/regexp/class/test.lay: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/fixture/std_lib/regexp/class/test.lay -------------------------------------------------------------------------------- /laythe_vm/src/byte_code.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/byte_code.rs -------------------------------------------------------------------------------- /laythe_vm/src/cache.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/cache.rs -------------------------------------------------------------------------------- /laythe_vm/src/chunk_builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/chunk_builder.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/ir/ast.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/ir/ast.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/ir/ast_printer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/ir/ast_printer.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/ir/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/ir/mod.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/ir/symbol_table.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/ir/symbol_table.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/ir/token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/ir/token.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/mod.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/parser.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/peephole.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/peephole.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/ref_no_context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/ref_no_context.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/resolver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/resolver.rs -------------------------------------------------------------------------------- /laythe_vm/src/compiler/scanner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/compiler/scanner.rs -------------------------------------------------------------------------------- /laythe_vm/src/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/constants.rs -------------------------------------------------------------------------------- /laythe_vm/src/debug.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/debug.rs -------------------------------------------------------------------------------- /laythe_vm/src/fiber/builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/fiber/builder.rs -------------------------------------------------------------------------------- /laythe_vm/src/fiber/call_frame.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/fiber/call_frame.rs -------------------------------------------------------------------------------- /laythe_vm/src/fiber/exception_handler.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/fiber/exception_handler.rs -------------------------------------------------------------------------------- /laythe_vm/src/fiber/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/fiber/mod.rs -------------------------------------------------------------------------------- /laythe_vm/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/lib.rs -------------------------------------------------------------------------------- /laythe_vm/src/source/files.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/source/files.rs -------------------------------------------------------------------------------- /laythe_vm/src/source/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/source/mod.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/basic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/basic.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/debug.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/debug.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/error.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/hooks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/hooks.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/impls.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/impls.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/mod.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/ops.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/ops.rs -------------------------------------------------------------------------------- /laythe_vm/src/vm/source_loader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/src/vm/source_loader.rs -------------------------------------------------------------------------------- /laythe_vm/tests/env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/tests/env.rs -------------------------------------------------------------------------------- /laythe_vm/tests/global.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/tests/global.rs -------------------------------------------------------------------------------- /laythe_vm/tests/io.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/tests/io.rs -------------------------------------------------------------------------------- /laythe_vm/tests/language.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/tests/language.rs -------------------------------------------------------------------------------- /laythe_vm/tests/math.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/tests/math.rs -------------------------------------------------------------------------------- /laythe_vm/tests/regexp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/tests/regexp.rs -------------------------------------------------------------------------------- /laythe_vm/tests/support/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_vm/tests/support/mod.rs -------------------------------------------------------------------------------- /laythe_wasm/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/Cargo.toml -------------------------------------------------------------------------------- /laythe_wasm/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/src/lib.rs -------------------------------------------------------------------------------- /laythe_wasm/src/stdio_wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/src/stdio_wasm.rs -------------------------------------------------------------------------------- /laythe_wasm/src/time_wasm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/src/time_wasm.rs -------------------------------------------------------------------------------- /laythe_wasm/web/.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/.travis.yml -------------------------------------------------------------------------------- /laythe_wasm/web/LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/LICENSE-APACHE -------------------------------------------------------------------------------- /laythe_wasm/web/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/LICENSE-MIT -------------------------------------------------------------------------------- /laythe_wasm/web/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/README.md -------------------------------------------------------------------------------- /laythe_wasm/web/bootstrap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/bootstrap.js -------------------------------------------------------------------------------- /laythe_wasm/web/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/index.html -------------------------------------------------------------------------------- /laythe_wasm/web/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/index.js -------------------------------------------------------------------------------- /laythe_wasm/web/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/init.js -------------------------------------------------------------------------------- /laythe_wasm/web/language.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/language.js -------------------------------------------------------------------------------- /laythe_wasm/web/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/package-lock.json -------------------------------------------------------------------------------- /laythe_wasm/web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/package.json -------------------------------------------------------------------------------- /laythe_wasm/web/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/laythe_wasm/web/webpack.config.js -------------------------------------------------------------------------------- /profiling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Laythe-lang/Laythe/HEAD/profiling.md -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | tab_spaces = 2 2 | match_block_trailing_comma = true --------------------------------------------------------------------------------