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
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
diatom-core/src/interpreter/std_core.rs:59
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
diatom-core/src/file_manager/util.rs:40
Method
from
(value: ErrorCode)
diatom-core/src/interpreter/error.rs:28
Method
from
(val: Loc)
diatom-core/src/file_manager/util.rs:17
Method
from
(value: VmError)
diatom-core/src/vm/error.rs:66
Method
get_field
(&self, name: impl AsRef<str>)
diatom-core/src/interpreter/ffi/obj_mut.rs:24
Method
get_field
(&self, name: impl AsRef<str>)
diatom-core/src/interpreter/ffi/obj.rs:17
Method
get_indicator_color
(&self)
diatom-cli/src/cli/prompt.rs:36
Method
get_prompt_color
(&self)
diatom-cli/src/cli/prompt.rs:10
Method
get_prompt_right_color
(&self)
diatom-cli/src/cli/prompt.rs:40
Method
impl_extern_function
Directly declare external function as variable
diatom-core/src/interpreter/mod.rs:265
Method
init
(buffer: Buffer, color: bool)
diatom-core/src/interpreter/mod.rs:150
Function
int_extension
()
diatom-std-core/src/int.rs:3
Method
is_empty
(&self)
diatom-core/src/interpreter/ffi/obj_mut.rs:87
Method
lex
(file_manager: &mut FileManager, fid: usize)
diatom-core/src/frontend/lexer/mod.rs:37
Function
list_extension
()
diatom-std-core/src/list.rs:43
Function
main
()
diatom-cli/src/main.rs:30
Method
mark_reg
( reg: &Reg, obj_gray_pool: &mut BTreeSet<usize>, string_pool: &mut Pool<S
diatom-core/src/gc/mod.rs:592
Function
math_extension
()
diatom-std-core/src/math/mod.rs:20
Method
new
(interpreter: Interpreter<Stdout>)
diatom-cli/src/cli/mod.rs:21
Method
new
(file: &'a str, fid: usize)
diatom-core/src/frontend/util.rs:14
Method
new
(file_manager: &'a mut FileManager, search_path: &'a [PathBuf])
diatom-core/src/frontend/parser/mod.rs:74
Method
new
Create a new interpreter instance
diatom-core/src/interpreter/mod.rs:133
Method
new
(func_id: usize)
diatom-core/src/interpreter/register_table.rs:45
Method
new
()
diatom-core/src/gc/pool.rs:11
Method
new
()
diatom-core/src/gc/mod.rs:133
Method
new
()
diatom-core/src/file_manager/mod.rs:30
Method
new
()
diatom-core/src/vm/mod.rs:75
Method
new
Create a new interpreter instance
diatom/src/lib.rs:115
Method
prelude_extension
()
diatom-std-core/src/lib.rs:49
Method
prelude_extension
()
diatom-core/src/interpreter/std_core.rs:73
Method
prelude_files
()
diatom-std-core/src/lib.rs:45
Method
prelude_files
()
diatom-core/src/interpreter/std_core.rs:70
Method
prelude_names
()
diatom-std-core/src/lib.rs:41
Method
prelude_names
()
diatom-core/src/interpreter/std_core.rs:67
Method
ref_id
(&self)
diatom-core/src/interpreter/ffi/obj_mut.rs:20
Method
ref_id
(&self)
diatom-core/src/interpreter/ffi/obj.rs:13
Method
render_prompt_history_search_indicator
( &self, _history_search: reedline::PromptHistorySearch, )
diatom-cli/src/cli/prompt.rs:29
Method
render_prompt_indicator
(&self, _prompt_mode: reedline::PromptEditMode)
diatom-cli/src/cli/prompt.rs:21
Method
render_prompt_left
(&self)
diatom-cli/src/cli/prompt.rs:13
Method
render_prompt_multiline_indicator
(&self)
diatom-cli/src/cli/prompt.rs:25
Method
render_prompt_right
(&self)
diatom-cli/src/cli/prompt.rs:17
Method
repl
Enable or disable REPL mode (print last value to output buffer)
diatom/src/lib.rs:122
Method
replace_buffer
Replace output buffer and get the old one
diatom-core/src/interpreter/mod.rs:321
Method
replace_buffer
Replace output buffer and get the old one
diatom/src/lib.rs:147
Method
right_prompt_on_last_line
(&self)
diatom-cli/src/cli/prompt.rs:44
Method
set_idx
Set value at index, return false if idx out of bound or value is not valid
diatom-core/src/interpreter/ffi/obj_mut.rs:114
Function
test_assignment
()
diatom-core/src/interpreter/tests.rs:68
Function
test_binary_op
()
diatom-core/src/interpreter/tests.rs:47
Function
test_closure
()
diatom-core/src/interpreter/tests.rs:83
Function
test_compile_with_target
()
diatom-core/src/interpreter/tests.rs:176
Function
test_consume_float
()
diatom-core/src/frontend/lexer/mod.rs:581
Function
test_consume_int
()
diatom-core/src/frontend/lexer/mod.rs:526
Function
test_consume_string
()
diatom-core/src/frontend/lexer/mod.rs:606
Function
test_def
()
diatom-core/src/frontend/parser/tests/mod.rs:69
Function
test_dispatch
()
diatom-core/src/frontend/lexer/mod.rs:660
Function
test_examples
()
diatom/src/lib.rs:201
Function
test_expr_postfix_ambiguous
()
diatom-core/src/frontend/parser/tests/mod.rs:19
Function
test_fn
()
diatom-core/src/frontend/parser/tests/mod.rs:80
Function
test_for_macro
()
diatom/src/lib.rs:235
Function
test_if
()
diatom-core/src/frontend/parser/tests/mod.rs:54
Function
test_if
()
diatom-core/src/interpreter/tests.rs:130
Function
test_import_cycle
()
diatom-core/src/tests/mod.rs:22
Function
test_import_non_table
()
diatom-core/src/tests/mod.rs:36
Function
test_import_ok
()
diatom-core/src/tests/mod.rs:7
Function
test_invalid
()
diatom-core/src/frontend/lexer/mod.rs:681
Function
test_invalid
()
diatom-core/src/frontend/parser/tests/mod.rs:45
Function
test_list
()
diatom-core/src/interpreter/tests.rs:206
Function
test_loop
()
diatom-core/src/frontend/parser/tests/mod.rs:105
Function
test_loop
()
diatom-core/src/interpreter/tests.rs:75
Method
test_match
(op_type: Discriminant<Operator>, iter: &TokenIterator)
diatom-core/src/frontend/parser/mod.rs:198
Function
test_meta_table
()
diatom-core/src/interpreter/tests.rs:194
Function
test_method
()
diatom-core/src/interpreter/tests.rs:187
Function
test_overflow
()
diatom/src/lib.rs:226
Function
test_recursive
()
diatom-core/src/interpreter/tests.rs:159
Function
test_regex
()
diatom-cli/src/cli/highlighter.rs:94
Function
test_short_circuit
()
diatom-core/src/interpreter/tests.rs:217
Function
test_statement
()
diatom-core/src/frontend/parser/tests/mod.rs:88
Function
test_table
()
diatom-core/src/frontend/parser/tests/mod.rs:116
Function
test_table
()
diatom-core/src/interpreter/tests.rs:147
Function
test_tuple
()
diatom-core/src/interpreter/tests.rs:181
Function
test_valid
()
diatom-core/src/frontend/lexer/mod.rs:675
Function
test_valid
()
diatom-core/src/frontend/parser/tests/mod.rs:33
Function
time_extension
()
diatom-std-os/src/lib.rs:111
Function
time_util_extension
()
diatom-std-os/src/lib.rs:50
Method
validate
(&self, line: &str)
diatom-cli/src/cli/validator.rs:15
Method
verify_input_completeness
Check if input is completeness Incomplete input usually contains unclosed parentheses, quotes or open expression.
diatom/src/lib.rs:142
Method
with_color
Enable ansi colored error message
diatom-core/src/interpreter/mod.rs:202
Method
with_color
Enable ansi colored error message
diatom/src/lib.rs:133
Method
with_search_path
Add module search path
diatom/src/lib.rs:128
← previous
201–290 of 290, ranked by callers