mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
64307d075c
This adds shift (`<<` `>>`) and bitwise logical (`&` `|` `^`) operators. Their precedence is between the additive and ordering operations, in this order (higher to lower): - ... others, to additive - `<<` and `>>` - `&` - `|` - `^` - ... others, from ordering This is consistent with Rust, but not with C and Java, both of which make the bitwise logical operators lower-precedence than equalities. The previous ABNF rule names for `conjunctive-expression` and `disjunctive-expression` have been renamed to be more consistent with the newly added ones. Also, the rule names "abbreviate" 'conjunctive' and 'disjunctive' with 'and' and 'or', otherwise the names were a bit too long. |
||
---|---|---|
.. | ||
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
.