Skip to content

Latest commit

 

History

167 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pascal Compiler

Compiler for a subset of Pascal as described in Compilers: Principles, Techniques, and Tools 1st Edition - Aho, Sethi, Ullman, appendix A. The grammar has been modified to support nested subprogram definitions.

Requirements

  • a linux environment
  • clang
  • GNU Make

Build

make clean
make

Run

By default, the compiler will read and analyze the data/program.pas source file:

./bin/pasc

A different source file may be specified on the command line:

./bin/pasc /path/to/source.pas

After execution, a listingfile, symboltable, and tokenfile will be output to the project root directory.

About

Pascal compiler front-end

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages