I am proud to announce the release of the second alpha release of PineDL.
This release is mostly incremental. However, it is already a significant improvement over the last one.
Here are some of the changes:
1. The parser is now Antlr-based. I am hoping this will help maintainability and simplify development of the compiler.
2. Variable declarations
3. "While" loops
4. Function expressions
5. Postfix Increment expressions
Regarding variable declarations, the following syntax is used:
var x, y, z = 1, 2, 3;
Function expressions take the following syntax:
function(args) { return 123; }
Note that function expressions MUST have blocks as statements. function() return 1; is not supported.
Finally, postfix increment/decrement expressions are currently the only way to change the value of a variable. Prefix increment/decrement is not yet supported.
You can download the binary or (if you're curious) the source code. If you find bugs, feel free to report them to the bug tracker.
No comments:
Post a Comment