- C 97.2%
- Makefile 2.8%
| src | ||
| .clang-format | ||
| .clang-tidy | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
| setup.sh | ||
Project 6
Parker Macdonald
This assignment took me a really long time. I've worked with parsing languages before, so I figured I would load the whole file into RAM and tokenize the input, but that was a pretty dumb idea since the language is so simple, and some things are conditional on whether they start on a line and what not. I probably could've made it work, but I abandoned the idea after the first two or so hours. After that I parsed the input used string comparisions, loops, and things. This works pretty well, and my program has decent error messages (my bar was to make them better than the web IDE and I think I accomplished that). This project also borrows a good chunk of code from my big C project I've been working on. The hash map, vector, file reader, and error logging (I guess just everything in the lib/ folder) is from another project. To be clear, I still wrote all the code, I just didn't write it for this project. Anyways...
If I had to give an estimate a time frame for this assignment I would say 6-7 hours, which is a lot more than the previous ones have been.
I had no outside help on this assignment, but I did warn Isabelle Ousterhout about going down the tokenizing route and how it's probably a waste of time.