w3st3ry / whiskey Goto Github PK
View Code? Open in Web Editor NEWWhiskey lets you write server-side web applications easily.
License: GNU General Public License v3.0
Whiskey lets you write server-side web applications easily.
License: GNU General Public License v3.0
Python’s repr()
is really good. What about doing something like this one ?
To print pretty tracebacks with exceptions.
Thanks to @pierre-emmanuelJ
https://www.gnu.org/prep/standards/html_node/Errors.html
Add unit tests for it.
12_345_678
for 12,345,678.
Find an alternative for Windows.
Like the GNU function asprintf()
. Currently, they are a lot of calls to sprintf()
, snprintf()
and malloc()
which can be simplified.
Exemple :
while condition:
instructions
>>> 0xfF
<unknown file>:1:3: error: Unexpected 'F'
>>> 0Xff
<unknown file>:1:1: error: Unexpected 'Xff'
>>>
Moreover, floating-point divisions by zero are not handled correctly:
>>> 2 / 0.0
inf.0
It is shorter and more consistent since there is two similar structs named wsky_LexerResult and wsky_ParserResult.
Whiskey
>>> true = 0
tokens:
{type: KEYWORD; string: true}{type: OPERATOR; string: =}{type: INT; string: 0}
whiskey: src/ast.c:677: wsky_AssignmentNode_new: Assertion `wsky_ASTNode_isAssignable(left)' failed.
[1] 10707 abort ./whiskey
To deal with nulls ('\0') in strings.
Like this:
class A (
var staticVariable = 123;
var anotherStaticVariable = {x: x + 1};
);
A.anotherStaticVariable(A.staticVariable); // evals to 124
A.staticVariable = -5;
A.anotherStaticVariable(A.staticVariable); // evals to -4
A.hello = 'hello'; // raises an error, classes are immutable
>>> //
<unknown file>:1:0: error: Unexpected '//'
>>> /**/
<unknown file>:1:0: error: Unexpected '/**/'
>>> /*
<unknown file>:1:0: error: Expected */
>>>
Thanks to @Arignir
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.