Open cjvillar opened 2 months ago
I like https://norasandler.com/2017/11/29/Write-a-Compiler.html as they reference a research paper that guides the whole process step-by-step. I think by Monday I will have a strong argument for us to write a "template" compiler in (C , c++, rust or GO) , target x86 assembly.
Outline for flex (lexical analyser):
Short description of Lex & Yacc (the older versions of Flex & Bison resp.)
https://arcb.csc.ncsu.edu/~mueller/codeopt/codeopt00/y_man.pdf
We might have better luck looking at documentation for those -- the docs for Flex are pretty sparse.
Description of recursive descent, eliminating left recursion, and building ASTs
collect resources/ instructional guide to follow.
Here are some of the resources we've mentioned:
https://norasandler.com/2017/11/29/Write-a-Compiler.html
https://compilers.iecc.com/crenshaw/
Modern Compiler Implementation in C.