macro_rules! symbols {
($($symbols:tt)*) => { ... };
}
Expand description
Creates predefined symbols used throughout the Leo compiler and language. Broadly speaking, any hard-coded string in the compiler should be defined here.
The macro accepts symbols separated by commas,
and a symbol is either specified as a Rust identifier, in which case it is stringify!
ed,
or as ident: "string"
where "string"
is the actual hard-coded string.
The latter case can be used when the hard-coded string is not a valid identifier.
In either case, a const $ident: Symbol
will be created that you can access as sym::$ident
.