Jan 2024 - May 2024

Compiler
Design

Conner Mullins

In my Compiler Design class I developed a compiler for the custom programming language bC, a simplified variant of C with unique features created by Dr. Joules "BC" Beeston. The project involved creating a complete compiler pipeline, including lexical analysis, syntax validation, semantic analysis, and assembly code generation. I used Flex and Bison to develop a scanner and parser, which together constructed abstract syntax trees (ASTs) from the language's tokens. I also implemented semantic analysis and error handling to maintain code integrity, ensuring that compiler-generated errors and warnings were clearly formatted. The final output included both assembly and machine code, suitable for execution on a TM. The tools used for this project were C, C++, Flex/Lex, and Bison/Yacc.