No description
Find a file
2023-02-12 20:21:24 +08:00
.cargo feat(tasks): add parser benchmark 2023-02-11 08:46:32 -08:00
.github/workflows ci: remove unused github_token from benchmark 2023-02-12 20:21:24 +08:00
crates feat(oxc_parser): allow filename as option in examples/simple.rs 2023-02-12 15:57:40 +08:00
tasks chore(coverage): add typescript to cargo coverage command 2023-02-12 16:27:26 +08:00
.gitignore chore: commit Cargo.lock 2023-02-11 18:45:50 -08:00
.gitmodules feat(coverage): add typescript conformance (currently 4287/4861 88.19%) 2023-02-11 23:46:28 -08:00
Cargo.lock feat(coverage): add typescript conformance (currently 4287/4861 88.19%) 2023-02-11 23:46:28 -08:00
Cargo.toml perf: add jemallocator 2023-02-11 18:45:50 -08:00
CONTRIBUTING.md chore: add rust-toolchain.toml and Cargo.toml 2023-02-11 13:03:40 +08:00
LICENSE Initial commit 2023-02-09 13:46:52 +08:00
README.md chore: update README on milestone 2023-02-12 16:38:13 +08:00
rust-toolchain.toml chore: add rust-toolchain.toml and Cargo.toml 2023-02-11 13:03:40 +08:00
rustfmt.toml chore: add rustfmt.toml 2023-02-11 13:11:17 +08:00

The JavaScript Oxidation Compiler (oxc)

Why this project?

The goal of this project is to:

  • Create a blazingly fast JavaScript Compiler written in Rust.
  • Provide good documentation on learning Rust and compiler techniques.

And mostly importantly, an invitation for you to come and learn Rust with me. We will learn a lot from each other!

You can watch this project and also follow me on twitter if you don't have the time to Rust but would like to learn things.

Call for action

We now have a fully working parser as a baseline, it is not polished yet, so it would be much appreciated if I can invite you and review any of the code and point out for improvements. I welcome all nitpickings and bikesheddings.

I have crated some discussions.

Milestone

The current objective is to improve the parser for real usage. Areas include:

  • API
  • Diagnostics reporting
  • Performance
  • Pass more conformance tests

Conformance

The cargo coverage currently reports the following summary

Test262 Summary:
AST Parsed     : 43934/43934 (100.00%)

Babel Summary:
AST Parsed     : 2043/2057 (99.32%)

TypeScript Summary:
AST Parsed     : 4287/4861 (88.19%)

(The parser is failing some of the TypeScript recoverable parser tests.)

Learning Resources

Credits

This project is inspired by the following great mentors and projects:

License

MIT