Open source compiler projects that we write

Hi!!!
I am creating this topic, to post the link to the compiler projects we wrote, or participate in the projects, with the intention of distributing our knowledge and also, getting to know the knowledge of our compiler developer friends!

So, here is the list of my compiler and code-generator projects:




https://github.com/bencz/Pythonish-Compiler ( Thanks to Mikael!!! )
https://github.com/bencz/asmBuilder
https://github.com/bencz/Compiler-study
https://gist.github.com/bencz/79d4738afe962b5479d1

I a another project, that is a C# based language, which generates native x86 code too … and the compiler already generates the EXE or DLL
I am currently playing with the development of a language based on xBase (does anyone remember CA-Clipper ??)

2 Likes

I also participate in the development of a language, called ELENA: https://github.com/ELENA-LANG/elena-lang

1 Like

Several years ago I contributed to Armed Bear Common Lisp (https://github.com/armedbear/abcl/) but mostly on its Java FFI/integration. I did poke into the compiler to fix bugs, but it was too complicated for me at the time to make significant modifications.
One thing I would have loved to do, and never managed to, was to enable it to write Java classes whose methods are implemented in Lisp. Clojure can do such a thing I think, and sometimes it’s necessary when a proxy won’t do (e.g. when the class must be consumed by some library that does bytecode analisys/enhancement).
Another important thing I attempted but didn’t succeed at was generating stackmap frames annotations. Those are necessary to enable the “new” bytecode verifier which in turn is necessary to generate Java 6+ bytecode, which means support for invokedynamic (from Java 7).

1 Like

TextUML is a textual notation for UML. It uses SableCC as a parser generator.

The Alf RI was implemented by @seidewitz (Model Driven Solutions), I only made a few contributions. It is JavaCC-based.

3 Likes

i’m writing a IBM 360/370 VM and Assembler Compiler in JavaScript. Any help is welcome.

Sources:

For testing.
https://ibm360vm.herokuapp.com/

Good luck

2 Likes

Here’s my project for hard-coded lexers in Java and C++ (C# coming up):

1 Like

I have been making attempts at a few compiler projects, first was WASP, then Cabasa, now I am working on a Wren compiler and interpreter.

Here’s a screenshot of a bytecode dump from my recent Wren compiler project…

1 Like