GithubHelp home page GithubHelp logo

tigpiler's People

Contributors

cyyuen avatar parkerk avatar yangsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tigpiler's Issues

Lexer Bug

Need to handle illegal integers, e.g. var a:=5a

TypeChecker - type not defined errors

It is throwing errors on situations that arrise due to uncorrected
errors from previous projects. For example, the case on the
typechecker project, where your typechecker is throwing incorrects
"type not defined errors" in cases like "if(10>5)"

Lexer - Start pos of String is wrong

The ending position of the string is used as the starting position.

The following is a simple tiger program

"string"

The output should be

STRING(string)     2
EOF   10

instead of

STRING(string)     9
EOF   10

For Loop Bug in Translate

"I have also found a bug in the for loop in your translate module
(part of IR/Frame project) that I didn't report to you earlier. The
for loop is jumping to an incorrect label such that the conditions are
not being tested."

recursive and mutually recursive functions

Afterwards, check also recursive and mutually recursive functions. It
seems there is also a labeling error. At the moment they are throwing
uncaught exception errors

TypeChecker - Returning Values

  • Certain expressions should not return any value at all (see page
    516). For example a:=(if (5>4) then 3) should return an error

TypeChecker - If/Then

  • For "if then else" expressions the types of "then" and "else" values
    must be the same

TypeChecker - If/While

If, while, ... expressions are returning errors when not supposed to,
e.g. "if(5>3)..." returns integer required error.

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.