leo/docs/grammar
Alessandro Coglio 6bfe530922 [ABNF] Improve some rule names.
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.
2022-07-04 15:45:11 -07:00
..
src restructure compiler and delete unused code 2022-02-22 15:12:52 -08:00
.gitattributes [ABNF] Simplify .gitattribute file. 2022-05-28 18:35:03 -07:00
abnf-grammar.txt [ABNF] Improve some rule names. 2022-07-04 15:45:11 -07:00
Cargo.toml restructure compiler and delete unused code 2022-02-22 15:12:52 -08:00
README.md [ABNF] Minor README fixes and improvements. 2022-05-28 18:47:27 -07:00

# 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.