Modules§
Macros§
- consts 🔒A helper for
symbols
defined below. The macro’s job is to bind conveniently usableconst
items to the symbol names provided. For example, withsymbol { a, b }
you’d havesym::a
andsym::b
. - strings 🔒A helper for
symbols
defined below. The macro’s job is to merge all the hard-coded strings into a single array of strings. The strategy applied is push-down accumulation. - symbols 🔒Creates predefined symbols used throughout the Leo compiler and language. Broadly speaking, any hard-coded string in the compiler should be defined here.
Structs§
- The inner interner. This construction is used to get interior mutability in
Interner
. - Interner 🔒A symbol-to-string interner.
- All the globals for a compiler sessions.
- An interned string.
Enums§
- An interned string, either prefilled “at compile time” (
Static
), or created at runtime (Owned
).
Constants§
Statics§
Functions§
- Creates the session globals and then runs the closure
f
. - Gives access to read or modify the session globals in
f
.