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

Small compiler for the TPC language, a subset of C

License

Notifications You must be signed in to change notification settings

4nt0ineB/tpc-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Small compiler for the TPC language, a subset of C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages