Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cedricschwyter/spacey
/ functions
Functions
82 in github.com/cedricschwyter/spacey
⨍
Functions
82
◇
Types & classes
17
↓ 41 callers
Method
throw
(self)
src/vm.rs:350
↓ 32 callers
Method
throw
(self)
src/parser.rs:43
↓ 19 callers
Method
next
(&mut self)
src/ws.rs:254
↓ 12 callers
Method
run
Executes all instructions - runs the program.
src/vm.rs:472
↓ 6 callers
Method
reset
Resets the internal interpreter state/the VM without re-parsing the source file
src/vm.rs:486
↓ 5 callers
Function
test_parse
( parser: &mut Box<dyn Parser>, results: Vec<WsInstruction>, )
src/ws.rs:675
↓ 2 callers
Method
into
(self)
src/vm.rs:371
↓ 2 callers
Method
number
(&mut self, sign: i32)
src/ws.rs:577
↓ 1 callers
Method
add
(&mut self)
src/vm.rs:602
↓ 1 callers
Function
args
()
src/main.rs:13
↓ 1 callers
Method
arithmetic
(&mut self)
src/ws.rs:365
↓ 1 callers
Method
call
(&mut self)
src/vm.rs:708
↓ 1 callers
Method
cmd
(&mut self, imp: WsImpKind)
src/ws.rs:567
↓ 1 callers
Method
copy_nth_stack
(&mut self)
src/vm.rs:525
↓ 1 callers
Method
discard_stack
(&mut self)
src/vm.rs:565
↓ 1 callers
Method
duplicate_stack
(&mut self)
src/vm.rs:514
↓ 1 callers
Method
exec
(&mut self)
src/vm.rs:966
↓ 1 callers
Method
exit
(&mut self)
src/vm.rs:778
↓ 1 callers
Method
flow
(&mut self)
src/ws.rs:440
↓ 1 callers
Method
heap
(&mut self)
src/ws.rs:424
↓ 1 callers
Method
imp
(&mut self)
src/ws.rs:267
↓ 1 callers
Method
instruction
(&mut self)
src/ws.rs:183
↓ 1 callers
Method
integer_division
(&mut self)
src/vm.rs:638
↓ 1 callers
Method
io
(&mut self)
src/ws.rs:516
↓ 1 callers
Method
jump
(&mut self)
src/vm.rs:719
↓ 1 callers
Method
jump_negative
(&mut self)
src/vm.rs:749
↓ 1 callers
Method
jump_zero
(&mut self)
src/vm.rs:729
↓ 1 callers
Method
label
(&mut self)
src/ws.rs:609
↓ 1 callers
Method
mark
(&mut self)
src/vm.rs:704
↓ 1 callers
Method
modulo
(&mut self)
src/vm.rs:650
↓ 1 callers
Method
multiply
(&mut self)
src/vm.rs:626
↓ 1 callers
Method
next_instruction
Returns the next instruction to be executed in a `Some` variant. None if the program has reached its end.
src/vm.rs:460
↓ 1 callers
Method
out_char
(&mut self)
src/vm.rs:784
↓ 1 callers
Method
out_int
(&mut self)
src/vm.rs:827
↓ 1 callers
Method
param
(&mut self, kind: WsParamKind)
src/ws.rs:638
↓ 1 callers
Method
param_kind
(&self)
src/ws.rs:55
↓ 1 callers
Method
push_stack
(&mut self)
src/vm.rs:504
↓ 1 callers
Method
r#return
(&mut self)
src/vm.rs:768
↓ 1 callers
Method
read_char
(&mut self)
src/vm.rs:857
↓ 1 callers
Method
read_int
(&mut self)
src/vm.rs:917
↓ 1 callers
Method
retrieve_heap
(&mut self)
src/vm.rs:684
↓ 1 callers
Method
slide_n_stack
(&mut self)
src/vm.rs:573
↓ 1 callers
Method
stack
(&mut self)
src/ws.rs:305
↓ 1 callers
Method
store_heap
(&mut self)
src/vm.rs:662
↓ 1 callers
Method
subtract
(&mut self)
src/vm.rs:614
↓ 1 callers
Method
swap_stack
(&mut self)
src/vm.rs:547
↓ 1 callers
Method
translate
(&self)
src/ws.rs:93
Method
as_any
(&self)
src/ws.rs:89
Function
count_benchmark
(c: &mut Criterion)
benches/vm.rs:74
Method
debug_heap
Returns a default debug interpreter configuration with the default heap size - `source` the source as a String - `source_type` the type of the source
src/vm.rs:143
Method
debug_no_heap
Returns a default debug interpreter configuration with no heap - `source` the source as a String - `source_type` the type of the source
src/vm.rs:159
Method
default_heap
Returns a default interpreter configuration with the default heap size - `source` the source as a String - `source_type` the type of the source
src/vm.rs:79
Method
default_heap_suppressed
Returns a default interpreter configuration with the default heap size, suppressing output - `source` the source as a String - `source_type` the type
src/vm.rs:111
Method
default_no_heap
Returns a default interpreter configuration with no heap - `source` the source as a String - `source_type` the type of the source
src/vm.rs:95
Method
default_no_heap_suppressed
Returns a default interpreter configuration with no heap, suppressing output - `source` the source as a String - `source_type` the type of the source
src/vm.rs:127
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/parser.rs:69
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/vm.rs:344
Method
from_str
(s: &str)
src/parser.rs:22
Method
generate_debug_heap_dump
(&self)
src/vm.rs:494
Function
hello_world_benchmark
(c: &mut Criterion)
benches/vm.rs:30
Function
hello_world_of_spaces_benchmark
(c: &mut Criterion)
benches/vm.rs:44
Function
interpret_arithmetic
()
src/vm.rs:1031
Function
interpret_flow
()
src/vm.rs:1062
Function
interpret_heap
()
src/vm.rs:1047
Function
interpret_io
()
src/vm.rs:1076
Function
interpret_stack
()
src/vm.rs:1015
Method
into
(self)
src/parser.rs:82
Function
main
()
src/main.rs:77
Method
new
(file_name: &str)
src/ws.rs:223
Method
new
( source: &str, source_type: SourceType, heap_size: usize, raw: bool,
src/vm.rs:55
Method
next
(&mut self)
src/parser.rs:110
Function
parse_arithmetic
()
src/ws.rs:758
Function
parse_benchmark
(c: &mut Criterion)
benches/parser.rs:4
Function
parse_flow
()
src/ws.rs:839
Function
parse_heap
()
src/ws.rs:809
Function
parse_io
()
src/ws.rs:897
Function
parse_stack
()
src/ws.rs:700
Function
primes_benchmark
(c: &mut Criterion)
benches/vm.rs:88
Method
raw
Returns a default debug interpreter configuration to only compute the intermediate representation of the source - `source` the source as a String - `
src/vm.rs:176
Function
reset_vm_benchmark
(c: &mut Criterion)
benches/vm.rs:17
Function
sieve_benchmark
(c: &mut Criterion)
benches/vm.rs:60
Function
single_instruction_with_param_benchmark
(c: &mut Criterion)
benches/vm.rs:4