Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dev-formata-io/stof
/ functions
Functions
1,484 in github.com/dev-formata-io/stof
⨍
Functions
1,484
◇
Types & classes
130
↳
Endpoints
1
↓ 1,284 callers
Method
push
Push a new scope to this table.
src/runtime/table.rs:30
↓ 1,217 callers
Method
clone
(&self)
src/model/mod.rs:109
↓ 833 callers
Function
default
()
src/model/sid.rs:237
↓ 720 callers
Method
pop
Pop a scope from this table.
src/runtime/table.rs:42
↓ 370 callers
Method
clone
(&self)
src/runtime/value.rs:85
↓ 356 callers
Method
insert_libfunc
Insert a library function to this graph. Will replace one with the same name and lib if it already exists.
src/model/graph.rs:285
↓ 263 callers
Method
len
(&self)
src/model/sid.rs:54
↓ 242 callers
Method
to_string
To string.
src/runtime/units.rs:344
↓ 237 callers
Method
insert
Insert a variable into this scope. Will create a new scope if one doesn't exist.
src/runtime/table.rs:56
↓ 237 callers
Method
parse
Parse some Stof into this document.
src/py/mod.rs:168
↓ 205 callers
Method
deref
(&self)
src/model/sid.rs:95
↓ 136 callers
Method
as_str
(&self)
src/model/sid.rs:48
↓ 117 callers
Function
value
Parse a field value.
src/parser/field.rs:121
↓ 87 callers
Method
try_obj
Try extracting an obj value.
src/runtime/value.rs:739
↓ 85 callers
Method
is_empty
(&self)
src/model/sid.rs:59
↓ 83 callers
Method
deref
(&self)
src/runtime/value.rs:39
↓ 70 callers
Method
deref_mut
(&mut self)
src/runtime/value.rs:44
↓ 68 callers
Method
as_ref
(&self)
src/model/sid.rs:101
↓ 63 callers
Method
node
Get a node.
src/model/sref.rs:33
↓ 53 callers
Method
int
Get integer portion of this number.
src/runtime/num.rs:365
↓ 53 callers
Function
whitespace
Whitespace.
src/parser/whitespace.rs:46
↓ 50 callers
Method
try_num
Try getting a number value.
src/runtime/value.rs:891
↓ 49 callers
Function
val_to_py
(py: Python<'_>, val: Val)
src/py/value.rs:274
↓ 44 callers
Method
round
Round.
src/runtime/num.rs:1642
↓ 43 callers
Method
remove
Remove a variable.
src/runtime/table.rs:135
↓ 42 callers
Method
self_ptr
Get the current self ptr.
src/runtime/proc.rs:89
↓ 41 callers
Method
get
Get data value.
src/model/data.rs:192
↓ 41 callers
Method
try_data_or_func
Try getting a data reference value.
src/runtime/value.rs:784
↓ 40 callers
Method
cmp
(&self, other: &Self)
src/runtime/value.rs:80
↓ 37 callers
Method
join
Join this path into a single string with a separator.
src/model/spath.rs:84
↓ 37 callers
Method
node_exists
Node exists at this ref?
src/model/sref.rs:27
↓ 35 callers
Method
duplicate
Duplicate this value, taking into account the reference setting & value type. If by_ref is set to true, then the value is forced to duplicate by refer
src/runtime/value.rs:56
↓ 33 callers
Method
ensure_dynamic
Ensure dynamic image from raw image.
src/model/formats/image/image.rs:87
↓ 33 callers
Method
print
Print this number.
src/runtime/num.rs:249
↓ 32 callers
Method
insert_stof_data
Insert Stof data. Will create a Data wrapper (optionally provide ID/ref). Name needs to be unique for the node. For an anonymous option, create an ID
src/model/graph.rs:793
↓ 31 callers
Method
is_angle
Is angle?
src/runtime/num.rs:294
↓ 30 callers
Method
append
Append instructions.
src/runtime/instruction.rs:452
↓ 30 callers
Method
spec_type
Get the complex type for this value. This only applies to data and objects, otherwise it is the same as gen_type.
src/runtime/value.rs:1123
↓ 29 callers
Method
map
Is map value?
src/runtime/value.rs:821
↓ 29 callers
Method
truthy
Truthy?
src/runtime/num.rs:267
↓ 27 callers
Method
push_line
Push a line.
src/model/formats/stof/export.rs:252
↓ 27 callers
Method
remove
Remove file helper.
src/model/formats/pkg/mod.rs:40
↓ 26 callers
Method
ensure_main_root
Ensure main root. Make sure the main root exists in this graph. Will create a root node named "root" if not found.
src/model/graph.rs:141
↓ 26 callers
Method
node_path
Node path - either IDs or names.
src/model/sref.rs:139
↓ 25 callers
Method
data_nodes
All of the nodes that reference this data.
src/model/sref.rs:240
↓ 25 callers
Method
remove_data
Remove data.
src/model/node.rs:287
↓ 24 callers
Method
empty
Is empty value (null or void)?
src/runtime/value.rs:634
↓ 24 callers
Function
expr
Parse an expression.
src/parser/expr/mod.rs:32
↓ 24 callers
Method
to_string
(&self)
src/runtime/value.rs:575
↓ 23 callers
Method
float
Get float, optionally converted to some units.
src/runtime/num.rs:374
↓ 23 callers
Function
from_str
()
src/parser/types.rs:186
↓ 23 callers
Function
math_expr
Parse a math expr. Logical ops are evaluated last (&&, ||) left to right. Then comparison ops (==, !=, <=, >=, >, <) left to right. Then addition and
src/parser/expr/math.rs:29
↓ 23 callers
Method
try_func
Try extracting an func value.
src/runtime/value.rs:757
↓ 21 callers
Method
main_root
Main root. A root node named "root".
src/model/graph.rs:120
↓ 20 callers
Method
clear
Clear this table.
src/runtime/table.rs:36
↓ 20 callers
Method
get
Get a variable from this symbol table. Will find the closest if it exists.
src/runtime/table.rs:75
↓ 20 callers
Method
load_format
Load a format.
src/model/graph.rs:1141
↓ 20 callers
Method
log
Log.
src/runtime/num.rs:1708
↓ 19 callers
Method
insert_libdoc
Insert library docs.
src/model/graph.rs:279
↓ 19 callers
Function
passStringToWasm0
(arg, malloc, realloc)
web/pkg/stof.js:151
↓ 18 callers
Method
node_mut
Get a mutable node.
src/model/sref.rs:39
↓ 18 callers
Method
set
* Set a value onto this graph using the Stof runtime. * @param {string} path * @param {any} value * @param {any} start * @returns
web/pkg/stof.js:415
↓ 17 callers
Method
data
Get data.
src/model/sref.rs:228
↓ 17 callers
Method
ensure_named_nodes
Create nodes from a named path. Param fields - if creating a new object to match the path, should it be a field (only applies to nodes that don't exis
src/model/graph.rs:417
↓ 16 callers
Method
call
* Call a specific Stof function by path/name.
web/doc.ts:278
↓ 16 callers
Method
data_mut
Get a mutable data.
src/model/sref.rs:234
↓ 16 callers
Function
handleError
(f, args)
web/pkg/stof.js:110
↓ 16 callers
Function
number
Parse a number value (consumes whitespace up front).
src/parser/number.rs:22
↓ 15 callers
Method
get_mut
Get mutable data value.
src/model/data.rs:202
↓ 15 callers
Function
pop_ms_as_datetime
Parse a ms timestamp from the stack into a chrono UTC DateTime.
src/model/libraries/time/mod.rs:101
↓ 15 callers
Method
push_running_proc
Push a process to this runtime.
src/runtime/runtime.rs:108
↓ 15 callers
Method
push_text
Push text.
src/model/formats/stof/export.rs:262
↓ 15 callers
Method
save_image
Save dynamic image to raw image.
src/model/formats/image/image.rs:103
↓ 14 callers
Method
clone
(&self)
src/runtime/instruction.rs:503
↓ 14 callers
Function
to_graph_value
(js: JsValue, doc: &Graph)
src/js/value.rs:23
↓ 13 callers
Method
rt_type_of
(&self, graph: &Graph)
src/runtime/types.rs:352
↓ 12 callers
Method
equal
Runtime equality?
src/runtime/value.rs:1755
↓ 12 callers
Method
insert_child
Insert a child node directly.
src/model/graph.rs:340
↓ 12 callers
Method
is_undefined
Is undefined?
src/runtime/units.rs:433
↓ 12 callers
Method
push
Push an instruction.
src/runtime/instruction.rs:458
↓ 11 callers
Method
abs
Abs.
src/runtime/num.rs:1221
↓ 11 callers
Method
as_dyn_any
(&self)
src/runtime/instruction.rs:484
↓ 11 callers
Method
data_name
Data name.
src/model/sref.rs:270
↓ 11 callers
Method
get_format
Get a format.
src/model/graph.rs:1149
↓ 11 callers
Function
isLikeNone
(x)
web/pkg/stof.js:119
↓ 11 callers
Method
is_field
Is this node also a field?
src/model/node.rs:82
↓ 11 callers
Function
py_any_to_val
(py: &Bound<'_, PyAny>, graph: &Graph)
src/py/value.rs:23
↓ 11 callers
Method
self_ptr
Get the current self pointer.
src/parser/context.rs:174
↓ 10 callers
Method
child_of
Is this node a child of (or the same as) another node?
src/model/sref.rs:93
↓ 10 callers
Method
decode
Decode a URL encoded string.
src/model/formats/urlencoded/encoded.rs:34
↓ 10 callers
Method
forward_to
Backup to a specific tag in these instructions.
src/runtime/instruction.rs:151
↓ 10 callers
Method
gen_type
Gen type for this number.
src/runtime/num.rs:231
↓ 10 callers
Method
get
* Get a value from this graph using the Stof runtime (all language features supported). * @param {string} path * @param {any} start * @
web/pkg/stof.js:393
↓ 10 callers
Function
getDataViewMemory0
()
web/pkg/stof.js:90
↓ 10 callers
Method
lib
(library: string, name: string, func: Function, is_async?: boolean)
web/doc.ts:247
↓ 10 callers
Method
null
Is null value?
src/runtime/value.rs:625
↓ 10 callers
Method
remove_node
Remove a node from the graph. May or may not remove data completely, depending on where the data is referenced. Note: if you pass gc and also are mana
src/model/graph.rs:442
↓ 10 callers
Method
stack_var
Stack var from this var (LoadVariable). This is the variable that gets loaded onto the stack. Not always a direct clone because of value types.
src/runtime/variable.rs:109
↓ 10 callers
Function
takeFromExternrefTable0
(idx)
web/pkg/stof.js:188
↓ 10 callers
Method
truthy
Is this value truthy?
src/runtime/value.rs:1669
next →
1–100 of 1,484, ranked by callers