Skip to content

jmundack/universal_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal-Compiler

CSCI 5640 - Universal Compiler

How to build: --> cd build --> ./bootstrap.sh

TestData: --> Test input files can be found in the TestData directory

Assignment 1 To run Test (file name can be any file in the Test data directory) --> ./build/debug/bin/ACScannerTest

Assignment 2 To run Test (file name can be any file in the Test data directory) --> ./build/debug/bin/ACMicroParserTest

Assignment 3 To run Test (file name can be any file in the Test data directory) -- will print out the generated code --> ./build/debug/bin/ACMicroParserTest

Assignment 4 To run Test (file name can be any file in the Test data directory) -- will print out the generated code --> ./build/debug/bin/ACMicroParserTest --> ./build/debug/bin/UCMicroParserTest both should out the same last line

Assignment 5 To run Test (file name can be any file in the Test data directory) -- will print out the results --> ./build/debug/bin/UCGrammerAnalyzerTest Asuumption : adjoining terminal token are space separated

Assignment 6 To run Test (file name can be any file in the Test data directory) -- will print out the results --> ./build/debug/bin/UCPredictGeneratorTest

Assignment 7 To run Test (file name can be any file in the Test data directory) -- will print out the results --> ./build/debug/bin/UCTableGeneratorTest

Assignment 8 To run Test (file name can be any file in the Test data directory) -- will print out the results --> ./build/debug/bin/UCParserDriverTest <MicroGrammer.dat>

Assignment 9 To run Test (file name can be any file in the Test data directory) -- will print out the results --> ./build/debug/bin/UCMicroCompilerTest <MicroGrammer_w_action_symbols.dat> NOTE: ACMicroParserTest and UCMicroCompilerTest should generate the same code for all programs (tested with test programs 1,2,4,5 in test data directory - 3 is an invalid program)

Assignment 11 To run Test (file name can be any file in the Test data directory) -- will print out the results (compiled code or error if there were errors) --> ./build/debug/bin/ACMicroParserTest

Updated source code can be retrieved from git://github.com/jmundack/universal_compiler.git

Credits -- Algorithms used in these implementations have been obtained from stilman-strategies website (written by Prof Boris Stilman for Universal Compiler class)

About

CSCI 5640 - Universal Compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages