Home

Awesome

EDIT: There were some typos which someone kindly corrected in a pull request. As I had to run for the next train I had no time to properly document the process. I posted in this twitt some of the screenshots I casually took during the process screenshots:

Screenshots

NOTE: Everything this repository with the exception of this own note has been generated entirely with chatGPT and asked gradually how to correct or refactor each one of the errors that showed up on the terminal.

For that I followed as guidelines these both articles: Building A Virtual Machine inside ChatGPT Building an interpreter for my own programming language in ChatGPT

It took me around two hours, where ChatGPT was the main pilot and I became the copilot, trying to run the project and asking GPT to refactor the parts of the code that didn't run, showing the console output mistake and how would it fix the given function etc.

I could ask to change the tests form unittest to pytest and similar tasks... and it did so, The files I ask it to "cat" them and just copied them on my filesystem.

The language doesn't completely run, but it was just a two-hour experiment.

The day GPT is the pilot and humans become the copilot in a pair programming role is almost here.

Actual generated README code begins here:


Elm-python

Elm-python is an experimental programming language. It takes inspiration from Clojure and Elm, and is implemented in Python. It compiles to LLVM.

Features

Usage

Run the REPL:

$ python3 -m elm_python.repl

Copy code

Compile a file:

$ python3 -m elm_python.main my_program.elm

Copy code

Run tests:

$ pytest

Copy code

Roadmap

License

MIT

All the python code lines are:

ls -1 *.py|cat|wc -l