JSAbrahams / mamba

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

Transpile entire directories #100

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Current Issue

Currently we only transpile one file at a time.

Description of the feature

When passed a directory, we transpile recursively every file in that directory. This also requires that all this information be passed to the type checker before the desugaring stage so that the type checker can build a context with information regarding the entire directory.

Description of potential solution

Modify pipeline so:

We likely want to store a transpiled python project alongside its mamba counterpart. Furthermore, it is also desirable to preserve the directory structure of the original project. Therefore, when outputting python files: