Giter Club home page Giter Club logo

asm-compiler's Introduction

##Compiler This compiler takes in a Mini Pascal file and outputs a MIPS Assembly file. It converts the Mini Pascal code into MIPS Assembly. We used JFlex to create our scanner and a lookup table to create the TokenTypes for each word passed into the program. The parser uses recursion to match all of the proper TokenTypes to each word passed in.

##User Manual To use this compiler, download the Compiler.jar file from the repository. Then in Terminal/Command Prompt, naviagate to the location of the Compiler.jar file and run java -jar Compiler.jar [pascal_file]

Error List

Error No File: The file you have provided is either missing or not a valid file

Error Scan error: The first word in your Pascal code is not a valid word. The first word should always be program

Error type, failed to add: You may have declared the same variable more than once. Check your code!

Error standard_type: Assigning variables requires the word INTEGER or REAL. Make sure you have that following your variables.

Error subprogram_head: We expected a FUNCTION or PROCEDURE in your code.

Error factor: Your Pascal Code is incorrect. Check your code around Variables, Left Square Brackets, Left Parenthesis, Numbers, and not for coding mistakes

Error sign: We expected a PLUS or MINUS somewhere in the code.

Error Scanner exception: The scanner could not identify a word in your Pascal code.

Error Match of [word_1] found [word_2] instead: Your Pascal code had [word_1] somewhere, but was expecting [word_2]

asm-compiler's People

Watchers

James Cloos avatar

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.