Skip to content

udaiveerS/CS-153

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to CS 153: Compiler Design

In this git repository each folder is a fully importable Eclipse project. Assignment 3 - Assignment 5 deal with studying Pascal Compiler source code and adding features into to the Pascal compiler.

Assignment 6 and Assignment 7 are the beginning parts of our compiler where we build a compiler by using a Compiler-Compiler called javaCC.

TestScript is the final Eclipse project base on the [TypeScript language specs] (http://www.typescriptlang.org/Handbook). TestScript is sectioned into 3 packages frontend/Intermediate/backend. The project includes test programs that can be compiled and run using the JVM. Each sample program produces a .jasmine file which then can be compiled into a corresponding .class file and executed on the JVM.

Build Requirements

  • Eclipse
  • JavaCC plugin for eclipse
  • jasmin.jar
  • java 7

UML

![alt tag] (http://i.imgur.com/e2WoPXo.png?1)

TestScipt Constructs

  • Data Types
    • reals
    • boolean
    • strings
  • Variables
  • Control Structure
    • if
    • if/else (not nested)
    • while loops
  • Expression
    • operators
      • +, - , *, /
  • Conditionals
    • <, > , <= , >= , !=
  • Function
    • void
    • parameters (valid syntax, but not being added to backend)
    • recursive functions

More Resources

Final Report

About

All assignments for Compilers CS153 SJSU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published