The is the term project for our Compiler Design class.
Steps to execute the project:
make all
make clean
./a.out "code.ccc"
http://dinosaur.compilertools.net/bison/bison_6.html?fbclid=IwAR0VicThJFmpGt9gD_kAYhPt9EhaneTwPtWyzD0NUGalWaSnE0-2YSnD9rQ
https://github.com/kranthikiran01/subc-compiler
https://c9x.me/yacc/
https://github.com/SilverScar/C-Language-Parser
https://gist.github.com/codebrainz/2933703
http://aquamentus.com/flex_bison.html
http://www.quut.com/c/ANSI-C-grammar-l-1995.html
https://stackoverflow.com/questions/47420730/linker-error-multiple-definition-of-yylex
https://www.geeksforgeeks.org/operators-c-c/
https://www.youtube.com/watch?v=eF9qWbuQLuw
https://www.youtube.com/watch?v=fDKfdyDWdE4
https://docs.microsoft.com/en-us/cpp/c-language/c-abstract-declarators?view=vs-2019
https://github.com/ZhenoSan/ThreeAddressCode
bison parser.y --report=all
bison parser.y -o parser.cc
gcc parser.cc -fno-diagnostics-show-caret
!x is x == 0
x!=y is !(x==y) is (x==y)==0
x-y is x+(-y)
x[y] is *(x+y)
removed positive type (unsigned)
removed casting