TinyCompiler: A compiler in a week-end
ssloy.github.io
TinyCompiler: A compiler in a week-end
1–10 of 120 posts
Re: TinyCompiler: A compiler in a week-end
#2(Crenshaw's Let's Build a Compiler is an excellent source too if you want to go one step lower and go standard library free, focusing only on function call stacks: https://compilers.iecc.com/crenshaw/)
Re: TinyCompiler: A compiler in a week-end
#3Re: TinyCompiler: A compiler in a week-end
#4Re: TinyCompiler: A compiler in a week-end
#5I don't think one can understand compilers in a "week-end".
Re: TinyCompiler: A compiler in a week-end
#6I don't think one can understand compilers in a "week-end".
Re: TinyCompiler: A compiler in a week-end
#7Every features on top of that has either leaky abstractions and/or nightmare scenarios.
That said I'm not claiming the world should run on this type of code. Or should it.
Re: TinyCompiler: A compiler in a week-end
#8I don't think one can understand compilers in a "week-end".
Production compilers are complicated because of the feature set of languages and performance requirements.
You can write a lexer + parser + treewalk interpreter for a simple language in a day if you know what you are doing.
Re: TinyCompiler: A compiler in a week-end
#9Re: TinyCompiler: A compiler in a week-end
#10I don't think one can understand compilers in a "week-end".
Compilers are some of the simplest "complicated" programs out there if you start by throwing yacc/bison/antlr/parser generators in the garbage. Production compilers are complicated because of the feature set of languages and performance requirements. You can write a lexer + parser + treewalk interpreter for a simple language in a day if you know what you are doing.