leo/docs
Alessandro Coglio 29f797efae [ABNF] Add (first draft of) input grammar.
This is the (sub)grammar for input files. It is an initial draft, written based
on the Notion page 'Leo Input File Doc/Spec'. This should be compared with the
currently implemented parser of input (i.e. .in) files.

As the Leo Reference will describe (that part has not been written yet), the
input grammar is based on the lexical grammar, i.e. an input file consists of
tokens, comments, and whitespace. However, only some tokens (compared to the
syntactic grammar for Leo code files) are used, namely the ones reachable from
the `input-file` nonterminal.

Currently (i.e. im this initial version of Leo) `input-type` is (any) `type` and
`input-expression` is just a `literal`, but these may evolve as we extend the
language (e.g. we'll probably disallow circuit types and allow tuple and array
constructions). The intent is that `input-type` will be a subset of `type` and
that `input-expression` will be a subset of `expression`.
2022-04-15 19:54:41 -07:00
..
error-guides merge testnet3 2022-02-28 09:42:37 -08:00
grammar [ABNF] Add (first draft of) input grammar. 2022-04-15 19:54:41 -07:00
rfc Merge pull request #1414 from AleoHQ/rfc/static-circuit-members 2021-10-27 21:46:34 -07:00
compiler-phases.pdf adds compiler phases pdf 2021-08-05 20:17:10 +03:00