r/Compilers • • Jul 31 '26

Developing my programming language: Gravel

It all started just as a side and fun project, but I feel like it's now getting a shape.

Thats why I would love to receive some honest and contructive feedback, issue creations or code contributions.

If you have any question regarding the language, please ask me.

Here's the repo: https://github.com/Pacsfury/Gravel-Launcher

Its written in C and uses LLVM IR as backend.

AI use: debugging, teaching more about compilers and some punctual code writing

16 Upvotes

19 comments sorted by

View all comments

Show parent comment

2

u/vmcrash Aug 01 '26

You already trigger the inference using val or var (instead of a type), so the := is redundant. I'd use it for something else.

I'd also would get rid of elseif, because it only saves one keystroke for the space, but makes the language more complex.

1

u/PacsfuryTemp Aug 01 '26

I created this (https://github.com/Pacsfury/Gravel-Launcher/discussions/99) so people (like you and me and other contributors) can vote what they want.