Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adam-mcdaniel/sage
/ functions
Functions
1,185 in github.com/adam-mcdaniel/sage
⨍
Functions
1,185
◇
Types & classes
113
↓ 2 callers
Function
compile_and_run
(code: &str, input: &str)
src/frontend/parse.rs:4264
↓ 2 callers
Function
compile_source_to_asm
Compile code in a given source language to assembly code.
src/cli.rs:313
↓ 2 callers
Function
copyButtonAnimation
(button)
docs/static.files/main-5f194d8c.js:11
↓ 2 callers
Function
copyContentToClipboard
(content)
docs/static.files/main-5f194d8c.js:11
↓ 2 callers
Method
declare_let_bind
Let-bind the pattern to the given expression. This will define all the bindings in the environment, and then assign the bound expression to all the pa
src/lir/expr/pattern.rs:883
↓ 2 callers
Method
define_poly_proc
Define a polymorphic procedure with a given name under this environment.
src/lir/env.rs:1087
↓ 2 callers
Method
define_types
Define multiple types with the given names under this environment. This must be used in situations where the different types depend on each other. Th
src/lir/env.rs:1038
↓ 2 callers
Method
detect_duplicate_modules
Detect duplicate modules
src/lir/expr/declaration.rs:364
↓ 2 callers
Function
displaySettings
()
docs/static.files/settings-0f613d39.js:17
↓ 2 callers
Method
eval_checked
Evaluate this constant with stack overflow prevention. The `i` is a counter for the number of recursions caused by an `eval` call.
src/lir/expr/const_expr.rs:224
↓ 2 callers
Function
expandAllDocs
()
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Function
expandSection
(id)
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
ffi_call
(&mut self, ffi: &FFIBinding, tape: Option<&mut Vec<i64>>)
src/vm/interpreter/mod.rs:244
↓ 2 callers
Function
focusSearchResult
()
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Method
get
(&mut self, src: Input)
examples/web/src/device.rs:180
↓ 2 callers
Function
getExampleWrap
(event)
docs/static.files/main-5f194d8c.js:11
↓ 2 callers
Function
getFilterCrates
()
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Function
getHelpMenu
(buildNeeded)
docs/static.files/main-5f194d8c.js:11
↓ 2 callers
Function
getIdentEndPosition
(parserState)
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Function
getNextElem
(query,parserState,elems,isInGenerics)
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Function
getNotDisplayedElem
()
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Function
getOrCreateSection
(id,classes)
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Function
getVirtualKey
(ev)
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
get_bindings_with_offset
Get the map of new variables, their types which are bound by this pattern, and their offsets in the expression.
src/lir/expr/pattern.rs:569
↓ 2 callers
Method
get_cell
Get the current cell pointed to on the turing tape.
src/vm/interpreter/std.rs:256
↓ 2 callers
Method
get_cell
Get the current cell pointed to on the turing tape.
examples/web/src/interpreter.rs:243
↓ 2 callers
Method
get_char
(&mut self)
examples/web/src/device.rs:113
↓ 2 callers
Function
get_current_offset_in_program
(remaining_input: &str)
src/frontend/parse.rs:1246
↓ 2 callers
Method
get_float
(&mut self)
src/vm/interpreter/mod.rs:147
↓ 2 callers
Method
get_label
Get the virtual machine ID of a label (which can be called as a function).
src/asm/mod.rs:135
↓ 2 callers
Function
get_lisp_env
()
src/frontend/parse.rs:1182
↓ 2 callers
Method
get_main_and_functions
Get the code outside of any functions, and the code for each function.
src/vm/std.rs:136
↓ 2 callers
Method
get_mangled_name
Get the mangled name of the procedure. The procedure's mangled name is used to store the procedure in the environment.
src/lir/expr/procedure/mono.rs:111
↓ 2 callers
Method
get_monomorph_template_args
Get the template arguments for the monomorph (this type) of some polymorphic base type. This will match the symbols in the template against the monomo
src/lir/types/mod.rs:397
↓ 2 callers
Method
get_precalculated_size
Get the precalculated size of the given type. This helps the compiler memoize the size of types so that it doesn't have to recalculate the size of the
src/lir/env.rs:1302
↓ 2 callers
Method
get_proc
Get a procedure definition from this environment.
src/lir/env.rs:1101
↓ 2 callers
Function
get_source_code_location
(char_idx: usize, length: Option<usize>)
src/frontend/parse.rs:1228
↓ 2 callers
Function
handleEscape
(ev)
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
hard_with
(&self, older_decls: impl Into<Declaration>)
src/lir/expr/expression.rs:496
↓ 2 callers
Method
has_element_type
Does this type have an element type matching the supplied type? If this type is an array of Integers, for example, then this function will return true
src/lir/types/mod.rs:1271
↓ 2 callers
Function
highlightSrcLines
()
docs/static.files/src-script-56102188.js:1
↓ 2 callers
Method
indentation
The string used for indentation.
src/targets/mod.rs:106
↓ 2 callers
Function
initSearch
(searchIndx)
docs/static.files/search-92e6798f.js:6
↓ 2 callers
Function
isLastElemGeneric
(elems,parserState)
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Method
is_concrete
Is this type simplified enough to get information about what the outer type is? Is it a tuple, a struct, etc? Symbols and polymorphic types do not sa
src/lir/types/mod.rs:764
↓ 2 callers
Method
is_greater_than
dst = this cell > source cell.
src/asm/location.rs:804
↓ 2 callers
Method
is_less_or_equal_to
dst = this cell <= source cell.
src/asm/location.rs:865
↓ 2 callers
Method
is_less_than
dst = this cell < source cell.
src/asm/location.rs:841
↓ 2 callers
Method
is_not_equal
( &self, src: &Self, dst: &Self, result: &mut dyn VirtualMachineProgram, )
src/asm/location.rs:876
↓ 2 callers
Method
location
Get the location of this annotation.
src/lir/annotate.rs:70
↓ 2 callers
Method
lt
Is this expression less than another?
src/lir/expr/expression.rs:552
↓ 2 callers
Method
mark_no_checking
(&mut self)
src/lir/expr/declaration.rs:104
↓ 2 callers
Function
nextTab
(direction)
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Function
onChangeLoc
docs/static.files/scrape-examples-d508a8a9.js:1
↓ 2 callers
Function
onEach
(arr,func)
docs/static.files/storage-59e33391.js:1
↓ 2 callers
Function
openParentDetails
(elem)
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
or
Logical or this expression with another.
src/lir/expr/expression.rs:591
↓ 2 callers
Method
or
Perform boolean or on the value of this cell and a source cell.
src/asm/location.rs:799
↓ 2 callers
Method
parseQuery
(userQuery)
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Function
parse_vm
Parse Core and Standard variants of virtual machine source code. This will return core code by default, but will fallback on standard.
src/parse.rs:95
↓ 2 callers
Method
post_funs
The code after the function definitions.
src/targets/mod.rs:101
↓ 2 callers
Method
postlude
The code after the program ends.
src/targets/mod.rs:91
↓ 2 callers
Method
pre_funs
The code before the function definitions.
src/targets/mod.rs:96
↓ 2 callers
Method
prelude
The code before the program starts.
src/targets/mod.rs:81
↓ 2 callers
Method
print
(self)
src/lir/expr/expression.rs:129
↓ 2 callers
Method
push_proc
Push a procedure defined in the environment onto the stack.
src/lir/env.rs:1120
↓ 2 callers
Method
put
(&mut self, val: i64, dst: Output)
src/vm/interpreter/mod.rs:215
↓ 2 callers
Function
putBackSearch
()
docs/static.files/search-92e6798f.js:6
↓ 2 callers
Method
put_char
(&mut self, ch: char)
src/vm/interpreter/mod.rs:89
↓ 2 callers
Method
put_char
(&mut self, ch: char)
examples/web/src/device.rs:94
↓ 2 callers
Method
put_float
(&mut self, val: f32)
examples/web/src/device.rs:106
↓ 2 callers
Method
put_int
(&mut self, val: i64)
examples/web/src/device.rs:99
↓ 2 callers
Method
reg_mut_scalar
(&mut self)
src/vm/interpreter/core.rs:65
↓ 2 callers
Method
rem
This cell %= source cell.
src/asm/location.rs:912
↓ 2 callers
Function
resourcePath
(basename,extension)
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
ret
Return from the current function.
src/vm/interpreter/std.rs:164
↓ 2 callers
Method
searchSubstringPrefix
(name,substart,results)
docs/static.files/search-92e6798f.js:1
↓ 2 callers
Function
setImplementorsTogglesOpen
(id,open)
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
set_expected_return_type
Set the expected return type of the current function. If we're in a function, this will be the type of the function. If we're not in a function, this
src/lir/env.rs:1288
↓ 2 callers
Function
set_fragment
docs/static.files/src-script-56102188.js:1
↓ 2 callers
Method
set_precalculated_size
Set the precalculated size of the given type. This helps the compiler memoize the size of types so that it doesn't have to recalculate the size of the
src/lir/env.rs:1315
↓ 2 callers
Function
setupLoc
(example,isHidden)
docs/static.files/scrape-examples-d508a8a9.js:1
↓ 2 callers
Function
showHelp
()
docs/static.files/main-5f194d8c.js:11
↓ 2 callers
Function
showSidebar
()
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
simplify_until_has_members
Simplify a type until you can get its members.
src/lir/types/mod.rs:878
↓ 2 callers
Function
stmts_to_expr
(stmts: Vec<Statement>, end_of_program: bool)
src/frontend/parse.rs:1350
↓ 2 callers
Method
strip_template
Strip the template arguments to get the inner type
src/lir/types/mod.rs:372
↓ 2 callers
Function
switchTheme
(newThemeName,saveTheme)
docs/static.files/storage-59e33391.js:1
↓ 2 callers
Method
template
(&self, params: Vec<(String, Option<Type>)>)
src/lir/expr/const_expr.rs:124
↓ 2 callers
Method
type_check_member
( &self, member: &ConstExpr, expr: &Expr, env: &Env, )
src/lir/types/mod.rs:2096
↓ 2 callers
Function
updateLightAndDark
()
docs/static.files/settings-0f613d39.js:1
↓ 2 callers
Function
updateSearchHistory
(url)
docs/static.files/search-92e6798f.js:6
↓ 2 callers
Function
updateTheme
()
docs/static.files/storage-59e33391.js:1
↓ 2 callers
Method
where_is_pointer
(&mut self)
src/vm/mod.rs:139
↓ 2 callers
Function
without_comments
(code: impl ToString)
src/frontend/mod.rs:5
↓ 1 callers
Function
__wbg_load
(module, imports)
docs/sage/web/web.js:187
↓ 1 callers
Function
addCopyButton
(event)
docs/static.files/main-5f194d8c.js:11
↓ 1 callers
Function
addSidebarCrates
()
docs/static.files/main-5f194d8c.js:1
↓ 1 callers
Function
addSidebarItems
()
docs/static.files/main-5f194d8c.js:1
↓ 1 callers
Method
add_float
This cell += source cell.
src/asm/location.rs:946
← previous
next →
301–400 of 1,185, ranked by callers