Giter Site home page Giter Site logo

jade's People

Contributors

ashofthedream avatar

Stargazers

 avatar

Watchers

 avatar

jade's Issues

Lexer parse identifiers as keyword

For code var mapped = map({0, 1}, e -> e) Lexer produces wrong Lexem sequence: Var 1:1, Map 1:5, Identifier{ped} 1:8, Assign 1:12, Map 1:14.

Should be
Var 1:1, Identifier{mapped} 1:5, Assign 1:12, Map 1:14, ...

Map(var, x -> x * 2) doesn't work properly

For source

var seq = {4, 6}
var sequence = map(seq, i -> i * 2))
var pi = 3.1415 * reduce (sequence, 0, x y -> x + y)
print "pi = "
out pi

Actual bytecode

STORE{sequence} 2:5
Map 2:16
LAMBDA{[Multiply 2:32, 2, LOAD{i} 2:30, STORE{seq} 2:20, STORE{i} 2:25]}

Should be

STORE{sequence} 2:5
Map 2:16
LAMBDA{[Multiply 2:32, 2, LOAD{i} 2:30, STORE{i} 2:25]}
LOAD{seq} 2:20

Parser fails on 'var seq = {-1, 2)'

Parser fails on var seq = {-1, 2) with exception:

java.util.NoSuchElementException
	at java.util.ArrayDeque.removeFirst(ArrayDeque.java:280)
	at java.util.ArrayDeque.pop(ArrayDeque.java:517)
	at ashes.of.jade.lang.parser.Parser.parse(Parser.java:162)

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.