mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
6bfe530922
Based on a recent discussion on Slack, and on some related slight terminological changes in the documentation of the Aleo instructions, this commit similarly improves the Leo nomenclature for expressions involving the logical operators. The attribute 'bitwise' for `&` and `|` and `^` has been dropped, since the operations also operate on booleans besides integers. Given that the operation and method names `or` and `xor` for inclusive and exclusive disjunctions (as opposed to `ior` and `xor`), the unqualified 'disjunction' now refers to the inclusive one. The non-strict `&&` and `||` are now called 'conditional' (as done in other languages), and thus the ternary one has been expanded to 'conditional ternary'. This does not change the Leo language; it just improves the nomenclature derived from the grammar. |
||
---|---|---|
.. | ||
src | ||
.gitattributes | ||
abnf-grammar.txt | ||
Cargo.toml | ||
README.md |
# ABNF Grammar
This directory contains both the ABNF grammar for the Leo language and a Rust binary to help convert the ABNF grammar file to a markdown file.
Markdown Conversion Instructions
Assuming you are in the grammar directory,
run cargo run abnf-grammar.txt > README.md
.