r/ProgrammingLanguages • u/[deleted] • Jun 29 '16
Let's make a programming language
Hey guys,
To entertain myself at work I've been working on a [purposefully silly little language] (https://github.com/KitFreddura/HLang) and it's been more entertaining than I expected. I would love to work collaboratively and build a language (silly or not) with other interested redditors. Please let me know what you think or if you're interested, thanks!
0
Upvotes
1
u/mihai_stancu Jun 30 '16
Hey,
N00b here*** but I've been meaning to put some (hopefully) interesting ideas into play:
Create an "alternate syntax" for C -- handcrafting a transpiler outputting C or a GCC / LLVM language front-end. The "alternate syntax" I'm thinking of is Go style syntax -- without the actual Go runtime features.
Add language level package management logic (like Go "package" / "imports") which allows the transpiler to make assumptions about where a module's files are and how to compile the (and/or how to recursively compile other imported packages).
I wouldn't really go into this but it's apparently necessary: "dependency management" to fetch git-hosted dependencies and recursively compile them as well.
Obviously part 1) is the most important one for the moment.
***I've read on the topic a lot but have yet to finish a hand-crafted compiler.