#language #syntax #indented #analogous

yanked analog

Analogous, indented syntax for the Rust programming language

0.0.4 Sep 21, 2021
0.0.3 Sep 18, 2021
0.0.2 Sep 18, 2021
0.0.1 Sep 16, 2021
0.0.0 Aug 11, 2021

#6 in #indented

Unlicense

7KB

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

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"

Documentation

To learn about the syntax, consult the documentation.

The symbology provides a comprehensive overview of symbolic keywords.

Contributing

This is free and unencumbered software released into the public domain, as are all contributions.

No runtime deps