Giter Site home page Giter Site logo

kwyjino's Introduction

kwyjino

Group compiler project for COMP 430 - CSUN Spring 2023.

Grammar:

variable is variable
Classname is an obj
String is a string ('a'..'z'|'A'..'Z')+ ;
INT is an int: '0'..'9'+ ;
! Converts privacy errors into warnings.
type::=`string`|`int`| classname|`var`	Types are inferred with ‘VAR’; can be STRING or INT
op::=` + `| `- `| `/ `| `*`
exp ::= INT | String | `(` op exp exp `)`|`new` classname `(` exp* `)``[` variable variable `]`
vardec ::= type variable
STMT::= `Print` exp| type variable `=` exp|   vardec `=` exp
classdef ::= `obj` classname `{` vardec* `}`
program::=[`!`] classdef* stmt*

How to Compile Compiler:

Open the project in eclipse and select to build the project. Make sure the desired starter class is selected. Options are start, lextest, or parsetest

How to Run Compiler:

Open the project in eclipse, place code folder with desired code in the directory eclipse checks for same folder, select run. Test files may also be used instead. Make sure the desired starter class is selected. Options are start, lextest, or parsetest

How to Compile Compiler

kwyjino's People

Contributors

ardee20p avatar glen-roe avatar erinmaldonado avatar

Stargazers

 avatar

Watchers

Kyle Dewey avatar  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.