A compiler I wrote for my university bachelor thesis. Flex and Bison is used for generating a lexer and parsing the abstract syntax tree.
Some features include:
Some features include:
- Type-checking
- Preprocessor directives, Functions, Variables, Structs, Memory allocation, ...
- Weeding Steps and printing the AST directly to latex.
- Assembly code generation
- Code execution
Features:
- Simple Conccurency
- Loading of .OBJ files
- Displays objects using swing and can save screenshots.
- Rotations in 3D space
- Simple flat shading
- Light sources
- ...
My second programming project at the University. Sudoku is an NP-complete problem, we cannot verify the solution in polynomal time. Therefore, this was an attempt to brute-force our way to the correct solution. We scan sequentially/naively for the cells at each step and backtrack on failure. This can be improved by a greedy algorithm that simply chooses some local optimal steps at each iteration, and with backtracking/backpropagation we can always generate a correct solution.






