Skip to main content

Module huff

Module huff 

Source
Expand description

AST for Huff

Structs§

ArgCall
An argument call
BuiltinFunctionCall
A Builtin Function Call
ConstantDefinition
A Constant Definition
Contract
A Huff Contract Representation
Decorator
A decorator tag
DecoratorArg
A single decorator flag argument, optionally named (max = 30000)
DecoratorFlag
A decorator flag such as calldata("0x01") or store([SLOT], 0x01, at = 0x1000)
ErrorDefinition
An Error Definition
FreeStoragePointer
Free Storage Pointer Unit Struct
Label
A Jump Destination
MacroDefinition
A Macro Definition
MacroInvocation
A Macro Invocation
Statement
A Statement
TableDefinition
A Table Definition

Enums§

BinaryOp
Binary operators for arithmetic and comparison expressions
BuiltinFunctionArg
A Builtin Function Argument
BuiltinFunctionKind
A Builtin Function Kind
ConstVal
A Constant Value
DecoratorValue
The value of a decorator flag argument
Expression
An arithmetic expression node
MacroArg
An argument passed when invoking a macro
StatementType
The Statement Type
TableKind
A Table Kind
UnaryOp
Unary operators for arithmetic and logical expressions

Constants§

RUNTIME_CODESIZE_ARG
Reserved identifier accepted as the argument to __codesize to 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 bf is a __codesize(RUNTIME) call (single identifier arg RUNTIME).

Type Aliases§

FilePath
A File Path
Literal
A contained literal