Before everyone piles on, here is the repo owner's Note at the bottom of the page:
This is my first ever compiler project.
I created this compiler for the following reasons:
* To learn about compiler development.
* To build a self-compiling compiler.
* To implement features I find interesting and cool.
It is a surreal combination of both python style white space sensitivity and C style curly braces with random features taken from both.
The __x__ methods in python are in my opinion a severe design mistake and taking inspiration from that means you really have no clue about programming language design. You're just taking things that already exist 1:1 in one language and are just giving it the syntax of the other language. This really is just a weird way of writing C++ code.
Python, C++ inspired language that transpiles to C and can be embedded within C
(github.com)49 points by thunderbong 8 November 2024 | 26 comments
Comments
1: https://shedskin.github.io/
Edit: wonder if the contributor John Nagle is that John Nagle...
Next step is to make your Anil compiler in Anil.
Small complaint: I would rather you have the code examples as text on the github readme than as an image.
It is a surreal combination of both python style white space sensitivity and C style curly braces with random features taken from both.
The __x__ methods in python are in my opinion a severe design mistake and taking inspiration from that means you really have no clue about programming language design. You're just taking things that already exist 1:1 in one language and are just giving it the syntax of the other language. This really is just a weird way of writing C++ code.