GithubHelp home page GithubHelp logo

avajava's People

Contributors

bku14 avatar cf7 avatar jsannyjr avatar ronaldooeee avatar rtoal avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

avajava's Issues

Implement the optimizer

working on it...

The optimizer needs to implemented across all entities. Also needs a good number of tests.
Current Milestones (until we can think of more):
-constant folding (in progress)
-unreachable code elimination
-dead code elimination
-branch elimination
-tail recursion (unfolding?)

Assignment typing

We have decided that we want type inference, but what about changing the type of the VarDecl later on?
Do we want to make the types of VarDecl's unchangeable, or should they be changeable if a new type is assigned to them?

var x = 10;
x = true; // should this be valid? Or should it return an assignment error?

Classes?

Should we implement classes? This issue is tied to dot operators as well.

If we had classes, then we could call functions using the dot operator:

Option 1

var x = [ 1, 2, 3, 4, 5 ];
x.length;

Otherwise, we would have to pass in the thing we are performing the function on.

Option 2

var x = [ 1, 2, 3, 4, 5 ];
length(x);

Option 2 is essentially already implemented for us. We just need to add two lines of code in one file.
Option 1 would require us to implement a whole new feature of having Classes, which wouldn't be that much, but do we have time for that?

Homework1 issues

Make the scanner work and implement tests

On the readme

  • You need a logo (that was required for homework 1)
  • I don't see the list of example programs

FunctionBlock syntax

Right now that last statement of every function block requires a semicolon. Then the functionExp terminates with an 'end' keyword.

Do we still want this to be our syntax? The coder would have to know that the very last statement of every Function must have a semicolon.

Implement Built-Ins

We also need to implement some built-in functions.

From what we learned in class, it seems like we will need to put it somewhere in the Analyzer.js file and the initialContext. They need to be stored in the symbolTable of the top-level parent context.

Write more issues

I don't understand how a term project with a fair number of committers had only one issue so far and zero pull requests.

Tests for the Generator

Need to figure out how to test all of the code being generated.
Right now we are generating just fine and manually checking each set of generated code by copying and pasting into the node interpreter and seeing if it runs and ends up with the results we were looking for.

Need a way to programmatically check generated code. But how do we do that without hardcoding each end result?

Anyone have any ideas?

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.