JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Create separate repository with example scripts #247

Open JSAbrahams opened 2 years ago

JSAbrahams commented 2 years ago

Current Issue

We have a few example scripts in the README. It'd be nice to have a dedicated repository with larger scripts (and perhaps projects) to showcase what Mamba looks like in practice.

High-level description of the feature

We can actually build a script which downloads mamba from the crates. This is then used to compile all our scripts. The build then passes if all compile, and fails if any fail to compile.

We could additionally have a target repository with all the reference python scripts. Then the build script checks the output AST of the compiler with the reference python script. If this comparison fails, then the build fails, and if not then it passes (if all match). This also reinforces that Mamba is similar to Typescript. Typescript also produces scripts which are stored in a target repository. though in that case the output is JavaScript instead of Python files.