/static-semantics

Adding static semantics verification to recursive descent parser.

Primary LanguageC++MIT LicenseMIT

Static Semantics

A LL(1) recursive descent parser written in C++.

This project adds local scope static semantics verification on the parse tree.

Usage

To build the project run:

make

To run the project you must provide a file that contains source code. There are 3 ways to do this:

  1. Provide a source code file with the extension .fs182.
statSem filename
  1. Provide the source code file to stdin using redirection:
statSem < filename.fs182
  1. Or, provide source code via the keyboard (stdin) and press ctrl-d to enter the EOF character when done:
statSem