1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00
Commit graph

11 commits

Author SHA1 Message Date
98917c2ca4 Update doc 2024-01-05 01:52:21 +01:00
dac5b74fa6 Add stdlib functions from anselme v1 2024-01-04 20:22:18 +01:00
581c60048d Improve translation template generation, only add the source context if needed 2024-01-04 19:16:22 +01:00
a46ac380e8 Only serialize referenced upvalues in function serialization 2024-01-03 17:59:44 +01:00
ba1824a904 Operator priority cleanup 2024-01-02 17:25:10 +01:00
15f29e3bce Undefine _ in attached block 2024-01-02 14:35:18 +01:00
18dd3ad6bd Remove -> operator 2024-01-01 17:51:33 +01:00
9e73269cda Update doc 2023-12-31 19:43:44 +01:00
e2ec105a4b Update readme 2023-12-30 02:09:24 +01:00
9acde377c2 Update docs 2023-12-28 17:42:14 +01:00
fe351b5ca4 Anselme v2.0.0-alpha rewrite
Woke up and felt like changing a couple things. It's actually been worked on for a while, little at a time...

The goal was to make the language and implementation much simpler. Well I don't know if it really ended up being simpler but it sure is more robust.

Main changes:
* proper first class functions and closures supports! proper scoping rules! no more namespace shenanigans!
* everything is an expression, no more statements! make the implementation both simpler and more complex, but it's much more consistent now! the syntax has massively changed as a result though.
* much more organized and easy to modify codebase: one file for each AST node, no more random fields or behavior set by some random node exceptionally, everything should now follow the same API defined in ast.abstract.Node

Every foundational feature should be implemented right now. The vast majority of things that were possible in v2 are possible now; some things aren't, but that's usually because v2 is a bit more sane.
The main missing things before a proper release are tests and documentation. There's a few other things that might be implemented later, see the ideas.md file.
2023-12-22 13:25:28 +01:00