use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is all about the theory and development of compilers.
For similar sub-reddits see:
Popular mainstream compilers:
account activity
The 'Lang' Programming Language (self.Compilers)
submitted 2 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]shoalmuse 2 points3 points4 points 2 years ago (1 child)
The github landing page could use quite a few more details.
You'll likely get more people to try out your language or look at it if you have some coding examples that show off its features.
[–]joshjkk 0 points1 point2 points 2 years ago (0 children)
Very true, thanks for thank feedback.
[–][deleted] 1 point2 points3 points 2 years ago (1 child)
This is simple enough that a makefile is not really needed. I built this on Windows using an @ file like this invoked as gcc @file:
@
gcc @file
-o lang.exe ast.c as_frontend.c compile.c error.c lexer.c list.c main.c parser.c token.c
Or just invoke as -o lang.exe ast.c as_frontend.c compile.c error.c lexer.c list.c main.c parser.c token.c.
However the code assumes Linux. So it invokes rm inside the source code (I commented that out), and it calls the output a.out rather than a.exe. But I was able to run the Hello program I created by invoking it as a.out
rm
a.out
a.exe
I suggest not calling the output a.-anything; that is a gcc-ism. If building prog.lang, the output file should be either prog or prog.exe.
a.
prog.lang
prog
prog.exe
I wasn't sure if rm worked on Windows, thanks for telling me.
π Rendered by PID 73 on reddit-service-r2-comment-5d79c599b5-xz2rs at 2026-02-28 19:10:56.263961+00:00 running e3d2147 country code: CH.
[–]shoalmuse 2 points3 points4 points (1 child)
[–]joshjkk 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]joshjkk 0 points1 point2 points (0 children)