Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EarlGray/language-incubator
/ functions
Functions
609 in github.com/EarlGray/language-incubator
⨍
Functions
609
◇
Types & classes
165
↓ 68 callers
Method
get
(&self, objref: JSRef)
js/slothjs/src/heap.rs:93
↓ 41 callers
Method
map_node
(&self, property: &str, mut action: F)
js/slothjs/src/parse/jsonnode.rs:39
↓ 35 callers
Function
drop_cell
fp/secd/secd.c:320
↓ 33 callers
Function
next_token
llvm/kldscp/ast.c:240
↓ 33 callers
Method
to_ref
to_ref() tries to return the underlying object reference, if any. Throws Exception::ReferenceNotAnObject if it's not a reference. Checking if a JSValu
js/slothjs/src/value.rs:128
↓ 32 callers
Function
get_car
fp/secd/secd.c:205
↓ 31 callers
Method
emit
(&mut self, code: &[u8])
bf/bfjc/src/jit.rs:73
↓ 30 callers
Method
as_str
(&self)
js/slothjs/src/ast/expr.rs:183
↓ 28 callers
Function
cell_index
fp/secd/secd.c:179
↓ 27 callers
Method
get_own_value
Tries to get JSValue of the own property `name`. This might call getters of the property.
js/slothjs/src/object.rs:135
↓ 26 callers
Function
not_nil
fp/secd/secd.c:175
↓ 25 callers
Function
list_next
fp/secd/secd.c:192
↓ 25 callers
Method
stringify
stringify() makes everything into a string used for evaluation in a string context. It corresponds to .toString() in JavaScript
js/slothjs/src/value.rs:195
↓ 24 callers
Method
as_str
(&self)
js/slothjs/src/value.rs:20
↓ 24 callers
Method
get_mut
(&mut self, objref: JSRef)
js/slothjs/src/heap.rs:99
↓ 24 callers
Function
new_cons
fp/secd/secd.c:358
↓ 23 callers
Function
share_cell
fp/secd/secd.c:310
↓ 22 callers
Method
arg_value
(&self, index: usize, heap: &mut Heap)
js/slothjs/src/function.rs:48
↓ 22 callers
Method
to_value
This might call getters of the property.
js/slothjs/src/object.rs:546
↓ 21 callers
Method
to_error
(&self)
js/slothjs/src/parse/jsonnode.rs:9
↓ 21 callers
Method
to_string
`to_string()` makes a human-readable string representation of the value: ``` # use serde_json::json; # use slothjs::{JSValue, Heap}; # let mut heap =
js/slothjs/src/value.rs:178
↓ 19 callers
Function
atom_type
fp/secd/secd.c:166
↓ 19 callers
Function
errorVal
llvm/kldscp/codegen.cpp:46
↓ 19 callers
Method
expect_str
Check that the value of `property` is a string equal to `value`. Depends on [`SourceNode::get_str`].
js/slothjs/src/parse/mod.rs:131
↓ 19 callers
Method
newElement
(tag, attrs, ...children)
js/slothjs/wasm/demo/src/index.js:23
↓ 18 callers
Method
alloc
(&mut self, object: JSObject)
js/slothjs/src/heap.rs:109
↓ 18 callers
Method
new
(pages: Pages)
bf/bfjc/src/jit.rs:53
↓ 17 callers
Method
chars
(&self)
js/slothjs/src/value.rs:28
↓ 17 callers
Method
numberify
numberify() tries to make everything into a numeric value for evalation in a numeric context. It is slightly more strict than `+value` in JavaScript:
js/slothjs/src/value.rs:225
↓ 17 callers
Function
pop_stack
fp/secd/secd.c:459
↓ 16 callers
Function
is_cons
fp/secd/secd.c:211
↓ 15 callers
Function
is_nil
fp/secd/secd.c:171
↓ 14 callers
Method
evaluate
A wrapper for `.interpret` that also resolves the result to JSValue
js/slothjs/src/interpret.rs:16
↓ 13 callers
Method
map_opt_node
(&self, property: &str, action: F)
js/slothjs/src/parse/mod.rs:149
↓ 12 callers
Method
as_array
It `self` is an Array, give its underlying storage.
js/slothjs/src/object.rs:102
↓ 12 callers
Function
cell_type
fp/secd/secd.c:158
↓ 12 callers
Method
log
(self, msg)
emu/bcpu/BCPU.py:188
↓ 12 callers
Function
push_stack
fp/secd/secd.c:452
↓ 12 callers
Method
set_hidden
A shortcut for defining a non-enumerable property and setting its value.
js/slothjs/src/object.rs:292
↓ 11 callers
Function
get_cdr
fp/secd/secd.c:208
↓ 11 callers
Function
print_indent
llvm/kldscp/ast.c:650
↓ 11 callers
Function
push_dump
fp/secd/secd.c:475
↓ 10 callers
Method
get_str
(&self, property: &str)
js/slothjs/src/parse/jsonnode.rs:61
↓ 10 callers
Method
interpret
(&self, heap: &mut Heap)
js/slothjs/src/interpret.rs:27
↓ 10 callers
Method
is_empty
(&self)
js/slothjs/src/value.rs:24
↓ 10 callers
Method
local_scope
If there's a local scope, return a `JSRef` to it.
js/slothjs/src/heap.rs:198
↓ 10 callers
Method
map_array
(&self, property: &str, func: F)
js/slothjs/src/parse/jsonnode.rs:68
↓ 10 callers
Method
next
(&mut self)
js/slothjs/src/error.rs:213
↓ 10 callers
Function
parse_expr
llvm/kldscp/ast.c:484
↓ 10 callers
Method
set_property
If `name` is a number and `self` is an Array, just set the array elemnt to `value`. Otherwise: if the own property `name` does not exist, create it wi
js/slothjs/src/object.rs:261
↓ 9 callers
Method
set_system
are these shortcuts a good idea? A shortcut for `define_own_property(Access::NONE)` and assigning the value.
js/slothjs/src/object.rs:284
↓ 9 callers
Method
to_value
(&self)
js/slothjs/src/ast/expr.rs:120
↓ 8 callers
Method
boolify
boolify() treats everythings as a truthy value. ES5: ToBoolean
js/slothjs/src/value.rs:249
↓ 8 callers
Function
codegen
llvm/kldscp/codegen.cpp:313
↓ 8 callers
Method
emit_u32
(&mut self, val: u32)
bf/bfjc/src/jit.rs:81
↓ 8 callers
Function
list_head
fp/secd/secd.c:201
↓ 8 callers
Function
printc
fp/secd/secd.c:265
↓ 8 callers
Function
symname
fp/secd/secd.c:184
↓ 7 callers
Method
arg_as_number
(&self, argnum: usize, heap: &Heap)
js/slothjs/src/function.rs:55
↓ 7 callers
Function
astmalloc
llvm/kldscp/ast.c:280
↓ 7 callers
Function
cons
(hd, tl)
fp/secdjs/secd.js:32
↓ 7 callers
Function
lit
make a [`Literal`] from `value` - `lit(2)` is `2` in JavaScript - `lit(true)` is `true` in JavaScript - ... DO NOT USE this for arrays and objects,
js/slothjs/src/ast/expr.rs:351
↓ 7 callers
Method
ref_to_string
(&mut self, href: JSRef)
js/slothjs/src/builtin/string.rs:39
↓ 7 callers
Method
reg_at
(command, pos, linenum)
emu/bcpu/BCPU.py:126
↓ 7 callers
Method
scope_mut
(&mut self)
js/slothjs/src/heap.rs:210
↓ 7 callers
Function
to_bool
fp/secd/secd.c:556
↓ 7 callers
Method
to_error
(&self)
js/slothjs/src/parse/heapnode.rs:58
↓ 6 callers
Method
alloc_func
(&mut self, func: HostFn)
js/slothjs/src/heap.rs:115
↓ 6 callers
Method
execute
Given a `func_ref` to a closure or a native call and a set of arguments, executes the function. `this_ref` is bound as `this`.
js/slothjs/src/heap.rs:365
↓ 6 callers
Method
get_bool
(&self, property: &str)
js/slothjs/src/parse/jsonnode.rs:52
↓ 6 callers
Function
id
make an [`Identifier`] from `name` (JS: `name`)
js/slothjs/src/ast/expr.rs:359
↓ 6 callers
Method
init_class
(&mut self, proto: JSRef, class: &HostClass)
js/slothjs/src/heap.rs:120
↓ 6 callers
Function
nil
()
fp/secdjs/secd.js:33
↓ 6 callers
Function
pop_control
fp/secd/secd.c:471
↓ 6 callers
Function
print_cell
fp/secd/secd.c:233
↓ 5 callers
Function
arithm_op
fp/secd/secd.c:628
↓ 5 callers
Function
cell_secd
fp/secd/secd.c:162
↓ 5 callers
Function
codegenFunDef
llvm/kldscp/codegen.cpp:278
↓ 5 callers
Method
evaluate
A shortcut for `interpretable.evaluate(&mut heap)`.
js/slothjs/src/heap.rs:359
↓ 5 callers
Function
list_append
llvm/kldscp/ast.c:39
↓ 5 callers
Method
lookup_value
Check own and all inherited properties for `name` and returns the first found value. ES5: \[\[Get\]\], None corresponds to `undefined`
js/slothjs/src/object.rs:173
↓ 5 callers
Function
new_clone
fp/secd/secd.c:383
↓ 5 callers
Function
new_symbol
fp/secd/secd.c:374
↓ 5 callers
Function
nextchar
fp/secd/secd.c:1305
↓ 5 callers
Function
parse_error
llvm/kldscp/ast.c:338
↓ 5 callers
Function
parseinit
llvm/kldscp/ast.c:267
↓ 5 callers
Function
pop_free
fp/secd/secd.c:337
↓ 5 callers
Method
property
(&self, name: &str)
js/slothjs/src/parse/heapnode.rs:41
↓ 5 callers
Method
set
- if own property `name` does not exist, create it with the given `content` and `access`. - if `name` is a number and `self` is an Array, assign value
js/slothjs/src/object.rs:251
↓ 5 callers
Method
set_nonconf
A shortcut for defining a non-configurable property and setting its value.
js/slothjs/src/object.rs:300
↓ 5 callers
Method
to_primitive
It's roughly `Object.valueOf(self)`
js/slothjs/src/object.rs:91
↓ 5 callers
Method
with_name
(mut self, name: JSString)
js/slothjs/src/function.rs:43
↓ 5 callers
Method
with_this
(mut self, this_ref: JSRef)
js/slothjs/src/function.rs:38
↓ 4 callers
Function
add
make a [`BinaryExpression`] (`left`, [`BinOp::Plus`], `right`)
js/slothjs/src/ast/expr.rs:415
↓ 4 callers
Function
binop_precedence
llvm/kldscp/ast.c:110
↓ 4 callers
Method
call
(self, call: CallContext, heap: &mut Heap)
js/slothjs/src/function.rs:83
↓ 4 callers
Method
enumerable
(&self)
js/slothjs/src/object.rs:522
↓ 4 callers
Function
free_ast
llvm/kldscp/ast.c:727
↓ 4 callers
Function
free_cell
fp/secd/secd.c:416
↓ 4 callers
Function
init_parser
fp/secd/secd.c:1287
next →
1–100 of 609, ranked by callers