Skip to content
This repository was archived by the owner on Apr 26, 2022. It is now read-only.

Project that translates Pascal syntax into MIPS using Bison and Flex and writing in Lex, Yacc and C

Notifications You must be signed in to change notification settings

LiorSB/PascalToMips_Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PascalToMips_Compiler

Project that translates Pascal syntax into MIPS using Bison and Flex and writing in Lex, Yacc and C.

How to use:

Only 1 arguement is allowed after cpm.exe and it must be a *.cpl file.
The CPL file must be written in Pascal syntax to compile to mips, otherwise only a file called listing.lst will be the only output with the fitting errors. In case everything runs well the out will be two files: listing.lst and mips.s. The mips.s file you may run in MARS.

Successful example:

image

image

image

image

image

image

Error example:

Not declaring a variable and not ending a line with ';'

image

image

image

About

Project that translates Pascal syntax into MIPS using Bison and Flex and writing in Lex, Yacc and C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published