Git Product home page Git Product logo

d7050e's People

Contributors

mtborg avatar

Watchers

 avatar

d7050e's Issues

Strange behavior using negative signs

Seems to be some problem with parsing negative signs in expressions.
foo(n-1)
causes some problems to fail, complaining aboout unrecognized token -1. Workaround is to put spaces around the '-' sign. Problem goes away when removing the possibility for numbers to parsed with a leading '-' sign.

Rename types to to type

At the moment this is not possible as lalrpop can't seem to handle raw string literals, i.e.
use crate::r#type::Type
fails.

Figure out a nice way to deal with negatives

At the moment numbers are not allowed to be negative. This is easily fixed by allowing for a minus sign in the number-regex, although this would allow for expressions such as
let a = 2 + -2;
which does not look very nice.

Incorrect identifier regex

The regex results in a false negative for the case when the identifier starts when an underscore and then a number (which should be allowed). Have not tested though.

Fix failing test

Some tests fail because what they test hasn't been implemented yet.

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.