r/Compilers • u/PacsfuryTemp • 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
View all comments
Show parent comment
1
u/PacsfuryTemp Aug 01 '26
Ok, right now, they are pretty the same, as there are not much types.
But when more types, like char and float, the difference will be more visible.
With `:=` is inference, only available for the primitive types (now int, in the future also char and float), but `=` is explicit, so you say if its an int, float, or any type you define using type classes.
We use := for inference so you can create a type names 'val' (as inference is val name := value), and also for clarifying and making inference more easily detectable in the code.
thanks