Skip to content

patstrom/pascal_interpreter

Repository files navigation

simple recursive descent parser and interpreter of a subset of pascal.

Thanks to a great guide here: https://ruslanspivak.com/lsbasi-part1/

g++ main.cpp
./a.out examples/part_10_ast.pascal

TODO

  • Continue to part 14 of the blog
  • Procedures are still unfinished

What I would have done differently

  • Node shouldn't have an enum to determine what type of node it is. Instead it should have different derived classes. This would also simplify the node visitor.

About

Interpreter for subset of pascal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages