mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Update doc
This commit is contained in:
parent
efb99a9ed7
commit
98917c2ca4
5 changed files with 36 additions and 35 deletions
26
ideas.md
26
ideas.md
|
|
@ -2,7 +2,7 @@ Various ideas and things that may or may not be done. It's like GitHub issues, b
|
|||
|
||||
Loosely ordered by willingness to implement.
|
||||
|
||||
---
|
||||
# To do or discard before stable release
|
||||
|
||||
Documentation:
|
||||
* language reference
|
||||
|
|
@ -27,16 +27,6 @@ Standard library.
|
|||
|
||||
---
|
||||
|
||||
Server API.
|
||||
|
||||
To be able to use Anselme in another language, it would be nice to be able to access it over some form of IPC.
|
||||
|
||||
No need to bother with networking I think. Just do some stdin/stdout handling, maybe use something like JSON-RPC: https://www.jsonrpc.org/specification (reminder: will need to add some metadata to specify content length, not aware of any streaming json lib in pure Lua - here's a rxi seal of quality library btw: https://github.com/rxi/json.lua). Or just make our own protocol around JSON.
|
||||
Issue: how to represent Anselme values? they will probably contain cycles, needs to access their methods, etc.
|
||||
Probably wise to look into how other do it. LSP: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
|
||||
|
||||
---
|
||||
|
||||
Default arguments and initial variables values should pass the type check associated with the variable / parameter.
|
||||
Issue: dispatch is decided before evaluating default values.
|
||||
|
||||
|
|
@ -50,13 +40,23 @@ Syntax modifications:
|
|||
:a, :b = 5, 6
|
||||
a, b = list!($(l) l[3], l[6])
|
||||
|
||||
Easy by interpreting the left operand as a List.
|
||||
Easy by interpreting the left operand as a List. And also make this work for for loops.
|
||||
|
||||
- regular operator assignments:
|
||||
Could interpret the left operand as a string when it is an identifier, like how _._ works.
|
||||
Would feel good to have less nodes. But because we can doesn't mean we should. Also Assignment is reused in a few other places.
|
||||
|
||||
- remove operators if possible, i'd like to avoid the code looking like a bunch of sigils. Could be replaced by functions: _|>_, _::_
|
||||
* remove operators if possible, i'd like to avoid the code looking like a bunch of sigils. Could be replaced by functions: _|>_, _::_
|
||||
|
||||
# Can be done later
|
||||
|
||||
Server API.
|
||||
|
||||
To be able to use Anselme in another language, it would be nice to be able to access it over some form of IPC.
|
||||
|
||||
No need to bother with networking I think. Just do some stdin/stdout handling, maybe use something like JSON-RPC: https://www.jsonrpc.org/specification (reminder: will need to add some metadata to specify content length, not aware of any streaming json lib in pure Lua - here's a rxi seal of quality library btw: https://github.com/rxi/json.lua). Or just make our own protocol around JSON.
|
||||
Issue: how to represent Anselme values? they will probably contain cycles, needs to access their methods, etc.
|
||||
Probably wise to look into how other do it. LSP: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue