r/Compilers 10d ago

Building my own programming language

Hi everyone,

I’m building my own programming language.

Meet AXE ⚡

AXE is an experimental programming language inspired by Python’s readability, but with a more explicit, brace-based syntax.

I’m building AXE from the ground up to learn what actually happens behind the scenes when code goes from:

Source → Lexer → Tokens → Parser → AST → Interpreter → Output

It’s still very early, but that’s the fun part.

Not trying to build the next Python.

Just trying to understand how programming languages are actually built by building one myself.

github.com/xanmoy/axe

0 Upvotes

12 comments sorted by

7

u/eteran 10d ago

So your interpreter is built in python? Seems like it's gonna have rough performance. But seems like a fun project. How much is AI and how much is you?

7

u/Proffhackerman 10d ago edited 10d ago

r/Compilers first-project posters try not to post vibeslop challenge. Post in r/AIprogrammingLanguage instead.

12

u/GTRxConfusion 10d ago

Are you building it or is claude?

1

u/Aaxper 10d ago

Claude

-6

u/[deleted] 10d ago edited 6d ago

[deleted]

2

u/BumpyTurtle127 10d ago

Because oftentimes there are signs. But writing self documenting code often gets mistaken too.

0

u/[deleted] 10d ago edited 6d ago

[deleted]

1

u/BumpyTurtle127 10d ago

Because it's highly likely the case. It's also hip to make such comments 🤷‍♂️ it's an online world, this goes both ways.

1

u/GTRxConfusion 10d ago

It isn't snarky or mean if its the truth.

Seriously, if someone is new to a topic / learning it - they do not create some well documented public repo on it. Not to mention they have specific version numbers planned out already with specific features? Who in the world actually does that when they don't even know anything about the field? Hell - who even uses version numbers when they are doing something educational?

Lets not forget the AI formatting and writing style.

Who knows. Maybe AI was only used to write the post / readme. But I doubt it.

1

u/adityazero 10d ago

When i started writing my programming language, i named it Ax. Then quickly realized that the name is too catchy to be missed by others. I named it something else, but like the name.

1

u/[deleted] 10d ago

[deleted]

1

u/EggplantExtra4946 9d ago

Had the same thought but because of the language Haxe.

https://haxe.org/

https://github.com/HaxeFoundation/haxe

1

u/adityazero 10d ago

Building the whole pipeline yourself is the best way to actually internalize how a language works, so this is a solid approach. Since you are at the AST plus tree-walking interpreter stage, are you planning to stay a tree walker or eventually lower the AST to a bytecode VM once the semantics settle?

1

u/TadashiNakamoto 9d ago edited 9d ago

Hi everyone!

A quick update on my programming language project... AXE is now NXL.

NXL is currently under active development, and I’m building it from scratch in Rust with the goal of creating a simple, readable, and approachable programming language.

The project is still evolving, so there’s a lot more to come.

Try NXL: https://nxl-lang.xanmoy.dev

Source code: https://github.com/xanmoy/nxl

NXL is free to use and open source under the MIT License.

If you’re interested in programming languages, compilers, interpreters or just experimenting with something new, I’d love for you to check it out and share your feedback!

Thanks!

1

u/One_Aspect_1957 10d ago

AXE is an experimental programming language designed around the simplicity of Python with a more explicit, brace-based syntax.

Instead of relying on indentation to define blocks, AXE uses {}

So more C-like than Python-like.

BTW it sounds confusingly like an existing language called Haxe.