Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RubiconIII/SimpleCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

A Simple Compiler

By: Curtis P. Hohl - 11/2/2017. πŸ‘¨β€πŸ’»

The language to be compiled is very simple. It allows variable declarations (INT FLOAT STRING), simple addition and subtraction, standard operators (== != <= >= > <), and PRINT. Detailed syntax can be seen in scan.jflex.

This program uses byaccj and jflex. The output is in MIPS Assembly language and can be run with lib/Mars4_5.jar

To use the program, run the Makefile, which will generate .java and .class files. Then run in a UNIX terminal the command: java Parser (inputFileNameHere).txt.

I've included a sample input file: m4-input.txt

Happy compiling!

About

Custom compiler built with byaccj and jflex.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /