jade's People
jade's Issues
Интерпретатор должен выдавать ошибки парсинга и ошибки несоответствия типов
Например складывание чисел и последовательностей, применение map/reduce к числам:
var x = 5 + {0, 100}
map(5, x -> x)
print 5 + 2
out "ahaha it's a string"
Результаты работы программы должны автоматически рассчитываться в фоне и показываться.
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
Remove temporal NodeTypes
public enum NodeType {
/**
* Temporal nodes
*/
Comma,
CurlyOpen,
ParentOpen,
Add parallelism to map/reduce
Shared ForkJoinPool + RecursiveTasks
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)
Немного комментариев к коду
Долгие вычисления не должны приводить к блокировке UI и мешать работе.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.