draf
Typescript to native LLVM code. What if Typescript was a truly compiled language?
File Explorer
Download Latest Version (.zip)- array_report.md
- CONSOLE_TEST_REPORT.md
- CONST_REASSIGNMENT_REPORT.md
- CONTROL_FLOW_IMPLEMENTATION_SUMMARY.md
- IMPLEMENTATION_SUMMARY.md
- loops_implementation.md
- MEMBER_ACCESS_IMPLEMENTATION.md
- MULTILINE_ASSIGNMENT_IMPLEMENTATION.md
- MULTILINE_ASSIGNMENT_TEST_RESULTS.md
- STRING_IMPLEMENTATION_REPORT.md
- test_runner_implementation.md
- VARIABLE_DECLARATIONS_REPORT.md
- test_runner.rs
- date.rs
- mod.rs
- number.rs
- interface.rs
- mod.rs
- resolver.rs
- type_alias.rs
- arrays.rs
- ast.rs
- codegen.rs
- error.rs
- lexer.rs
- lib.rs
- main.rs
- parser.rs
- semantic.rs
- strings.rs
- types.rs
- const_error_test.ts
- const_reassignment_error.ts
- error.ts
- advanced.ts
- advanced_global_methods_test.ts
- array_higher_order_test.ts
- array_instance_methods_test.ts
- array_length_test.ts
- array_performance_test.ts
- arrays_comprehensive_test.ts
- boolean_simple.ts
- boolean_test.ts
- chained_concat_test.ts
- clean.ts
- clean_fixed.ts
- comprehensive_member_access_test.ts
- comprehensive_no_strings.ts
- comprehensive_test.ts
- console_advanced.ts
- console_array_test.ts
- console_boolean.ts
- console_debug.ts
- console_edge_cases.ts
- console_edge_fixed.ts
- console_final_test.ts
- console_log_multiline.ts
- console_showcase.ts
- console_simple_edge.ts
- console_test.ts
- const_complete_test.ts
- const_reassignment_success.ts
- debug_array_test.ts
- debug_parsing.ts
- exact_problem_test.ts
- final_multiline_test.ts
- for_loop_basic.ts
- for_loop_break_continue.ts
- for_loop_nested.ts
- for_loop_variations.ts
- function_execution_test.ts
- function_features_test.ts
- function_negative_test.ts
- global_objects_test.ts
- hello.ts
- incremental_array_test.ts
- integration_real_world.ts
- interface_inheritance_test.ts
- just_null_coalescing.ts
- loops_combined.ts
- medium_array_test.ts
- member_access_test.ts
- method_chaining_test.ts
- minimal_chain_test.ts
- minimal_types_test.ts
- minimal_unary_test.ts
- multiline_assignment.ts
- multiline_edge_cases.ts
- narrow_down_test.ts
- nested_array_test.ts
- null_coalescing_context_test.ts
- number_boolean_concat.ts
- numeric.ts
- recursive.ts
- simple.ts
- simple_array_test.ts
- simple_function_test.ts
- simple_integration.ts
- simple_interface_check_test.ts
- simple_string_test.ts
- string_comprehensive.ts
- string_comprehensive_no_null.ts
- string_concat_test.ts
- string_literals_basic.ts
- string_working_features.ts
- template_literal_simple.ts
- ternary_concat_test.ts
- unary_test.ts
- user_code_validation.ts
- user_example.ts
- validation_existing_features.ts
- variable_declarations.ts
- variable_types_final.ts
- while_loop_basic.ts
- while_loop_break_continue.ts
- while_loop_console.ts
- while_loop_nested.ts
- while_loop_simple.ts
- whitespace_handling.ts
- working.ts
- .gitignore
- Cargo.lock
- Cargo.toml
- Makefile
- README.md
# Installation Guide
git clone https://github.com/luizfonseca/draf
Downloads the entire project code from GitHub to your computer.
cd draf
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommendedcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Downloads and runs the official install script in one line β this handles the full setup automatically.
Pulled directly from this repo's README.
3. Rust
Medium- Git Needed to download the project code from GitHub.
- Rust (rustup) Installing via rustup also installs cargo.
cargo build --release
Compiles the Rust project.
cargo test
Type this command into your terminal and run it.
cargo run -- input.ts
Builds and then immediately runs the program.
RUST_LOG=debug cargo run -- input.ts
Builds and then immediately runs the program.
cargo bench
Type this command into your terminal and run it.
Pulled directly from this repo's README.
4. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make bin testfile=./tests/<fileName>.ts
Compiles the code based on the generated build configuration to produce an executable.
Pulled directly from this repo's README.
