Expand description
AST for Huff
Structs§
- ArgCall
- An argument call
- Builtin
Function Call - A Builtin Function Call
- Constant
Definition - A Constant Definition
- Contract
- A Huff Contract Representation
- Decorator
- A decorator tag
- Decorator
Arg - A single decorator flag argument, optionally named (
max = 30000) - Decorator
Flag - A decorator flag such as
calldata("0x01")orstore([SLOT], 0x01, at = 0x1000) - Error
Definition - An Error Definition
- Free
Storage Pointer - Free Storage Pointer Unit Struct
- Label
- A Jump Destination
- Macro
Definition - A Macro Definition
- Macro
Invocation - A Macro Invocation
- Statement
- A Statement
- Table
Definition - A Table Definition
Enums§
- Binary
Op - Binary operators for arithmetic and comparison expressions
- Builtin
Function Arg - A Builtin Function Argument
- Builtin
Function Kind - A Builtin Function Kind
- Const
Val - A Constant Value
- Decorator
Value - The value of a decorator flag argument
- Expression
- An arithmetic expression node
- Macro
Arg - An argument passed when invoking a macro
- Statement
Type - The Statement Type
- Table
Kind - A Table Kind
- UnaryOp
- Unary operators for arithmetic and logical expressions
Constants§
- RUNTIME_
CODESIZE_ ARG - Reserved identifier accepted as the argument to
__codesizeto query the byte length of the runtime section (MAIN body + appended runtime tables). Disallowed as a user macro name.
Functions§
- is_
runtime_ codesize - Returns true if
bfis a__codesize(RUNTIME)call (single identifier argRUNTIME).