Python, C++ inspired language that transpiles to C and can be embedded within C

(github.com)

Comments

PyWoody 11 hours ago
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.
moomin 8 November 2024
Taking the name of the language of the front makes it read like Python is the subject matter.
actionfromafar 11 hours ago
Obligatory mention of Shedskin¹, which is an honest to goodness Python3 to C++ transpiler.

1: https://shedskin.github.io/

Edit: wonder if the contributor John Nagle is that John Nagle...

ecshafer 7 hours ago
Great work!

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.

pipeline_peak 8 November 2024
I think ANIL might not be a great name. Let me know if you need clarification ;)
imtringued 8 November 2024
I have to be harsh to this.

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.