Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silverbirder/rustscript
A Toy Javascript Compiler that parses javascript and compiles JIT with LLVM(Rust:inkwell).
https://github.com/silverbirder/rustscript
compiler inkwell javascript llvm rust toy
Last synced: about 2 months ago
JSON representation
A Toy Javascript Compiler that parses javascript and compiles JIT with LLVM(Rust:inkwell).
- Host: GitHub
- URL: https://github.com/silverbirder/rustscript
- Owner: silverbirder
- License: mit
- Created: 2021-09-08T11:45:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T14:40:25.000Z (about 1 year ago)
- Last Synced: 2024-04-13T19:02:18.121Z (9 months ago)
- Topics: compiler, inkwell, javascript, llvm, rust, toy
- Language: Rust
- Homepage:
- Size: 43.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rustscript
A Toy Javascript Compiler that parses javascript and compiles JIT with LLVM([Rust:inkwell](https://github.com/TheDan64/inkwell/)).![overview](./overview.png)
# environment
```
$ sw_vers
ProductName: macOS
ProductVersion: 11.6
BuildVersion: 20G165
$ cargo --version && rustc --version
cargo 1.56.0-nightly (18751dd3f 2021-09-01)
rustc 1.56.0-nightly (50171c310 2021-09-01)
```# development
```
$ cargo run
```# laboratory
Lab to output ll files easily from C language.
# link
* [LLVM入門 - javascriptをLLVM(Rust:inkwell)でJITコンパイルするまで - silverbirder](https://silver-birder.github.io/blog/contents/intro_to_LLVM-JIT_compilation_of_javascript_with_LLVM_Rust_inkwell)