Description: An exercise in programming languages and semantics. It is a parser that reads and parses basic programs written in Pascal for syntactic and semantic errors. I also included the test suite in the folder /testfiles which contains all the test programs that the parser ran through.
- CLISP (macOS/Linux)
It runs the test suite by default, so to run a single program you have to uncomment the following function call:
;; (parse "filename.pas")
Then run the parser:
macOS:
clisp < parser.lsp