leo/docs
Alessandro Coglio ce2d8f8a51 [ABNF] Add annotations.
This is to match the recent introduction of the `@program` annotation for
external functions (i.e. functions that may be called externally, passing to
them inputs through the input files).

This PR adds not just that annotation, but a more general notion of annotation
as a new kind of token of the form `@<identifier>`, and with the ability to
precede each function declaration with zero or more such annotations.

The fact that it has been added as a token to the lexical grammar, means that
there cannot be any whitespace or comments between the `@` and the identifier.
If that is undesired, we can add it to the syntactic grammar instead, defining
an annotation as consisting of the (new) symbol token `@` followed by an
identifier token.

We can of course extend annotations with arguments at some point, if needed.
2022-08-09 20:45:54 -07:00
..
error-guides/parser remove unused errors 2022-07-20 20:19:00 +02:00
grammar [ABNF] Add annotations. 2022-08-09 20:45:54 -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
operators.md Create operators.md 2022-08-03 12:04:39 -07:00