amorriscode / amorriscode/axolotl

Develop compiler

Ouverte
#4 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Rust
Étoiles
16
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.