amorriscode / amorriscode/axolotl

Develop compiler

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Rust
スター
16
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

We currently have the [scaffolding](https://github.com/amorriscode/axolotl/tree/main/src/compiler) for the compiler. It uses [`swc_ecma_parser`](https://rustdoc.swc.rs/swc_ecma_parser) to turn TypeScript into an AST in Rust.

We need to take that AST and transform it into Anchor-compatible Rust. For the "Hello World" proof, we will be _heavily_ inspired by the [Seahorse compiler](https://github.com/ameliatastic/seahorse-lang/tree/main/src/core).

Because we are using TypeScript, we can create [custom TypeScript ESLint rules](https://typescript-eslint.io/docs/development/custom-rules) to enforce any custom compiler rules in the developer's editor.

## Compiler steps

- [x] Parse TypeScript source into an AST
- [ ] Compile TypeScript source to Rust
- [ ] Type-check to ensure all code can be valid Rust
- [ ] Convert TypeScript into Anchor-compativle Rust

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。