Skip to main content

Crate pine_interpreter

Crate pine_interpreter 

Source

Structs§

Builtin
A callable builtin together with the arguments it accepts, so semantic analysis can reject a bad call without running it. Both come from the same #[derive(BuiltinFunction)], so they cannot drift apart.
BuiltinSignature
The parameters a builtin accepts, in positional order.
FunctionCallArgs
Container for function call arguments including type parameters
Interpreter
The interpreter executes a program with a given bar
Param
One parameter of a builtin.
Series
Represents a time series with an identifier and current value

Enums§

EvaluatedArg
Evaluated function argument
Num
A Pine number: either an int or a float.
ParamType
The kind of value a parameter accepts, taken from the builtin’s field type.
RuntimeError
Value
Value types in the interpreter

Traits§

LibraryLoader
Loads the source of a library by its import path.

Type Aliases§

BuiltinFn
Type signature for builtin functions (can be function pointers or closures)