Giter Club home page Giter Club logo

oberon-2's Introduction

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.

oberon-2's People

Contributors

sumitbhagwani avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

geekstakulus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.