Expand description
Function and annotation parsing for Shape
This module handles parsing of:
- Function definitions with parameters and return types
- Function parameters with default values
- Annotations (@warmup, @strategy, etc.)
Functionsยง
- parse_
annotation - Parse a single annotation
- parse_
annotations - Parse annotations
- parse_
builtin_ function_ decl - Parse a declaration-only builtin function definition.
- parse_
extern_ native_ function_ def - Parse a native ABI declaration:
extern "C" fn name(args...) -> Ret from "library" [as "symbol"]; - parse_
foreign_ function_ def - Parse a foreign function definition:
fn python analyze(data: DataTable) -> number { ... } - parse_
function_ def - Parse a function definition
- parse_
function_ param - Parse a function parameter
- parse_
where_ clause - Parse a where clause:
where T: Bound1 + Bound2, U: Bound3