├── .dockerignore ├── .github ├── bors.toml └── workflows │ ├── build_test_fmt.yml │ ├── clippy.yml │ ├── docker.yml │ └── release.yml ├── .gitignore ├── ARCHITECTURE.md ├── CONTRIBUTING.md ├── Cargo.lock ├── Cargo.toml ├── DESIGN.md ├── Dockerfile ├── LICENSE ├── README.md ├── ROADMAP.md ├── SYNTAX.md ├── ast-sanitizer ├── Cargo.toml └── src │ └── lib.rs ├── ast ├── Cargo.toml └── src │ └── lib.rs ├── builtins ├── Cargo.toml └── src │ ├── builder.rs │ └── lib.rs ├── code ├── splitter │ ├── in │ ├── split_easy.jk │ ├── split_hard.jk │ └── splitter.jk ├── suckit_speed_regression │ └── speed_regression.jk └── yes │ └── yes.jk ├── debug-fir ├── Cargo.toml └── src │ └── lib.rs ├── dedup ├── Cargo.toml └── src │ └── lib.rs ├── error ├── Cargo.toml └── src │ └── lib.rs ├── examples ├── hello.rs └── simple-repl.rs ├── fir ├── Cargo.toml └── src │ ├── checks.rs │ ├── iter.rs │ ├── iter │ ├── mapper.rs │ ├── multi_mapper.rs │ └── traverse.rs │ └── lib.rs ├── fire ├── Cargo.toml └── src │ ├── instance.rs │ ├── lib.rs │ └── outside.rs ├── flatten ├── Cargo.toml └── src │ └── lib.rs ├── include_code ├── Cargo.toml └── src │ └── lib.rs ├── install.jk ├── install.sh ├── interpreter ├── args.rs ├── jinko.rs ├── repl.rs └── repl │ └── prompt.rs ├── location ├── Cargo.toml └── src │ └── lib.rs ├── loop_desugar ├── Cargo.toml └── src │ └── lib.rs ├── misc ├── logo.png ├── logo.xcf ├── logo_small.png ├── logo_square.png ├── logo_square.xcf └── make_release.sh ├── name_resolve ├── Cargo.toml └── src │ ├── declarator.rs │ ├── lib.rs │ ├── resolver.rs │ └── scoper.rs ├── recursive_typecheck ├── Cargo.toml └── src │ └── lib.rs ├── src ├── builtins.rs ├── context.rs ├── context │ └── scope_map.rs ├── debug.rs ├── error.rs ├── ffi.rs ├── generics.rs ├── indent.rs ├── instance.rs ├── instruction.rs ├── instruction │ ├── binary_op.rs │ ├── block.rs │ ├── dec_arg.rs │ ├── extra_content.rs │ ├── field_access.rs │ ├── function_call.rs │ ├── function_declaration.rs │ ├── if_else.rs │ ├── incl.rs │ ├── jk_inst.rs │ ├── jk_return.rs │ ├── loop_block.rs │ ├── method_call.rs │ ├── operator.rs │ ├── rename.rs │ ├── type_declaration.rs │ ├── type_instantiation.rs │ ├── var.rs │ ├── var_assignment.rs │ └── var_or_empty_type.rs ├── io_trait.rs ├── lib.rs ├── location.rs ├── parser.rs ├── parser │ ├── constant_construct.rs │ ├── constructs.rs │ ├── grammar │ └── tokens.rs ├── typechecker.rs ├── typechecker │ └── type_id.rs ├── utils.rs ├── value.rs └── value │ └── jk_constant.rs ├── stdlib ├── args.jk ├── bool.jk ├── ffi.jk ├── fmt.jk ├── int.jk ├── intrinsics.jk ├── iter.jk ├── lib.jk ├── maybe.jk ├── pair.jk ├── range.jk ├── string.jk └── vec.jk ├── symbol ├── Cargo.toml └── src │ └── lib.rs ├── tests ├── fixtures │ ├── clib │ │ ├── Makefile │ │ ├── clib.jk │ │ ├── lib.c │ │ └── lib.so │ └── span_test │ │ └── code.jk ├── ft │ ├── arithmetic │ │ ├── addition.jk │ │ ├── arithmetic.yml │ │ ├── false.jk │ │ ├── float.jk │ │ ├── float_simple.jk │ │ ├── multiple.jk │ │ ├── multiple_long.jk │ │ ├── multiple_stmts.jk │ │ ├── simple.jk │ │ └── true.jk │ ├── booleans │ │ ├── binop_as_bool.jk │ │ ├── booleans.yml │ │ ├── return_0_arg.jk │ │ ├── return_0_if_false.jk │ │ └── return_0_if_true.jk │ ├── custom_types │ │ ├── generics.jk │ │ └── simple.jk │ ├── errors │ │ ├── errors.yml │ │ └── stress.jk │ ├── func_dec │ │ ├── func_dec.yml │ │ ├── with_if_else.jk │ │ └── with_two_func_calls.jk │ ├── functions │ │ ├── functions.yml │ │ └── simple_function.jk │ ├── generics │ │ ├── generic_fns.jk │ │ ├── generics.yml │ │ ├── invalid_ducktyping.jk │ │ ├── invalid_missing_type.jk │ │ ├── invalid_return_type.jk │ │ ├── invalid_typechecking.jk │ │ ├── maybe_simple.jk │ │ ├── undeclared_arg_generic.jk │ │ ├── undeclared_return_generic.jk │ │ ├── valid_call_generic_twice.jk │ │ ├── valid_ducktyping.jk │ │ ├── valid_field_access.jk │ │ ├── valid_id.jk │ │ ├── valid_if_else.jk │ │ ├── valid_inner_fn.jk │ │ ├── valid_inner_type_when_resolving.jk │ │ ├── valid_method_call.jk │ │ ├── valid_multiple_ducktyping.jk │ │ ├── valid_nested_type.jk │ │ ├── valid_return_type.jk │ │ ├── valid_simple_type.jk │ │ └── valid_type_when_resolving.jk │ ├── incl │ │ ├── incl.yml │ │ ├── incl_1.jk │ │ ├── incl_2.jk │ │ ├── incl_comments.jk │ │ ├── incl_cyclic_includer.jk │ │ ├── incl_dir_includer.jk │ │ ├── incl_dir_subfile_includer.jk │ │ ├── incl_func.jk │ │ ├── incl_func_includer.jk │ │ ├── incl_simple.jk │ │ ├── incl_simple_includer.jk │ │ ├── libdir │ │ │ └── lib.jk │ │ └── libsubdir │ │ │ ├── lib.jk │ │ │ └── lib_subfile.jk │ ├── invalid │ │ ├── functions │ │ │ ├── invalid_functions.yml │ │ │ └── redeclare_ext_func.jk │ │ ├── incl │ │ │ ├── both.jk │ │ │ ├── both │ │ │ │ └── lib.jk │ │ │ ├── incl_both_includer.jk │ │ │ ├── incl_invalid.yml │ │ │ └── incl_nothing.jk │ │ └── types │ │ │ ├── inexistant_type.jk │ │ │ ├── instantiate_primitive.jk │ │ │ ├── invalid_types.yml │ │ │ └── types_experiments.jk │ ├── loops │ │ ├── for_loop.jk │ │ ├── for_loop_one.jk │ │ ├── for_loop_zero.jk │ │ └── loops.yml │ ├── method │ │ ├── block.jk │ │ ├── chaining.jk │ │ ├── method.yml │ │ ├── method_call_in_binop.jk │ │ └── sum.jk │ ├── namespaces │ │ ├── lib │ │ │ ├── lib.jk │ │ │ └── sub_lib.jk │ │ ├── namespaces.yml │ │ ├── nspace_alias_includer.jk │ │ ├── nspace_method_call.jk │ │ └── nspace_no_alias_includer.jk │ ├── options │ │ ├── display_str.jk │ │ ├── options.yml │ │ └── return_2.jk │ ├── regression │ │ ├── 187.jk │ │ ├── 187_fn.jk │ │ ├── 276.jk │ │ ├── 284.jk │ │ ├── 306.jk │ │ ├── 320.jk │ │ ├── 462.jk │ │ ├── 464_arg_ty.jk │ │ ├── 464_return_ty.jk │ │ ├── 468.jk │ │ ├── regression.yml │ │ └── string_double_free.jk │ ├── stdlib │ │ ├── args.jk │ │ ├── exit.jk │ │ ├── ffi.jk │ │ ├── fmt.jk │ │ ├── maybe.jk │ │ ├── range │ │ │ ├── advance.jk │ │ │ └── start.jk │ │ ├── shell.jk │ │ ├── stdlib.yml │ │ └── string │ │ │ ├── concat.jk │ │ │ ├── equals.jk │ │ │ ├── is_empty.jk │ │ │ └── len.jk │ ├── type_checking │ │ ├── invalid │ │ │ ├── binary_op.jk │ │ │ ├── block.jk │ │ │ ├── empty_types.jk │ │ │ ├── field_access.jk │ │ │ ├── fmt.jk │ │ │ ├── func.jk │ │ │ ├── if_else.jk │ │ │ ├── return_in_if_else.jk │ │ │ ├── test_f.jk │ │ │ └── var.jk │ │ ├── typecheck.yml │ │ └── valid │ │ │ ├── binary_op.jk │ │ │ ├── block.jk │ │ │ ├── empty_types.jk │ │ │ ├── field_access.jk │ │ │ ├── func.jk │ │ │ ├── function_complex_type.jk │ │ │ ├── function_type_mapping.jk │ │ │ ├── if_else.jk │ │ │ ├── return.jk │ │ │ ├── return_in_if_else.jk │ │ │ └── variables.jk │ └── unit_testing │ │ ├── unit_testing.yml │ │ └── valid │ │ ├── multi_tests.jk │ │ ├── no_tests.jk │ │ └── one_test.jk ├── func_tests.jk ├── func_tests.sh └── jink_insts │ └── dump │ ├── simple.jk │ ├── with_fn.jk │ └── with_var.jk ├── tools └── dedup_bench │ ├── Cargo.toml │ └── src │ └── main.rs ├── typecheck ├── Cargo.toml └── src │ ├── actual.rs │ ├── checker.rs │ ├── collectors.rs │ ├── collectors │ ├── constants.rs │ └── primitives.rs │ ├── lib.rs │ ├── typemap.rs │ ├── typer.rs │ └── widen.rs ├── xparser ├── Cargo.toml └── src │ ├── constructs.rs │ ├── lib.rs │ └── tokens.rs └── xrepl ├── Cargo.toml └── src └── lib.rs /.dockerignore: -------------------------------------------------------------------------------- 1 | Dockerfile 2 | target 3 | -------------------------------------------------------------------------------- /.github/bors.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/.github/bors.toml -------------------------------------------------------------------------------- /.github/workflows/build_test_fmt.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/.github/workflows/build_test_fmt.yml -------------------------------------------------------------------------------- /.github/workflows/clippy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/.github/workflows/clippy.yml -------------------------------------------------------------------------------- /.github/workflows/docker.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/.github/workflows/docker.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | tags 3 | *.swp 4 | -------------------------------------------------------------------------------- /ARCHITECTURE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/ARCHITECTURE.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/Cargo.toml -------------------------------------------------------------------------------- /DESIGN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/DESIGN.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/README.md -------------------------------------------------------------------------------- /ROADMAP.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/ROADMAP.md -------------------------------------------------------------------------------- /SYNTAX.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/SYNTAX.md -------------------------------------------------------------------------------- /ast-sanitizer/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/ast-sanitizer/Cargo.toml -------------------------------------------------------------------------------- /ast-sanitizer/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/ast-sanitizer/src/lib.rs -------------------------------------------------------------------------------- /ast/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/ast/Cargo.toml -------------------------------------------------------------------------------- /ast/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/ast/src/lib.rs -------------------------------------------------------------------------------- /builtins/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/builtins/Cargo.toml -------------------------------------------------------------------------------- /builtins/src/builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/builtins/src/builder.rs -------------------------------------------------------------------------------- /builtins/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/builtins/src/lib.rs -------------------------------------------------------------------------------- /code/splitter/in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/code/splitter/in -------------------------------------------------------------------------------- /code/splitter/split_easy.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/code/splitter/split_easy.jk -------------------------------------------------------------------------------- /code/splitter/split_hard.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/code/splitter/split_hard.jk -------------------------------------------------------------------------------- /code/splitter/splitter.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/code/splitter/splitter.jk -------------------------------------------------------------------------------- /code/suckit_speed_regression/speed_regression.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/code/suckit_speed_regression/speed_regression.jk -------------------------------------------------------------------------------- /code/yes/yes.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/code/yes/yes.jk -------------------------------------------------------------------------------- /debug-fir/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/debug-fir/Cargo.toml -------------------------------------------------------------------------------- /debug-fir/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/debug-fir/src/lib.rs -------------------------------------------------------------------------------- /dedup/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/dedup/Cargo.toml -------------------------------------------------------------------------------- /dedup/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/dedup/src/lib.rs -------------------------------------------------------------------------------- /error/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/error/Cargo.toml -------------------------------------------------------------------------------- /error/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/error/src/lib.rs -------------------------------------------------------------------------------- /examples/hello.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/examples/hello.rs -------------------------------------------------------------------------------- /examples/simple-repl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/examples/simple-repl.rs -------------------------------------------------------------------------------- /fir/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fir/Cargo.toml -------------------------------------------------------------------------------- /fir/src/checks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fir/src/checks.rs -------------------------------------------------------------------------------- /fir/src/iter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fir/src/iter.rs -------------------------------------------------------------------------------- /fir/src/iter/mapper.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fir/src/iter/mapper.rs -------------------------------------------------------------------------------- /fir/src/iter/multi_mapper.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fir/src/iter/multi_mapper.rs -------------------------------------------------------------------------------- /fir/src/iter/traverse.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fir/src/iter/traverse.rs -------------------------------------------------------------------------------- /fir/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fir/src/lib.rs -------------------------------------------------------------------------------- /fire/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fire/Cargo.toml -------------------------------------------------------------------------------- /fire/src/instance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fire/src/instance.rs -------------------------------------------------------------------------------- /fire/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fire/src/lib.rs -------------------------------------------------------------------------------- /fire/src/outside.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/fire/src/outside.rs -------------------------------------------------------------------------------- /flatten/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/flatten/Cargo.toml -------------------------------------------------------------------------------- /flatten/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/flatten/src/lib.rs -------------------------------------------------------------------------------- /include_code/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/include_code/Cargo.toml -------------------------------------------------------------------------------- /include_code/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/include_code/src/lib.rs -------------------------------------------------------------------------------- /install.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/install.jk -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/install.sh -------------------------------------------------------------------------------- /interpreter/args.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/interpreter/args.rs -------------------------------------------------------------------------------- /interpreter/jinko.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/interpreter/jinko.rs -------------------------------------------------------------------------------- /interpreter/repl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/interpreter/repl.rs -------------------------------------------------------------------------------- /interpreter/repl/prompt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/interpreter/repl/prompt.rs -------------------------------------------------------------------------------- /location/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/location/Cargo.toml -------------------------------------------------------------------------------- /location/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/location/src/lib.rs -------------------------------------------------------------------------------- /loop_desugar/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/loop_desugar/Cargo.toml -------------------------------------------------------------------------------- /loop_desugar/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/loop_desugar/src/lib.rs -------------------------------------------------------------------------------- /misc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/misc/logo.png -------------------------------------------------------------------------------- /misc/logo.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/misc/logo.xcf -------------------------------------------------------------------------------- /misc/logo_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/misc/logo_small.png -------------------------------------------------------------------------------- /misc/logo_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/misc/logo_square.png -------------------------------------------------------------------------------- /misc/logo_square.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/misc/logo_square.xcf -------------------------------------------------------------------------------- /misc/make_release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/misc/make_release.sh -------------------------------------------------------------------------------- /name_resolve/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/name_resolve/Cargo.toml -------------------------------------------------------------------------------- /name_resolve/src/declarator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/name_resolve/src/declarator.rs -------------------------------------------------------------------------------- /name_resolve/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/name_resolve/src/lib.rs -------------------------------------------------------------------------------- /name_resolve/src/resolver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/name_resolve/src/resolver.rs -------------------------------------------------------------------------------- /name_resolve/src/scoper.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/name_resolve/src/scoper.rs -------------------------------------------------------------------------------- /recursive_typecheck/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/recursive_typecheck/Cargo.toml -------------------------------------------------------------------------------- /recursive_typecheck/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/recursive_typecheck/src/lib.rs -------------------------------------------------------------------------------- /src/builtins.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/builtins.rs -------------------------------------------------------------------------------- /src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/context.rs -------------------------------------------------------------------------------- /src/context/scope_map.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/context/scope_map.rs -------------------------------------------------------------------------------- /src/debug.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/debug.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/ffi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/ffi.rs -------------------------------------------------------------------------------- /src/generics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/generics.rs -------------------------------------------------------------------------------- /src/indent.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/indent.rs -------------------------------------------------------------------------------- /src/instance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instance.rs -------------------------------------------------------------------------------- /src/instruction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction.rs -------------------------------------------------------------------------------- /src/instruction/binary_op.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/binary_op.rs -------------------------------------------------------------------------------- /src/instruction/block.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/block.rs -------------------------------------------------------------------------------- /src/instruction/dec_arg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/dec_arg.rs -------------------------------------------------------------------------------- /src/instruction/extra_content.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/extra_content.rs -------------------------------------------------------------------------------- /src/instruction/field_access.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/field_access.rs -------------------------------------------------------------------------------- /src/instruction/function_call.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/function_call.rs -------------------------------------------------------------------------------- /src/instruction/function_declaration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/function_declaration.rs -------------------------------------------------------------------------------- /src/instruction/if_else.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/if_else.rs -------------------------------------------------------------------------------- /src/instruction/incl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/incl.rs -------------------------------------------------------------------------------- /src/instruction/jk_inst.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/jk_inst.rs -------------------------------------------------------------------------------- /src/instruction/jk_return.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/jk_return.rs -------------------------------------------------------------------------------- /src/instruction/loop_block.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/loop_block.rs -------------------------------------------------------------------------------- /src/instruction/method_call.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/method_call.rs -------------------------------------------------------------------------------- /src/instruction/operator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/operator.rs -------------------------------------------------------------------------------- /src/instruction/rename.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/rename.rs -------------------------------------------------------------------------------- /src/instruction/type_declaration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/type_declaration.rs -------------------------------------------------------------------------------- /src/instruction/type_instantiation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/type_instantiation.rs -------------------------------------------------------------------------------- /src/instruction/var.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/var.rs -------------------------------------------------------------------------------- /src/instruction/var_assignment.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/var_assignment.rs -------------------------------------------------------------------------------- /src/instruction/var_or_empty_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/instruction/var_or_empty_type.rs -------------------------------------------------------------------------------- /src/io_trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/io_trait.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/location.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/parser.rs -------------------------------------------------------------------------------- /src/parser/constant_construct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/parser/constant_construct.rs -------------------------------------------------------------------------------- /src/parser/constructs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/parser/constructs.rs -------------------------------------------------------------------------------- /src/parser/grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/parser/grammar -------------------------------------------------------------------------------- /src/parser/tokens.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/parser/tokens.rs -------------------------------------------------------------------------------- /src/typechecker.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/typechecker.rs -------------------------------------------------------------------------------- /src/typechecker/type_id.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/typechecker/type_id.rs -------------------------------------------------------------------------------- /src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/utils.rs -------------------------------------------------------------------------------- /src/value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/value.rs -------------------------------------------------------------------------------- /src/value/jk_constant.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/src/value/jk_constant.rs -------------------------------------------------------------------------------- /stdlib/args.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/args.jk -------------------------------------------------------------------------------- /stdlib/bool.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/bool.jk -------------------------------------------------------------------------------- /stdlib/ffi.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/ffi.jk -------------------------------------------------------------------------------- /stdlib/fmt.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/fmt.jk -------------------------------------------------------------------------------- /stdlib/int.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/int.jk -------------------------------------------------------------------------------- /stdlib/intrinsics.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/intrinsics.jk -------------------------------------------------------------------------------- /stdlib/iter.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/iter.jk -------------------------------------------------------------------------------- /stdlib/lib.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/lib.jk -------------------------------------------------------------------------------- /stdlib/maybe.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/maybe.jk -------------------------------------------------------------------------------- /stdlib/pair.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/pair.jk -------------------------------------------------------------------------------- /stdlib/range.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/range.jk -------------------------------------------------------------------------------- /stdlib/string.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/string.jk -------------------------------------------------------------------------------- /stdlib/vec.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/stdlib/vec.jk -------------------------------------------------------------------------------- /symbol/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/symbol/Cargo.toml -------------------------------------------------------------------------------- /symbol/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/symbol/src/lib.rs -------------------------------------------------------------------------------- /tests/fixtures/clib/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/fixtures/clib/Makefile -------------------------------------------------------------------------------- /tests/fixtures/clib/clib.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/fixtures/clib/clib.jk -------------------------------------------------------------------------------- /tests/fixtures/clib/lib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/fixtures/clib/lib.c -------------------------------------------------------------------------------- /tests/fixtures/clib/lib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/fixtures/clib/lib.so -------------------------------------------------------------------------------- /tests/fixtures/span_test/code.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/fixtures/span_test/code.jk -------------------------------------------------------------------------------- /tests/ft/arithmetic/addition.jk: -------------------------------------------------------------------------------- 1 | 1 + 4 // 5 2 | -------------------------------------------------------------------------------- /tests/ft/arithmetic/arithmetic.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/arithmetic/arithmetic.yml -------------------------------------------------------------------------------- /tests/ft/arithmetic/false.jk: -------------------------------------------------------------------------------- 1 | false 2 | -------------------------------------------------------------------------------- /tests/ft/arithmetic/float.jk: -------------------------------------------------------------------------------- 1 | 5.9 + 3.2 // Returns 9 2 | -------------------------------------------------------------------------------- /tests/ft/arithmetic/float_simple.jk: -------------------------------------------------------------------------------- 1 | 5.9 + 3.2 // Return 9 2 | -------------------------------------------------------------------------------- /tests/ft/arithmetic/multiple.jk: -------------------------------------------------------------------------------- 1 | 1 + 9; 2 | 3 | 12 // 12 4 | -------------------------------------------------------------------------------- /tests/ft/arithmetic/multiple_long.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/arithmetic/multiple_long.jk -------------------------------------------------------------------------------- /tests/ft/arithmetic/multiple_stmts.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/arithmetic/multiple_stmts.jk -------------------------------------------------------------------------------- /tests/ft/arithmetic/simple.jk: -------------------------------------------------------------------------------- 1 | 9 // return 9 2 | -------------------------------------------------------------------------------- /tests/ft/arithmetic/true.jk: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tests/ft/booleans/binop_as_bool.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/booleans/binop_as_bool.jk -------------------------------------------------------------------------------- /tests/ft/booleans/booleans.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/booleans/booleans.yml -------------------------------------------------------------------------------- /tests/ft/booleans/return_0_arg.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/booleans/return_0_arg.jk -------------------------------------------------------------------------------- /tests/ft/booleans/return_0_if_false.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/booleans/return_0_if_false.jk -------------------------------------------------------------------------------- /tests/ft/booleans/return_0_if_true.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/booleans/return_0_if_true.jk -------------------------------------------------------------------------------- /tests/ft/custom_types/generics.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/custom_types/generics.jk -------------------------------------------------------------------------------- /tests/ft/custom_types/simple.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/custom_types/simple.jk -------------------------------------------------------------------------------- /tests/ft/errors/errors.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/errors/errors.yml -------------------------------------------------------------------------------- /tests/ft/errors/stress.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/errors/stress.jk -------------------------------------------------------------------------------- /tests/ft/func_dec/func_dec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/func_dec/func_dec.yml -------------------------------------------------------------------------------- /tests/ft/func_dec/with_if_else.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/func_dec/with_if_else.jk -------------------------------------------------------------------------------- /tests/ft/func_dec/with_two_func_calls.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/func_dec/with_two_func_calls.jk -------------------------------------------------------------------------------- /tests/ft/functions/functions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/functions/functions.yml -------------------------------------------------------------------------------- /tests/ft/functions/simple_function.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/functions/simple_function.jk -------------------------------------------------------------------------------- /tests/ft/generics/generic_fns.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/generic_fns.jk -------------------------------------------------------------------------------- /tests/ft/generics/generics.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/generics.yml -------------------------------------------------------------------------------- /tests/ft/generics/invalid_ducktyping.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/invalid_ducktyping.jk -------------------------------------------------------------------------------- /tests/ft/generics/invalid_missing_type.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/invalid_missing_type.jk -------------------------------------------------------------------------------- /tests/ft/generics/invalid_return_type.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/invalid_return_type.jk -------------------------------------------------------------------------------- /tests/ft/generics/invalid_typechecking.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/invalid_typechecking.jk -------------------------------------------------------------------------------- /tests/ft/generics/maybe_simple.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/maybe_simple.jk -------------------------------------------------------------------------------- /tests/ft/generics/undeclared_arg_generic.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/undeclared_arg_generic.jk -------------------------------------------------------------------------------- /tests/ft/generics/undeclared_return_generic.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/undeclared_return_generic.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_call_generic_twice.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_call_generic_twice.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_ducktyping.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_ducktyping.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_field_access.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_field_access.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_id.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_id.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_if_else.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_if_else.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_inner_fn.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_inner_fn.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_inner_type_when_resolving.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_inner_type_when_resolving.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_method_call.jk: -------------------------------------------------------------------------------- 1 | incl generic_fns 2 | 3 | true.id[bool]() 4 | -------------------------------------------------------------------------------- /tests/ft/generics/valid_multiple_ducktyping.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_multiple_ducktyping.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_nested_type.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_nested_type.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_return_type.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_return_type.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_simple_type.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_simple_type.jk -------------------------------------------------------------------------------- /tests/ft/generics/valid_type_when_resolving.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/generics/valid_type_when_resolving.jk -------------------------------------------------------------------------------- /tests/ft/incl/incl.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/incl/incl.yml -------------------------------------------------------------------------------- /tests/ft/incl/incl_1.jk: -------------------------------------------------------------------------------- 1 | incl incl_2 2 | -------------------------------------------------------------------------------- /tests/ft/incl/incl_2.jk: -------------------------------------------------------------------------------- 1 | incl incl_1 2 | -------------------------------------------------------------------------------- /tests/ft/incl/incl_comments.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/incl/incl_comments.jk -------------------------------------------------------------------------------- /tests/ft/incl/incl_cyclic_includer.jk: -------------------------------------------------------------------------------- 1 | incl incl_1 2 | -------------------------------------------------------------------------------- /tests/ft/incl/incl_dir_includer.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/incl/incl_dir_includer.jk -------------------------------------------------------------------------------- /tests/ft/incl/incl_dir_subfile_includer.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/incl/incl_dir_subfile_includer.jk -------------------------------------------------------------------------------- /tests/ft/incl/incl_func.jk: -------------------------------------------------------------------------------- 1 | func one() -> int { 1 } 2 | -------------------------------------------------------------------------------- /tests/ft/incl/incl_func_includer.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/incl/incl_func_includer.jk -------------------------------------------------------------------------------- /tests/ft/incl/incl_simple.jk: -------------------------------------------------------------------------------- 1 | a = 12; 2 | -------------------------------------------------------------------------------- /tests/ft/incl/incl_simple_includer.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/incl/incl_simple_includer.jk -------------------------------------------------------------------------------- /tests/ft/incl/libdir/lib.jk: -------------------------------------------------------------------------------- 1 | a = 15; 2 | -------------------------------------------------------------------------------- /tests/ft/incl/libsubdir/lib.jk: -------------------------------------------------------------------------------- 1 | incl lib_subfile 2 | -------------------------------------------------------------------------------- /tests/ft/incl/libsubdir/lib_subfile.jk: -------------------------------------------------------------------------------- 1 | b = 59; 2 | -------------------------------------------------------------------------------- /tests/ft/invalid/functions/invalid_functions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/invalid/functions/invalid_functions.yml -------------------------------------------------------------------------------- /tests/ft/invalid/functions/redeclare_ext_func.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/invalid/functions/redeclare_ext_func.jk -------------------------------------------------------------------------------- /tests/ft/invalid/incl/both.jk: -------------------------------------------------------------------------------- 1 | both = true; 2 | -------------------------------------------------------------------------------- /tests/ft/invalid/incl/both/lib.jk: -------------------------------------------------------------------------------- 1 | both = true; 2 | -------------------------------------------------------------------------------- /tests/ft/invalid/incl/incl_both_includer.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/invalid/incl/incl_both_includer.jk -------------------------------------------------------------------------------- /tests/ft/invalid/incl/incl_invalid.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/invalid/incl/incl_invalid.yml -------------------------------------------------------------------------------- /tests/ft/invalid/incl/incl_nothing.jk: -------------------------------------------------------------------------------- 1 | incl non_existent 2 | -------------------------------------------------------------------------------- /tests/ft/invalid/types/inexistant_type.jk: -------------------------------------------------------------------------------- 1 | t = CustomType { 16 }; 2 | -------------------------------------------------------------------------------- /tests/ft/invalid/types/instantiate_primitive.jk: -------------------------------------------------------------------------------- 1 | i = int { } 2 | -------------------------------------------------------------------------------- /tests/ft/invalid/types/invalid_types.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/invalid/types/invalid_types.yml -------------------------------------------------------------------------------- /tests/ft/invalid/types/types_experiments.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/invalid/types/types_experiments.jk -------------------------------------------------------------------------------- /tests/ft/loops/for_loop.jk: -------------------------------------------------------------------------------- 1 | for i in 0.range(3) { 2 | "jk".print() 3 | } 4 | -------------------------------------------------------------------------------- /tests/ft/loops/for_loop_one.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/loops/for_loop_one.jk -------------------------------------------------------------------------------- /tests/ft/loops/for_loop_zero.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/loops/for_loop_zero.jk -------------------------------------------------------------------------------- /tests/ft/loops/loops.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/loops/loops.yml -------------------------------------------------------------------------------- /tests/ft/method/block.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/method/block.jk -------------------------------------------------------------------------------- /tests/ft/method/chaining.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/method/chaining.jk -------------------------------------------------------------------------------- /tests/ft/method/method.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/method/method.yml -------------------------------------------------------------------------------- /tests/ft/method/method_call_in_binop.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/method/method_call_in_binop.jk -------------------------------------------------------------------------------- /tests/ft/method/sum.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/method/sum.jk -------------------------------------------------------------------------------- /tests/ft/namespaces/lib/lib.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/namespaces/lib/lib.jk -------------------------------------------------------------------------------- /tests/ft/namespaces/lib/sub_lib.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/namespaces/lib/sub_lib.jk -------------------------------------------------------------------------------- /tests/ft/namespaces/namespaces.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/namespaces/namespaces.yml -------------------------------------------------------------------------------- /tests/ft/namespaces/nspace_alias_includer.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/namespaces/nspace_alias_includer.jk -------------------------------------------------------------------------------- /tests/ft/namespaces/nspace_method_call.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/namespaces/nspace_method_call.jk -------------------------------------------------------------------------------- /tests/ft/namespaces/nspace_no_alias_includer.jk: -------------------------------------------------------------------------------- 1 | incl lib 2 | 3 | first // return 15 4 | -------------------------------------------------------------------------------- /tests/ft/options/display_str.jk: -------------------------------------------------------------------------------- 1 | println("jinko") 2 | -------------------------------------------------------------------------------- /tests/ft/options/options.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/options/options.yml -------------------------------------------------------------------------------- /tests/ft/options/return_2.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/options/return_2.jk -------------------------------------------------------------------------------- /tests/ft/regression/187.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/187.jk -------------------------------------------------------------------------------- /tests/ft/regression/187_fn.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/187_fn.jk -------------------------------------------------------------------------------- /tests/ft/regression/276.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/276.jk -------------------------------------------------------------------------------- /tests/ft/regression/284.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/284.jk -------------------------------------------------------------------------------- /tests/ft/regression/306.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/306.jk -------------------------------------------------------------------------------- /tests/ft/regression/320.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/320.jk -------------------------------------------------------------------------------- /tests/ft/regression/462.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/462.jk -------------------------------------------------------------------------------- /tests/ft/regression/464_arg_ty.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/464_arg_ty.jk -------------------------------------------------------------------------------- /tests/ft/regression/464_return_ty.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/464_return_ty.jk -------------------------------------------------------------------------------- /tests/ft/regression/468.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/468.jk -------------------------------------------------------------------------------- /tests/ft/regression/regression.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/regression.yml -------------------------------------------------------------------------------- /tests/ft/regression/string_double_free.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/regression/string_double_free.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/args.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/args.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/exit.jk: -------------------------------------------------------------------------------- 1 | exit(42) 2 | -------------------------------------------------------------------------------- /tests/ft/stdlib/ffi.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/ffi.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/fmt.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/fmt.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/maybe.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/maybe.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/range/advance.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/range/advance.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/range/start.jk: -------------------------------------------------------------------------------- 1 | r = range(6, 10); 2 | 3 | r.current() // should return 6 4 | -------------------------------------------------------------------------------- /tests/ft/stdlib/shell.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/shell.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/stdlib.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/stdlib.yml -------------------------------------------------------------------------------- /tests/ft/stdlib/string/concat.jk: -------------------------------------------------------------------------------- 1 | s = "jinko".concat(".jk") 2 | s.print() 3 | -------------------------------------------------------------------------------- /tests/ft/stdlib/string/equals.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/stdlib/string/equals.jk -------------------------------------------------------------------------------- /tests/ft/stdlib/string/is_empty.jk: -------------------------------------------------------------------------------- 1 | "jinko".is_empty() // returns false 2 | -------------------------------------------------------------------------------- /tests/ft/stdlib/string/len.jk: -------------------------------------------------------------------------------- 1 | "hey".len() 2 | -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/binary_op.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/binary_op.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/block.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/block.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/empty_types.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/empty_types.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/field_access.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/field_access.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/fmt.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/fmt.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/func.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/func.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/if_else.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/if_else.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/return_in_if_else.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/return_in_if_else.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/test_f.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/test_f.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/invalid/var.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/invalid/var.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/typecheck.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/typecheck.yml -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/binary_op.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/binary_op.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/block.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/block.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/empty_types.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/empty_types.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/field_access.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/field_access.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/func.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/func.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/function_complex_type.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/function_complex_type.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/function_type_mapping.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/function_type_mapping.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/if_else.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/if_else.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/return.jk: -------------------------------------------------------------------------------- 1 | return 0 2 | -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/return_in_if_else.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/return_in_if_else.jk -------------------------------------------------------------------------------- /tests/ft/type_checking/valid/variables.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/type_checking/valid/variables.jk -------------------------------------------------------------------------------- /tests/ft/unit_testing/unit_testing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/unit_testing/unit_testing.yml -------------------------------------------------------------------------------- /tests/ft/unit_testing/valid/multi_tests.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/unit_testing/valid/multi_tests.jk -------------------------------------------------------------------------------- /tests/ft/unit_testing/valid/no_tests.jk: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/ft/unit_testing/valid/one_test.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/ft/unit_testing/valid/one_test.jk -------------------------------------------------------------------------------- /tests/func_tests.jk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/func_tests.jk -------------------------------------------------------------------------------- /tests/func_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tests/func_tests.sh -------------------------------------------------------------------------------- /tests/jink_insts/dump/simple.jk: -------------------------------------------------------------------------------- 1 | @dump(); 2 | -------------------------------------------------------------------------------- /tests/jink_insts/dump/with_fn.jk: -------------------------------------------------------------------------------- 1 | func f() {} 2 | 3 | @dump(); 4 | -------------------------------------------------------------------------------- /tests/jink_insts/dump/with_var.jk: -------------------------------------------------------------------------------- 1 | x = 12; 2 | 3 | @dump(); 4 | -------------------------------------------------------------------------------- /tools/dedup_bench/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tools/dedup_bench/Cargo.toml -------------------------------------------------------------------------------- /tools/dedup_bench/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/tools/dedup_bench/src/main.rs -------------------------------------------------------------------------------- /typecheck/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/Cargo.toml -------------------------------------------------------------------------------- /typecheck/src/actual.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/actual.rs -------------------------------------------------------------------------------- /typecheck/src/checker.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/checker.rs -------------------------------------------------------------------------------- /typecheck/src/collectors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/collectors.rs -------------------------------------------------------------------------------- /typecheck/src/collectors/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/collectors/constants.rs -------------------------------------------------------------------------------- /typecheck/src/collectors/primitives.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/collectors/primitives.rs -------------------------------------------------------------------------------- /typecheck/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/lib.rs -------------------------------------------------------------------------------- /typecheck/src/typemap.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/typemap.rs -------------------------------------------------------------------------------- /typecheck/src/typer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/typer.rs -------------------------------------------------------------------------------- /typecheck/src/widen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/typecheck/src/widen.rs -------------------------------------------------------------------------------- /xparser/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/xparser/Cargo.toml -------------------------------------------------------------------------------- /xparser/src/constructs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/xparser/src/constructs.rs -------------------------------------------------------------------------------- /xparser/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/xparser/src/lib.rs -------------------------------------------------------------------------------- /xparser/src/tokens.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/xparser/src/tokens.rs -------------------------------------------------------------------------------- /xrepl/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/xrepl/Cargo.toml -------------------------------------------------------------------------------- /xrepl/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinko-core/jinko/HEAD/xrepl/src/lib.rs --------------------------------------------------------------------------------