Skip to content

dnerdy/crochet

 
 

Repository files navigation

Crochet 🧣

CI codecov

A compile-to-JavaScript language with tight TypeScript integration. See design/mvp/README.md for information about planned features.

Development

External Requirements:

Demo

To run the demo, run the following commands in seperate terminals:

  • yarn watch-wasm
  • yarn serve

Testing

  • cargo insta test

Parser

The parser is broken down into two parts:

  • a tree-sitter parser which generates a CST
  • a rust-based parser which walks the CST and produces an AST

NOTE: The AST models functions as lambdas whereas the CST does not.

See crates/tree_sitter_crochet/README.md for details on how to modify the tree-sitter parser.

About

A compile-to-JavaScript language with tight TypeScript integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 94.2%
  • JavaScript 3.0%
  • C 2.0%
  • CSS 0.5%
  • C++ 0.2%
  • Python 0.1%