Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

HsuTing/compiler3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Compiler 3

##Environment

	ubuntu 14.04.2 LTS

##Language

	c++

##Compile

	make -f Makefile

##Use

	./hw3 (file name)

##Contributors

##File

main.cpp

	Contorl total class(symbol, check, llvm).

symbol.cpp

	class Symbol:

		Check how many type in file.

	class Table:

		Use to store scope, level, symbol, type, array, function about file.

	class SymbolTable.cpp

		First, check type, and set level, symbol, type, array, function.
		Second, use level to add scope.
		Final, scope the table and write in output file.

check.cpp

	class Check:
		
		Store scope, level, symbol, type, array, function about file.
		Type checking.

llvm.cpp

	class Llvm:
		
		Saving all Non-Terminal functions(30).
		Finished function : type operate , print , func , array operate.
		Unfinished function : while , if , piority operator.

	class Stack:
		
		Build stack to save input.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages