Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adam-mcdaniel/free
/ functions
Functions
72 in github.com/adam-mcdaniel/free
⨍
Functions
72
◇
Types & classes
27
↓ 78 callers
Function
add_to_compiled
(s: impl ToString)
src/ir.rs:46
↓ 33 callers
Method
from
(&self)
src/ir.rs:521
↓ 33 callers
Method
to
(&self)
src/ir.rs:517
↓ 18 callers
Function
get
(name: impl ToString)
src/compile.rs:537
↓ 13 callers
Method
lower
(&self)
src/compile.rs:203
↓ 12 callers
Method
size
(&self)
src/ir.rs:525
↓ 11 callers
Method
free
(&self)
src/ir.rs:306
↓ 9 callers
Function
deforfun
(name: impl ToString, args: &[&'static str], fun: fn() -> Result<(), Error>)
src/compile.rs:440
↓ 7 callers
Method
zero
(&self)
src/ir.rs:295
↓ 6 callers
Method
assign
(&self, val: Self)
src/ir.rs:334
↓ 5 callers
Method
get
(&mut self, name: impl ToString)
src/env.rs:33
↓ 5 callers
Function
set_return
This sets the RETURN value object to a specific value
src/compile.rs:228
↓ 4 callers
Method
compile
Compile the code
src/compile.rs:155
↓ 4 callers
Function
define_no_cp
(final_name: impl ToString, value: Eval)
src/compile.rs:519
↓ 3 callers
Method
define
(name: impl ToString, args: Vec<impl ToString>, fun: fn() -> Result<(), Error>)
src/compile.rs:649
↓ 2 callers
Function
call
(name: impl ToString, args: &Vec<Eval>)
src/compile.rs:490
↓ 2 callers
Method
call
(&self, args: &Vec<Eval>)
src/compile.rs:467
↓ 2 callers
Function
define
(name: impl ToString, val: Eval)
src/compile.rs:512
↓ 2 callers
Method
define_no_cp
(&mut self, name: impl ToString, value: Value)
src/env.rs:25
↓ 2 callers
Method
deref
(&self)
src/ir.rs:529
↓ 2 callers
Method
free
(&mut self)
src/env.rs:40
↓ 2 callers
Function
pop_scope
This function destroys a scope on the scope stack. THIS IS ONLY TO BE USED BY FUNCTION DEFINITIONS
src/compile.rs:223
↓ 2 callers
Function
push_scope
This function creates a new scope on the scope stack. THIS IS ONLY TO BE USED BY FUNCTION DEFINITIONS
src/compile.rs:217
↓ 2 callers
Function
set_stack
(stack_size: u32)
src/ir.rs:36
↓ 1 callers
Function
compile
()
src/ir.rs:69
↓ 1 callers
Method
copy
(&self)
src/ir.rs:285
↓ 1 callers
Function
get_return
This retreives the last value returned by a function
src/compile.rs:238
↓ 1 callers
Function
increment_stack
(allocation_size: u32)
src/ir.rs:26
↓ 1 callers
Function
init
()
src/ir.rs:52
↓ 1 callers
Method
is_ref
(&self)
src/ir.rs:291
↓ 1 callers
Method
minus_eq
(&self, val: Self)
src/ir.rs:430
↓ 1 callers
Function
optimize
(s: impl ToString, level: usize)
src/bin.rs:74
↓ 1 callers
Method
plus_eq
(&self, val: Self)
src/ir.rs:388
↓ 1 callers
Method
refer
(&self)
src/ir.rs:542
Method
alloc
(size: u32)
src/ir.rs:247
Method
brainfuck_enabled
Is brainfuck compatibility mode enabled?
src/compile.rs:130
Method
byte_int
(b: u8)
src/compile.rs:406
Method
byte_int
(value: u8)
src/ir.rs:472
Method
character
(ch: char)
src/compile.rs:402
Method
character
(value: char)
src/ir.rs:493
Method
define
(&mut self, name: impl ToString, value: Value)
src/env.rs:16
Method
else_begin
()
src/ir.rs:101
Method
fmt
(&self, f: &mut fmt::Formatter)
src/ir.rs:222
Method
from
(t: T)
src/compile.rs:41
Method
getch
(var: Value)
src/ir.rs:151
Method
heap_size
Get the heap size
src/compile.rs:145
Method
if_begin
(var: Value)
src/ir.rs:89
Method
if_end
()
src/ir.rs:118
Function
main
()
build.rs:3
Function
main
()
src/bin.rs:13
Method
new
()
src/simplify.rs:11
Method
new
()
src/env.rs:10
Method
new
Create new Program object
src/compile.rs:51
Method
new
(size: u32)
src/ir.rs:234
Method
postlude
()
src/simplify.rs:76
Method
prelude
()
src/simplify.rs:17
Method
prelude
Instantiate compiler functions
src/compile.rs:64
Method
print
This prints a Value according to its size. Basically, this prints each cell that the Value owns.
src/ir.rs:168
Method
print_cstr
This prints a pointer to a value like a CString This requires brainfuck compatibility mode to be disabled.
src/ir.rs:188
Function
rand_str
Generate a random string, used for naming temporary variables
src/compile.rs:32
Method
set
(&self, val: impl Into<usize>)
src/ir.rs:327
Method
simplify
(s: impl ToString)
src/simplify.rs:80
Method
size_warn_enabled
Are size warnings enabled?
src/compile.rs:135
Method
stack_size
Get the stack size
src/compile.rs:140
Method
string
(s: impl ToString)
src/compile.rs:398
Method
string
(value: impl ToString)
src/ir.rs:501
Method
tape_size
Get the tape size
src/compile.rs:150
Method
unsigned_short
(ui: u16)
src/compile.rs:410
Method
unsigned_short
(value: u16)
src/ir.rs:480
Method
variable_alloc
(size: Self)
src/ir.rs:267
Method
while_begin
(var: Value)
src/ir.rs:133
Method
while_end
()
src/ir.rs:141