Crates.io | analog |
lib.rs | analog |
version | 0.0.4 |
source | src |
created_at | 2021-08-11 01:09:44.922953 |
updated_at | 2021-09-21 14:52:16.509968 |
description | Analogous, indented syntax for the Rust programming language. |
homepage | https://github.com/asvln/analog |
repository | https://github.com/asvln/analog |
max_upload_size | |
id | 434541 |
size | 15,964 |
Note:
After experimenting with this in the wild, I have found representing keywords as symbols to be far less readable in large codebases. Additionally, simply adding indentation to the language decreases readability due to the fact that almost everything is an expression.
I will not be adding anything to this specification.
analog
is an analogous, indented syntax for the Rust programming language.
= ^door_open [false; 100]
|pass| 1..101
= ^door pass
|?| ^door <= 100
^door_open[door - 1] !^door_open[door - 1]
^door += pass
|i &is_open| ^door_open.iter().enumerate(
println!!
"Door {} is {}.",
(i + 1),
?? is_open "open" !! "closed"
To learn about the syntax, consult the documentation.
The symbology provides a comprehensive overview of symbolic keywords.
This is free and unencumbered software released into the public domain, as are all contributions.