Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (26 loc) · 685 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 685 Bytes

tpc-compiler

Project Small compiler for the TPC language, a subset of C. The purpose of this project during the final year of my cs degree was to introduce the concepts and methods of compilation.

produces the executable in bin/tpcc

make

runs the tests and gives a report in test/tpc-test.txt

make test

tpcc help

SYNOPSIS
	./tpcas [OPTION]
	./tpcas [OPTION] [FILE]

DESCRIPTION
	 Parses inputs (from stdin or FILE) as TPC formated text

	-h, --help
		display this help and exit

	-t, --tree
		parse the input and display the abstract syntax tree

	-d [file]
		produce a dot formated file from the abstract syntax tree

	-s display symbol tables