sumitbhagwani / oberon-2 Goto Github PK
View Code? Open in Web Editor NEWCompiler for Oberon-2
Compiler for Oberon-2
The extracted folder should contain the following (6 files and 1 folder) A folder by the name TestCases containing 14 files CodeGenerator.py Group15_Declaration.pdf Group15_Prsentation.pdf Group15_Specification.pdf input.txt Phase1.py readMe.txt Phase1.py contains the lexer, parser and the code for intermediate code generation CodeGenerator.py, as the name suggests generates the MIPS code from the intermediate code input.txt is the default input file To run the oberon file use the folowing commands cd into the directory containing CodeGenerator.py Copy the input file (say fileName.txt) into the same folder as above and type the following command python CodeGenerator.py fileName.txt By default, CodeGenerator assumes input.txt as the input file On running the above python command, two options occur if the user wishes to print the intermediate code and other debugging information. If the user inputs y, they are also printed. The Intermediate code can be easily understood by the user, but other debugging information is very hard to make sense of. A MIPS file "new.asm" will be genertaed in the same folder. This can be run with any MIPS simulator. A few test cases are provided along with the code. Their expected working has been explained in the respective files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.