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
↓ 1 callers
Method
add_monomorphized_associated_consts
Add monomorphized methods for a given monomorph of a template type with methods.
src/lir/types/mod.rs:599
↓ 1 callers
Method
alloc
Read the value of this cell, allocate that number of cells, store the address of the first cell in this cell.
src/asm/location.rs:1042
↓ 1 callers
Method
annotate_with_source
(self, code: &String)
examples/web/src/lib.rs:87
↓ 1 callers
Method
arithmetic_right_shift
This cell >>= source cell. This is an arithmetic shift right.
src/asm/location.rs:923
↓ 1 callers
Method
assign_op
Perform an AssignOp on this expression.
src/lir/expr/expression.rs:771
↓ 1 callers
Method
begin_function
(&mut self)
src/vm/mod.rs:177
↓ 1 callers
Method
begin_while
(&mut self)
src/vm/mod.rs:165
↓ 1 callers
Method
bitwise_and
Perform bitwise-and on this cell and a source cell.
src/asm/location.rs:749
↓ 1 callers
Method
bitwise_nand
Perform bitwise-nand on this cell and a source cell.
src/asm/location.rs:745
↓ 1 callers
Method
bitwise_nor
Perform bitwise-nor on this cell and a source cell.
src/asm/location.rs:772
↓ 1 callers
Method
bitwise_not
Perform bitwise-xor on this cell and a source cell.
src/asm/location.rs:763
↓ 1 callers
Method
bitwise_or
Perform bitwise-or on this cell and a source cell.
src/asm/location.rs:754
↓ 1 callers
Method
bitwise_xor
Perform bitwise-xor on this cell and a source cell.
src/asm/location.rs:759
↓ 1 callers
Method
buildIndex
(rawSearchIndex)
docs/static.files/search-92e6798f.js:1
↓ 1 callers
Function
buildSettingsPage
()
docs/static.files/settings-0f613d39.js:17
↓ 1 callers
Function
buildSettingsPageSections
(settings)
docs/static.files/settings-0f613d39.js:1
↓ 1 callers
Method
call
Call the Nth function defined in the program, where N is the value of the register.
src/vm/interpreter/core.rs:112
↓ 1 callers
Method
call
Call the Nth function defined in the program, where N is the value of the register.
examples/web/src/interpreter.rs:110
↓ 1 callers
Method
can_cast_to_checked
Can this type be cast to another type? This function should always halt (type casting *MUST* be decidable).
src/lir/types/mod.rs:1417
↓ 1 callers
Function
checkExtraTypeFilterCharacters
(start,parserState)
docs/static.files/search-92e6798f.js:1
↓ 1 callers
Method
clone_box
Clone this operation into a trait object.
src/lir/expr/ops/assign.rs:97
↓ 1 callers
Method
clone_box
(&self)
src/lir/expr/ops/comparison.rs:262
↓ 1 callers
Method
clone_box
(&self)
src/lir/expr/ops/arithmetic/mod.rs:411
↓ 1 callers
Method
clone_box
(&self)
src/lir/expr/ops/arithmetic/negate.rs:81
↓ 1 callers
Method
clone_box
Clone this binary operation into a box.
src/lir/expr/ops/bitwise/xor.rs:64
↓ 1 callers
Method
clone_box
(&self)
src/lir/expr/ops/bitwise/not.rs:63
↓ 1 callers
Method
clone_box
Clone this binary operation into a box.
src/lir/expr/ops/bitwise/nor.rs:64
↓ 1 callers
Method
clone_box
Clone this binary operation into a box.
src/lir/expr/ops/bitwise/or.rs:64
↓ 1 callers
Method
clone_box
Clone this binary operation into a box.
src/lir/expr/ops/bitwise/nand.rs:64
↓ 1 callers
Method
clone_box
Clone this binary operation into a box.
src/lir/expr/ops/bitwise/and.rs:64
↓ 1 callers
Function
compile
Compile code in a given source language to a given target language.
src/cli.rs:350
↓ 1 callers
Function
compile_and_run
()
examples/web/src/lib.rs:167
↓ 1 callers
Method
compile_arg
Compile an argument and account for the fact that the stack is growing as we compile arguments.
src/lir/env.rs:1266
↓ 1 callers
Method
compile_helper
Compile a declaration, and return how many cells were allocated for variables. This will modify the environment to add the declaration. If there is a
src/lir/expr/declaration.rs:239
↓ 1 callers
Function
compile_to_c
(filename: &str)
benches/frontend.rs:28
↓ 1 callers
Method
compile_types
Compile the binary operation.
src/lir/expr/ops/arithmetic/mod.rs:401
↓ 1 callers
Method
compile_types
fn compile_types(&self, ty: &Type, env: &mut Env) -> Result<AssemblyProgram, Error> {}
src/lir/expr/ops/arithmetic/addition.rs:105
↓ 1 callers
Function
copyCode
(codeElem)
docs/static.files/main-5f194d8c.js:11
↓ 1 callers
Function
createDirEntry
(elem,parent,fullPath,hasFoundFile)
docs/static.files/src-script-56102188.js:1
↓ 1 callers
Function
createQueryElement
(query,parserState,name,generics,isInGenerics)
docs/static.files/search-92e6798f.js:1
↓ 1 callers
Function
createSrcSidebar
()
docs/static.files/src-script-56102188.js:1
↓ 1 callers
Function
debugString
(val)
docs/sage/web/web.js:105
↓ 1 callers
Method
declare_label
Declare a new label
src/asm/mod.rs:104
↓ 1 callers
Method
declare_proc
(&mut self, label_id: usize)
src/targets/c.rs:262
↓ 1 callers
Method
decodeList
()
docs/static.files/search-92e6798f.js:1
↓ 1 callers
Method
define_ffi_proc
Define an FFI procedure with a given name under this environment.
src/lir/env.rs:1094
↓ 1 callers
Method
deref
Dereference the current pointer on the tape.
src/vm/interpreter/std.rs:98
↓ 1 callers
Method
deref
Dereference the current pointer on the tape.
src/vm/interpreter/core.rs:87
↓ 1 callers
Method
deref
Dereference the current pointer on the tape.
examples/web/src/interpreter.rs:85
↓ 1 callers
Method
distribute_decls
Distribute a declaration amongst several other declarations. This makes sure the declaration is in scope for all the subexpressions in the other decla
src/lir/expr/declaration.rs:146
↓ 1 callers
Method
div_float
This cell /= source cell.
src/asm/location.rs:973
↓ 1 callers
Method
equals_checked
Are two types structurally equal? This function should always halt (type equality *MUST* be decidable).
src/lir/types/mod.rs:1704
↓ 1 callers
Method
execQuery
(parsedQuery,filterCrates,currentCrate)
docs/static.files/search-92e6798f.js:1
↓ 1 callers
Method
ffi_call
(&mut self, ffi: &FFIBinding, tape: Option<&mut Vec<i64>>)
examples/web/src/device.rs:221
↓ 1 callers
Method
filter_for_compile_time_only
Make this declaration only have compile time subdeclarations
src/lir/expr/declaration.rs:139
↓ 1 callers
Method
free
Free the pointer stored in this cell, and set the value to -1000 (to prevent) accidental use of the freed memory.
src/asm/location.rs:1048
↓ 1 callers
Method
ge
Is this expression greater than or equal to another?
src/lir/expr/expression.rs:567
↓ 1 callers
Method
get
(&mut self, src: &Input)
src/targets/c.rs:277
↓ 1 callers
Method
get
(&mut self, _src: &Input)
src/targets/sage_lisp.rs:59
↓ 1 callers
Function
getAlternativeDisplayElem
()
docs/static.files/main-5f194d8c.js:1
↓ 1 callers
Function
getCurrentValue
(name)
docs/static.files/storage-59e33391.js:1
↓ 1 callers
Method
getPosition
(absState)
docs/static.files/search-92e6798f.js:6
↓ 1 callers
Function
getStringElem
(query,parserState,isInGenerics)
docs/static.files/search-92e6798f.js:1
↓ 1 callers
Method
getVector
(name,charCode,pos,end)
docs/static.files/search-92e6798f.js:6
↓ 1 callers
Method
get_args
Get the arguments of the procedure.
src/lir/expr/procedure/mono.rs:95
↓ 1 callers
Method
get_args_size
Get a variable's size, in cells.
src/lir/env.rs:1138
↓ 1 callers
Method
get_body
Get the body of the procedure.
src/lir/expr/procedure/mono.rs:105
↓ 1 callers
Method
get_cell
Get the current cell pointed to on the turing tape.
src/vm/interpreter/core.rs:237
↓ 1 callers
Method
get_common_name
Get the name of the procedure known to the LIR front-end.
src/lir/expr/procedure/mono.rs:116
↓ 1 callers
Method
get_expected_return_type
Get the expected return type of the current function. This is used to check if the returned value of a function matches the expected return type. This
src/lir/env.rs:1281
↓ 1 callers
Method
get_float
(&mut self)
examples/web/src/device.rs:153
↓ 1 callers
Method
get_matching_for_end
Get the matching instruction for a given "End" instruction. ```hs If (this function would return this instruction) ... End (called on this as the cur
src/vm/interpreter/std.rs:234
↓ 1 callers
Method
get_matching_for_end
Get the matching instruction for a given "End" instruction. ```hs If (this function would return this instruction) ... End (called on this as the cur
src/vm/interpreter/core.rs:217
↓ 1 callers
Method
get_matching_for_end
Get the matching instruction for a given "End" instruction. ```hs If (this function would return this instruction) ... End (called on this as the cur
examples/web/src/interpreter.rs:221
↓ 1 callers
Function
get_max_precedence
()
src/frontend/parse.rs:1334
↓ 1 callers
Method
get_name
Get the name of this polymorphic procedure. This is not the mangled name, but the name known to the LIR front-end. The mangled name is unique for each
src/lir/expr/procedure/poly.rs:105
↓ 1 callers
Method
get_op
Get the operation at the given instruction number.
src/asm/std.rs:258
↓ 1 callers
Method
get_ret
Get the return type of the procedure.
src/lir/expr/procedure/mono.rs:100
↓ 1 callers
Method
get_size
Get the size of the global variables. This is the number of cells that the global variables occupy.
src/asm/globals.rs:105
↓ 1 callers
Method
get_size_checked
(&self, env: &Env, i: usize)
src/lir/types/size.rs:45
↓ 1 callers
Method
get_size_of_globals
Get the size of the globals.
src/asm/std.rs:53
↓ 1 callers
Method
get_size_of_globals
Get the size of the globals in the program.
src/asm/core.rs:74
↓ 1 callers
Method
get_type_checked
(&self, env: &Env, i: usize)
src/lir/types/inference.rs:40
↓ 1 callers
Method
get_type_params
(&self)
src/lir/expr/procedure/poly.rs:80
↓ 1 callers
Function
handleError
(f, args)
docs/sage/web/web.js:27
↓ 1 callers
Function
handleHashes
(ev)
docs/static.files/main-5f194d8c.js:1
↓ 1 callers
Method
has_any_associated_const
(&self, ty: &Type)
src/lir/env.rs:551
↓ 1 callers
Method
has_local_variable_declaration
Does this declaration include a local variable declaration?
src/lir/expr/declaration.rs:192
↓ 1 callers
Method
has_precalculated_size
Does the environment have some precalculated size for the given type? This helps the compiler memoize the size of types so that it doesn't have to rec
src/lir/env.rs:1295
↓ 1 callers
Method
has_proc
Does this environment have a procedure with the given name?
src/lir/env.rs:1115
↓ 1 callers
Method
has_type_checked_const
(&self, const_expr: &ConstExpr)
src/lir/env.rs:233
↓ 1 callers
Method
has_variants
Does this type have enum variants?
src/lir/types/mod.rs:915
↓ 1 callers
Function
hideLightAndDark
()
docs/static.files/settings-0f613d39.js:1
↓ 1 callers
Function
hideMain
()
docs/static.files/main-5f194d8c.js:1
↓ 1 callers
Method
if_let_pattern
Generate an `if let`expression, which matches a given `expr`, and executes `then` if the expression matches the pattern, and `else_` otherwise.
src/lir/expr/pattern.rs:460
↓ 1 callers
Method
inc
Increment the value of this location.
src/asm/location.rs:344
↓ 1 callers
Method
index
(&mut self)
src/vm/mod.rs:189
↓ 1 callers
Function
insertAfter
(newNode,referenceNode)
docs/static.files/main-5f194d8c.js:1
↓ 1 callers
Method
insertSubstring
(name,substart,id,tailTable)
docs/static.files/search-92e6798f.js:1
↓ 1 callers
Method
isAccept
(absState)
docs/static.files/search-92e6798f.js:6
← previous
next →
401–500 of 1,185, ranked by callers