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
↓ 4 callers
Function
isReturnArrow
(parserState)
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Function
loadScript
(url,errorCallback)
docs/static.files/main-5f194d8c.js:1
↓ 4 callers
Method
load_vector
(&mut self, n: usize)
src/vm/mod.rs:107
↓ 4 callers
Function
make_error
This formats an error properly given the line, the `unexpected` token as a string, the line number, and the column number of the unexpected token.
src/parse.rs:169
↓ 4 callers
Method
name
(&self)
src/lir/expr/ops/mod.rs:139
↓ 4 callers
Method
next
()
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Function
parse
( input: impl ToString, filename: Option<&str>, include_builtins: bool, include_std: bool, )
src/frontend/mod.rs:13
↓ 4 callers
Function
passStringToWasm0
(arg, malloc, realloc)
docs/sage/web/web.js:57
↓ 4 callers
Method
pop_matching
Pops off the last instruction added with `push_matching`, and matches it with its `End` statement.
src/asm/mod.rs:154
↓ 4 callers
Method
postop
The code after each instruction.
src/targets/mod.rs:86
↓ 4 callers
Function
prevIs
(parserState,lookingFor)
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Method
push_matching
Add a new instruction to be matched with `End`. For example, if the user declares an `If` statement, this will keep track of the `If` and help find it
src/asm/mod.rs:148
↓ 4 callers
Method
reg_mut_scalar
(&mut self)
src/vm/interpreter/std.rs:76
↓ 4 callers
Method
reg_mut_scalar
(&mut self)
examples/web/src/interpreter.rs:63
↓ 4 callers
Function
run_frontend_file
(filename: &str, input: &str)
benches/frontend.rs:85
↓ 4 callers
Function
run_with_gcc
Get output from a program compiled with GCC
benches/frontend.rs:64
↓ 4 callers
Function
setTooltipHoverTimeout
(element,show)
docs/static.files/main-5f194d8c.js:1
↓ 4 callers
Method
set_vector
(&mut self, vector: Vec<i64>)
src/vm/mod.rs:99
↓ 4 callers
Method
simplify_until_union
Simplify a type until it's a union.
src/lir/types/mod.rs:904
↓ 4 callers
Function
start_source_code_tracking
(remaining_input: &str)
src/frontend/parse.rs:1256
↓ 4 callers
Method
transform_method_call
(&self, env: &Env)
src/lir/expr/expression.rs:217
↓ 3 callers
Method
acos
(&self, result: &mut dyn VirtualMachineProgram)
src/asm/location.rs:1071
↓ 3 callers
Function
addTab
(array,query,display)
docs/static.files/search-92e6798f.js:1
↓ 3 callers
Method
asin
(&self, result: &mut dyn VirtualMachineProgram)
src/asm/location.rs:1068
↓ 3 callers
Method
atan
(&self, result: &mut dyn VirtualMachineProgram)
src/asm/location.rs:1074
↓ 3 callers
Method
begin_else
(&mut self)
src/vm/mod.rs:173
↓ 3 callers
Method
begin_if
(&mut self)
src/vm/mod.rs:169
↓ 3 callers
Function
buildUrl
(search,filterCrates)
docs/static.files/search-92e6798f.js:1
↓ 3 callers
Method
build_op
( &mut self, op: &vm::CoreOp, matching_ops: &mut Vec<vm::CoreOp>, matching_fun
src/targets/mod.rs:122
↓ 3 callers
Function
changeSidebarSize
(size)
docs/static.files/main-5f194d8c.js:11
↓ 3 callers
Method
clone_box
Clone this binary operation into a box.
src/lir/expr/ops/logic.rs:70
↓ 3 callers
Function
consumeIdent
(parserState)
docs/static.files/search-92e6798f.js:1
↓ 3 callers
Method
cos
(&self, result: &mut dyn VirtualMachineProgram)
src/asm/location.rs:1061
↓ 3 callers
Function
createScrapeButton
(parent,className,content)
docs/static.files/scrape-examples-d508a8a9.js:1
↓ 3 callers
Method
dec
Decrement the value of this location.
src/asm/location.rs:353
↓ 3 callers
Method
declare_global
Declare a new global variable in the environment with a given size. A global variable is some fixed size, static data allocated by the assembler, and
src/asm/mod.rs:119
↓ 3 callers
Method
define_args
Define the arguments for the current scope (if this is a procedure).
src/lir/env.rs:1159
↓ 3 callers
Method
define_proc
Define a procedure with a given name under this environment.
src/lir/env.rs:1079
↓ 3 callers
Method
define_static_var
Define a static variable with a given name under this environment.
src/lir/env.rs:974
↓ 3 callers
Function
end_source_code_tracking
(remaining_input: &str)
src/frontend/parse.rs:1261
↓ 3 callers
Method
flatten
Flatten a multi-declaration into a single-dimensional vector of declarations.
src/lir/expr/declaration.rs:178
↓ 3 callers
Function
format_error
This is used to take an LALRPOP error and convert it into a nicely formatted error message
src/parse.rs:239
↓ 3 callers
Function
getNakedUrl
()
docs/static.files/main-5f194d8c.js:1
↓ 3 callers
Method
get_all_associated_consts
(&self, ty: &Type)
src/lir/env.rs:525
↓ 3 callers
Method
get_assignop
(&self, op: &str)
src/lir/env.rs:195
↓ 3 callers
Method
get_binop
(&self, op: &str)
src/lir/env.rs:187
↓ 3 callers
Method
get_branch_result_type
Get the type of a branch with a given expression matched to this pattern.
src/lir/expr/pattern.rs:66
↓ 3 callers
Method
get_char
(&mut self)
src/vm/interpreter/mod.rs:108
↓ 3 callers
Method
get_int
(&mut self)
examples/web/src/device.rs:121
↓ 3 callers
Method
get_ternop
(&self, op: &str)
src/lir/env.rs:191
↓ 3 callers
Method
get_type_checked
(&self, env: &Env, i: usize)
src/lir/expr/const_expr.rs:603
↓ 3 callers
Method
get_unop
(&self, op: &str)
src/lir/env.rs:183
↓ 3 callers
Method
has_location
Does this annotation have a location?
src/lir/annotate.rs:46
↓ 3 callers
Function
isSeparatorCharacter
(c)
docs/static.files/search-92e6798f.js:1
↓ 3 callers
Method
is_atomic
Is this type an irreducible, atomic type?
src/lir/types/mod.rs:791
↓ 3 callers
Method
jmp_to_end
Jump to the matching "End" for this "Else", "While", or "Function" instruction.
src/vm/interpreter/std.rs:192
↓ 3 callers
Method
jmp_to_end
Jump to the matching "End" for this "Else", "While", or "Function" instruction.
src/vm/interpreter/core.rs:179
↓ 3 callers
Method
jmp_to_end
Jump to the matching "End" for this "Else", "While", or "Function" instruction.
examples/web/src/interpreter.rs:179
↓ 3 callers
Function
loadSearch
()
docs/static.files/main-5f194d8c.js:1
↓ 3 callers
Method
matches
Does this pattern match the given expression? This function returns an expression which evaluates to true if the expression matches the pattern.
src/lir/expr/pattern.rs:724
↓ 3 callers
Method
new_scope
Create a copy of the current environment but without any variables or arguments defined.
src/lir/env.rs:200
↓ 3 callers
Method
op
(&mut self, op: &CoreOp)
src/targets/c.rs:33
↓ 3 callers
Method
output_vals
(&self)
src/vm/interpreter/mod.rs:189
↓ 3 callers
Function
parse_const
( input: &'a str, )
src/frontend/parse.rs:3650
↓ 3 callers
Function
parse_lir
Parse LIR code as an LIR expression.
src/parse.rs:136
↓ 3 callers
Method
prev
Take the pointer value of this location, and make it point `count` number of cells to the left of its original position.
src/asm/location.rs:311
↓ 3 callers
Function
printTab
(nb)
docs/static.files/search-92e6798f.js:1
↓ 3 callers
Function
restore_source_code_setup
()
src/frontend/parse.rs:1196
↓ 3 callers
Method
return_type_from_types
(&self, lhs: &Type, rhs: &Type, env: &Env)
src/lir/expr/ops/arithmetic/addition.rs:12
↓ 3 callers
Method
save_type_checked_const
(&self, const_expr: ConstExpr)
src/lir/env.rs:240
↓ 3 callers
Function
scrollToLoc
(elt,loc,isHidden)
docs/static.files/scrape-examples-d508a8a9.js:1
↓ 3 callers
Method
set_float_vector
(&mut self, vector: Vec<f64>)
src/vm/mod.rs:95
↓ 3 callers
Function
setup_source_code_locations
(program: &str, filename: Option<String>)
src/frontend/parse.rs:1222
↓ 3 callers
Function
showTooltip
(e)
docs/static.files/main-5f194d8c.js:1
↓ 3 callers
Method
simplify_until_simple
(&self, env: &Env, checked: bool)
src/lir/types/mod.rs:960
↓ 3 callers
Method
sin
(&self, result: &mut dyn VirtualMachineProgram)
src/asm/location.rs:1058
↓ 3 callers
Method
sub_float
This cell -= source cell.
src/asm/location.rs:955
↓ 3 callers
Method
substitute
(&mut self, name: &str, substitution: &Type)
src/lir/expr/const_expr.rs:925
↓ 3 callers
Function
switchDisplayedElement
(elemToDisplay)
docs/static.files/main-5f194d8c.js:1
↓ 3 callers
Method
tan
(&self, result: &mut dyn VirtualMachineProgram)
src/asm/location.rs:1064
↓ 3 callers
Method
type_param_names
(&self)
src/lir/expr/procedure/poly.rs:109
↓ 3 callers
Function
unassert_parse_const
(input: &str)
src/frontend/parse.rs:4405
↓ 3 callers
Method
vec_copy_to
( &self, dst: &Self, size: usize, result: &mut dyn VirtualMachineProgram,
src/asm/location.rs:533
↓ 3 callers
Method
whole_int
Take the value at this location. If it is a whole number (>= 0), then the value of this location is now 1. Otherwise, the value is 0.
src/asm/location.rs:321
↓ 3 callers
Method
with
Return this expression, but with a given declaration in scope.
src/lir/expr/const_expr.rs:154
↓ 2 callers
Function
__wbg_finalize_init
(instance, module)
docs/sage/web/web.js:364
↓ 2 callers
Function
__wbg_get_imports
()
docs/sage/web/web.js:218
↓ 2 callers
Function
__wbg_init_memory
(imports, memory)
docs/sage/web/web.js:360
↓ 2 callers
Function
addWhereLineFn
()
docs/static.files/search-92e6798f.js:5
↓ 2 callers
Method
add_binding
( &mut self, ffi: FFIBinding, f: fn(&mut VecDeque<i64>, Option<&mut Vec<i64>>), )
src/vm/interpreter/mod.rs:291
↓ 2 callers
Method
add_binding
( &mut self, ffi: FFIBinding, f: fn(&mut VecDeque<i64>, Option<&mut Vec<i64>>), )
examples/web/src/device.rs:86
↓ 2 callers
Method
add_global
Add a global variable to the list of globals.
src/asm/globals.rs:88
↓ 2 callers
Method
add_local_variable_declaration
Add a single variable declaration to this environment. These are declarations for variables that are defined at runtime. Types, constants, and procedu
src/lir/env.rs:914
↓ 2 callers
Method
and
Perform boolean and on the value of this cell and a source cell.
src/asm/location.rs:794
↓ 2 callers
Method
annotate_with_source
(self, code: &str)
src/cli.rs:141
↓ 2 callers
Method
as_type
Cast an expression as another type.
src/lir/expr/expression.rs:506
↓ 2 callers
Function
buildHelpMenu
()
docs/static.files/main-5f194d8c.js:1
↓ 2 callers
Method
build_std_op
( &mut self, std_op: &vm::StandardOp, matching_ops: &mut Vec<vm::CoreOp>, matc
src/targets/mod.rs:195
↓ 2 callers
Function
changeSetting
(settingName,value)
docs/static.files/settings-0f613d39.js:1
↓ 2 callers
Function
collapseAllDocs
()
docs/static.files/main-5f194d8c.js:1
← previous
next →
201–300 of 1,185, ranked by callers