Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diatom-lang/diatom
/ functions
Functions
290 in github.com/diatom-lang/diatom
⨍
Functions
290
◇
Types & classes
108
↓ 89 callers
Method
next
(&mut self)
diatom-core/src/frontend/util.rs:55
↓ 68 callers
Method
iter
(&self)
diatom-core/src/frontend/lexer/mod.rs:24
↓ 67 callers
Method
push
Return true if value is valid
diatom-core/src/interpreter/ffi/obj_mut.rs:92
↓ 64 callers
Method
push
(&mut self, token: (Token, Loc))
diatom-core/src/frontend/lexer/mod.rs:20
↓ 56 callers
Method
read_reg
(&self, n: usize)
diatom-core/src/gc/mod.rs:259
↓ 52 callers
Function
test_str
(code: &str, should_fail: bool)
diatom-core/src/frontend/parser/tests/mod.rs:3
↓ 50 callers
Method
loc
(&self)
diatom-core/src/frontend/util.rs:103
↓ 48 callers
Method
insert
Insert value at index, return false if idx out of bound or value is not valid
diatom-core/src/interpreter/ffi/obj_mut.rs:127
↓ 44 callers
Function
get_type
(reg: &Reg, gc: &Gc<Buffer>)
diatom-core/src/vm/op.rs:12
↓ 40 callers
Method
len
(&self)
diatom-core/src/gc/pool.rs:18
↓ 33 callers
Method
add_diagnostic
(&mut self, error: ErrorCode, loc: Loc)
diatom-core/src/frontend/parser/mod.rs:1177
↓ 33 callers
Function
test_helper
(s: &str, i: i64, should_fail: bool)
diatom-core/src/frontend/lexer/mod.rs:527
↓ 32 callers
Method
get_current_func
(&mut self)
diatom-core/src/interpreter/mod.rs:1717
↓ 32 callers
Method
write_reg
Write reg to id Automatically extend reg file size if n > regs.len()
diatom-core/src/gc/mod.rs:300
↓ 30 callers
Method
declare_intermediate
(&mut self)
diatom-core/src/interpreter/register_table.rs:110
↓ 30 callers
Method
get_current_insts
(&mut self)
diatom-core/src/interpreter/mod.rs:1722
↓ 27 callers
Method
free_intermediate
(&mut self, id: usize)
diatom-core/src/interpreter/register_table.rs:117
↓ 27 callers
Method
get_loc
(&self)
diatom-core/src/frontend/parser/ast.rs:152
↓ 27 callers
Method
peek
Return next character. Useful to lookahead.
diatom-core/src/frontend/util.rs:28
↓ 24 callers
Method
as_ref
(&self)
diatom-core/src/file_manager/util.rs:62
↓ 24 callers
Method
len
(&self)
diatom-core/src/interpreter/ffi/obj.rs:50
↓ 13 callers
Method
compile_expr
( &mut self, expr: &Expr, discard: bool, target: Option<usize>, )
diatom-core/src/interpreter/mod.rs:865
↓ 13 callers
Method
get_str_unchecked
(&self, id: usize)
diatom-core/src/gc/mod.rs:247
↓ 13 callers
Method
offset
Return current offset
diatom-core/src/frontend/util.rs:43
↓ 12 callers
Method
get
(&self, idx: usize)
diatom-core/src/gc/pool.rs:34
↓ 12 callers
Method
get_obj_unchecked
(&self, id: usize)
diatom-core/src/gc/mod.rs:235
↓ 12 callers
Method
get_unchecked_mut
(&mut self, idx: usize)
diatom-core/src/gc/pool.rs:60
↓ 11 callers
Method
consume_expr
Consume an expression not_take_on_error: do not consume a specific token type if an UnexpectedToken is encountered. This is used to prevent multiple
diatom-core/src/frontend/parser/mod.rs:887
↓ 10 callers
Method
get_or_alloc_constant
(&mut self, constant: ConstantValue)
diatom-core/src/interpreter/register_table.rs:123
↓ 10 callers
Method
scan_expr
(&mut self, expr: &Expr)
diatom-core/src/interpreter/scanner/const_scanner.rs:11
↓ 9 callers
Method
get_unchecked
(&self, idx: usize)
diatom-core/src/gc/pool.rs:55
↓ 8 callers
Method
alloc_obj
(&mut self, obj: GcObject<Buffer>)
diatom-core/src/gc/mod.rs:205
↓ 8 callers
Method
fid
Return file id
diatom-core/src/frontend/util.rs:23
↓ 8 callers
Method
get_mut
(&mut self, idx: usize)
diatom-core/src/gc/pool.rs:42
↓ 8 callers
Method
is_empty
(&self)
diatom-core/src/interpreter/ffi/obj.rs:54
↓ 8 callers
Method
scan_expr
(&mut self, expr: &Expr)
diatom-core/src/interpreter/scanner/capture_scanner.rs:35
↓ 7 callers
Method
compile_constant
( &mut self, constant: &Const, target: Option<usize>, )
diatom-core/src/interpreter/mod.rs:1432
↓ 7 callers
Method
consume_stmt
(&mut self, iter: &mut TokenIterator, not_take_on_error: Option<Token>)
diatom-core/src/frontend/parser/mod.rs:124
↓ 7 callers
Method
get_obj
Same as `get_obj_mut` but this is immutable This is much cheaper than a mutable borrow.
diatom-core/src/interpreter/ffi/mod.rs:78
↓ 7 callers
Method
patch_forward
Insert jump from previous to current
diatom-core/src/interpreter/mod.rs:85
↓ 7 callers
Method
to_list_mut
(&mut self)
diatom-core/src/interpreter/ffi/obj_mut.rs:59
↓ 6 callers
Method
add_file
(&mut self, path: impl Into<OsString>, file: String)
diatom-core/src/file_manager/mod.rs:51
↓ 6 callers
Method
compile_stmt
Compile a statement Return value is already properly freed
diatom-core/src/interpreter/mod.rs:458
↓ 6 callers
Method
get
(&self, key: PrimitiveMeta)
diatom-core/src/gc/mod.rs:96
↓ 6 callers
Method
get_or_insert_table_key
(&mut self, key: impl Into<String> + AsRef<str>)
diatom-core/src/gc/mod.rs:197
↓ 6 callers
Method
leave_block
(&mut self)
diatom-core/src/interpreter/mod.rs:1731
↓ 6 callers
Method
leave_function
(&mut self)
diatom-core/src/interpreter/register_table.rs:139
↓ 6 callers
Method
peek2
Return the next two character
diatom-core/src/frontend/util.rs:34
↓ 5 callers
Method
alloc
(&mut self, value: T)
diatom-core/src/gc/pool.rs:22
↓ 5 callers
Method
as_str
Return &str since current location
diatom-core/src/frontend/util.rs:48
↓ 5 callers
Method
collect
(&mut self)
diatom-core/src/gc/mod.rs:588
↓ 5 callers
Method
consume_to_key
( &mut self, iter: &mut TokenIterator, expected: Keyword, previous: Option<(To
diatom-core/src/frontend/parser/mod.rs:238
↓ 5 callers
Method
consume_to_op
( &mut self, iter: &mut TokenIterator, expected: Operator, previous: Option<(T
diatom-core/src/frontend/parser/mod.rs:192
↓ 5 callers
Method
declare_variable
(&mut self, name: impl AsRef<str>, loc: Option<Loc>)
diatom-core/src/interpreter/register_table.rs:73
↓ 5 callers
Method
exec
( &mut self, byte_code: &[Func], gc: &mut Gc<Buffer>, out: &mut Buffer, )
diatom-core/src/vm/mod.rs:84
↓ 5 callers
Method
get_meta
(&self, key: PrimitiveMeta)
diatom-core/src/gc/mod.rs:396
↓ 5 callers
Method
get_str
(&self, id: usize)
diatom-core/src/gc/mod.rs:243
↓ 5 callers
Method
look_up_table_key
(&self, id: usize)
diatom-core/src/gc/mod.rs:193
↓ 5 callers
Method
mark
(&mut self, idx: usize)
diatom-core/src/gc/pool.rs:65
↓ 5 callers
Method
next_loc
(&self)
diatom-core/src/frontend/util.rs:107
↓ 5 callers
Method
pop
(&mut self)
diatom-core/src/interpreter/ffi/obj_mut.rs:109
↓ 5 callers
Method
remove
Remove value at index, return false if idx out of bound or value is not valid
diatom-core/src/interpreter/ffi/obj_mut.rs:140
↓ 4 callers
Method
add_diagnostic
(&mut self, diag: Diagnostic, is_eof: bool)
diatom-core/src/file_manager/mod.rs:84
↓ 4 callers
Method
alloc_obj_pinned
(&mut self, obj: GcObject<Buffer>)
diatom-core/src/gc/mod.rs:210
↓ 4 callers
Method
enter_block
(&mut self)
diatom-core/src/interpreter/mod.rs:1727
↓ 4 callers
Method
error_count
(&self)
diatom-core/src/file_manager/mod.rs:101
↓ 4 callers
Method
get
(&self, idx: usize)
diatom-core/src/interpreter/ffi/obj.rs:46
↓ 4 callers
Method
get_obj
(&self, id: usize)
diatom-core/src/gc/mod.rs:227
↓ 4 callers
Method
get_obj_unchecked_mut
(&mut self, id: usize)
diatom-core/src/gc/mod.rs:239
↓ 4 callers
Method
lookup_variable
Return (reg_id, depth, loc)
diatom-core/src/interpreter/register_table.rs:106
↓ 4 callers
Method
parse_fid
(&mut self, fid: usize, loc: Option<Loc>)
diatom-core/src/frontend/parser/mod.rs:108
↓ 4 callers
Method
parse_file
Parse a file
diatom-core/src/frontend/parser/mod.rs:85
↓ 4 callers
Method
render
Render error to string
diatom-core/src/file_manager/mod.rs:113
↓ 4 callers
Method
reverse
(&mut self)
diatom-core/src/interpreter/ffi/obj_mut.rs:105
↓ 4 callers
Method
scan_stmt
(&mut self, stmt: &Stmt)
diatom-core/src/interpreter/scanner/const_scanner.rs:60
↓ 3 callers
Method
alloc_reg_file
(&mut self, n: usize)
diatom-core/src/gc/mod.rs:251
↓ 3 callers
Method
alloc_str
(&mut self, s: String)
diatom-core/src/gc/mod.rs:216
↓ 3 callers
Function
cast_to_offset_date
( state: &'a State<Buffer>, value: &DiatomValue, )
diatom-std-os/src/lib.rs:24
↓ 3 callers
Function
check_value
(gc: &Gc<Buffer>, value: &DiatomValue)
diatom-core/src/interpreter/ffi/obj_mut.rs:5
↓ 3 callers
Method
clear
Clear the whole list
diatom-core/src/interpreter/ffi/obj_mut.rs:101
↓ 3 callers
Method
compile_assignment
(&mut self, lhs: &Expr, rhs: &Expr)
diatom-core/src/interpreter/mod.rs:1343
↓ 3 callers
Method
exec
Run a piece of diatom source code # Parameters `code` - Source code `source` - name of source code file or where it is from `is_phony` - Whether sour
diatom/src/lib.rs:162
↓ 3 callers
Method
get_obj_mut
(&mut self, id: usize)
diatom-core/src/gc/mod.rs:231
↓ 3 callers
Method
len
(&self)
diatom-core/src/interpreter/ffi/obj_mut.rs:83
↓ 3 callers
Method
new_module
(&mut self, fid: usize)
diatom-core/src/gc/mod.rs:179
↓ 3 callers
Method
prepare_for_call
prepare n free register for function call
diatom-core/src/interpreter/register_table.rs:67
↓ 3 callers
Method
scan_name
(&mut self, name: impl AsRef<str>)
diatom-core/src/interpreter/scanner/capture_scanner.rs:16
↓ 3 callers
Method
scan_stmt
(&mut self, stmt: &Stmt)
diatom-core/src/interpreter/scanner/capture_scanner.rs:125
↓ 3 callers
Method
set_main_reg_size
(&mut self, n: usize)
diatom-core/src/gc/mod.rs:496
↓ 3 callers
Function
test_str
(code: &str, should_fail: bool)
diatom-core/src/frontend/lexer/mod.rs:641
↓ 3 callers
Method
to_list
(&self)
diatom-core/src/interpreter/ffi/obj_mut.rs:67
↓ 3 callers
Method
try_collect
(&mut self)
diatom-core/src/gc/mod.rs:503
↓ 3 callers
Function
try_get_mod
( search_path: &PathBuf, import: &[String], file_manager: &mut FileManager, )
diatom-core/src/frontend/parser/path_resolver.rs:28
↓ 2 callers
Method
alloc_call_stack
( &mut self, return_addr: Ip, write_back: Option<usize>, start: usize,
diatom-core/src/gc/mod.rs:313
↓ 2 callers
Method
compile
( &mut self, code: impl AsRef<str>, source: &OsStr, is_phony: bool, )
diatom-core/src/interpreter/mod.rs:325
↓ 2 callers
Method
consume_condition_then
(&mut self, iter: &mut TokenIterator)
diatom-core/src/frontend/parser/mod.rs:280
↓ 2 callers
Method
consume_import_item
(&mut self, iter: &mut TokenIterator)
diatom-core/src/frontend/parser/mod.rs:404
↓ 2 callers
Method
convert_expr_to_import
(&mut self, mut expr: Expr)
diatom-core/src/frontend/parser/mod.rs:377
↓ 2 callers
Method
create_str
Create a new string Return reference id to the string which can be put into `DiatomValue::Str()`.
diatom-core/src/interpreter/ffi/mod.rs:34
↓ 2 callers
Method
create_user_data
(&mut self, data: Box<dyn Any + Send>)
diatom-core/src/interpreter/ffi/mod.rs:38
next →
1–100 of 290, ranked by callers