r/C_Programming • u/PacsfuryTemp • Aug 01 '26
Creating a programming language in C
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
23
Upvotes
âĸ
u/github-guard Aug 01 '26
đ GitHub Guard: Trust Report
This project scored 4/6 on our safety audit.
Audit Breakdown:
9
u/skeeto Aug 03 '26
Neat project! To try it out I changed the
system()call to run Python throughuv, which trivializes things:For the build I did this:
Now some interesting inputs. Arithetic errors in constant folding:
Buffer overflow on long tokens:
GCC can find these overflows statically. Another buffer overflow (unterminated comment):
Null pointer deref:
I found these with fuzz testing, and here's all my work in case it's helpful:
https://github.com/skeeto/Gravel-Launcher/commits/main/?author=skeeto
3
u/jayylien Aug 05 '26
I'm not asking to curtail your creativity, but I'm genuinely curious:
What does your language offer that is unique?
What problem does it solve?
I've debated making a programming language for years, and never felt like I had something that warranted the effort. Like, yeah, could be really fun. But often times, I come to the conclusion that there's little to unique features that I want other than syntactic sugar that I can implement in various pre-existing languages.
And another question: Do you plan on bootstrapping your language?
1
u/AutoModerator Aug 01 '26
Hi /u/PacsfuryTemp,
Your submission in r/C_Programming was filtered because it links to a git project.
You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.
While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/nichcode Aug 03 '26
Nice project. Will give it a try and see the flow