ueyudiud / alopecurus-demo Goto Github PK
View Code? Open in Web Editor NEWLight-weight script language.
License: MIT License
Light-weight script language.
License: MIT License
The instruction 'unbox' will throw an error when value is not a tuple, which is not expected for pattern matching.
The features in 0.1.
Now I added automatic configuration to identify compiling environment. It should support Linux and MacOS, however I cannot test the compiled result in these OS. They should be tested in the future.
Moreover, should the program should support more OS?
In old version, user should write [ 'foo': 1, 'bar': 2 ]
, which seems inconvenient, and use variable as key in table literal is rarely.
So, the literal like [ foo: 1, bar: 2 ]
will be used to instead [ 'foo': 1, 'bar': 2 ]
.
The some kinds of expression with unboxing operation, e.g. x + y...
or x... + y
, cannot be compiled.
Let VM support hook function.
Matching pattern can not group pattern in right way.
Before 'new' in Alopecurus is just a syntactic sugar that like following code: new Type(p1, p2)
is equivalent to Type.__new([:], p1, p2)
. However, this way ignored that some of type is not inherit from 'table' type and the meta table of new object is not its type.
Here is the TODO list of following version:
Some of expression may fail to match the string which should be match. For example, code
println('(ab?)b'->match 'ab')
will show false
, but it should show true
.
The program alo crash occasionally when typed in a = [1: 2, 2: 3, 3: 4]
, which is a valid assignment statement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.