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
↓ 9 callers
Method
define_const
Define a constant with a given name under this environment.
src/lir/env.rs:1050
↓ 9 callers
Method
log_instructions_after
Log all the instructions after the given instruction number. The `target` is an identifier for the instructions being logged. This is used to search f
src/asm/mod.rs:76
↓ 9 callers
Function
parse_expr
( input: &'a str, )
src/frontend/parse.rs:3219
↓ 9 callers
Function
parse_type
( input: &'a str, )
src/frontend/parse.rs:3211
↓ 9 callers
Method
reg_scalar
(&self)
src/vm/interpreter/std.rs:72
↓ 9 callers
Method
reg_scalar
(&self)
examples/web/src/interpreter.rs:59
↓ 9 callers
Method
reg_vector
(&self)
src/vm/interpreter/core.rs:69
↓ 9 callers
Method
save_to
Save the value of the virtual machine's register to this location.
src/asm/location.rs:330
↓ 8 callers
Method
as_int
Try to get this constant expression as an integer.
src/lir/expr/const_expr.rs:531
↓ 8 callers
Method
can_apply
Can this unary operation be applied to the given type?
src/lir/expr/ops/io.rs:16
↓ 8 callers
Method
field
Get a field from a structure, union, or tuple. For tuples, use an `Int` constant expression to access the nth field (zero indexed). For unions or str
src/lir/expr/const_expr.rs:217
↓ 8 callers
Method
filter
Filter all the subdeclarations to satisfy some condition.
src/lir/expr/declaration.rs:122
↓ 8 callers
Function
getDataViewMemory0
()
docs/sage/web/web.js:98
↓ 8 callers
Function
getHelpButton
()
docs/static.files/main-5f194d8c.js:1
↓ 8 callers
Function
getStringFromWasm0
(ptr, len)
docs/sage/web/web.js:16
↓ 8 callers
Method
get_const
Get a constant definition from this environment.
src/lir/env.rs:1074
↓ 8 callers
Method
get_member_offset
Get the type and offset of a member of a type. This will confirm the member exists, and then get its type and offset in memory from the base address o
src/lir/types/mod.rs:2006
↓ 8 callers
Function
makePrimitiveElement
(name,extra)
docs/static.files/search-92e6798f.js:1
↓ 8 callers
Function
onEachBtwn
(arr,func,funcBtwn)
docs/static.files/search-92e6798f.js:1
↓ 8 callers
Function
parse_frontend
Parse frontend sage code into an LIR expression.
src/parse.rs:151
↓ 8 callers
Method
reg_scalar
(&self)
src/vm/interpreter/core.rs:61
↓ 8 callers
Method
simplify_until_matches
Simplify an expression until it matches a given function which "approves" of a type. This will perform template applications to simplify the type if p
src/lir/types/mod.rs:1059
↓ 8 callers
Function
write_file
Write some contents to a file.
src/cli.rs:452
↓ 7 callers
Function
addToExternrefTable0
(obj)
docs/sage/web/web.js:21
↓ 7 callers
Method
add_declaration
Add all the declarations to this environment.
src/lir/env.rs:688
↓ 7 callers
Method
and
Logical and this expression with another.
src/lir/expr/expression.rs:582
↓ 7 callers
Method
annotate
Annotate this constant expression with a source code location.
src/lir/expr/const_expr.rs:181
↓ 7 callers
Method
clone_box
(&self)
src/lir/expr/ops/arithmetic/addition.rs:336
↓ 7 callers
Method
compile
Compiles the operation on the given expression.
src/lir/expr/ops/mod.rs:189
↓ 7 callers
Method
define_var
Define a variable in the current scope. This will increment the scope's frame pointer offset by the size of the variable. This method returns the offs
src/lir/env.rs:1206
↓ 7 callers
Method
discard_type_wrapper
Discard the wrappers of Type::Type and Type::Nominal
src/lir/types/mod.rs:237
↓ 7 callers
Method
has_associated_const
(&self, ty: &Type, name: &str)
src/lir/env.rs:521
↓ 7 callers
Method
move_pointer
(&mut self, cells: isize)
src/vm/mod.rs:151
↓ 7 callers
Function
parse_symbol
( input: &'a str, )
src/frontend/parse.rs:4205
↓ 7 callers
Method
return_type
Gets the type of the operation on the given expression.
src/lir/expr/ops/mod.rs:160
↓ 7 callers
Method
simplify_until_has_variants
Simplify a type until you can get its variants.
src/lir/types/mod.rs:928
↓ 6 callers
Function
browserSupportsHistoryApi
()
docs/static.files/main-5f194d8c.js:1
↓ 6 callers
Method
build_std
(&mut self, program: &crate::vm::StandardProgram)
src/targets/sage_lisp.rs:104
↓ 6 callers
Method
can_apply_exprs
Checks if the operation can be applied to the given expression.
src/lir/expr/ops/mod.rs:183
↓ 6 callers
Method
comment
Insert a comment into the program.
src/asm/mod.rs:58
↓ 6 callers
Method
div
This cell /= source cell.
src/asm/location.rs:907
↓ 6 callers
Function
isLikeNone
(x)
docs/sage/web/web.js:36
↓ 6 callers
Method
is_method_call
(&self, env: &Env)
src/lir/expr/expression.rs:140
↓ 6 callers
Method
is_recursive
(&self, env: &Env)
src/lir/types/mod.rs:218
↓ 6 callers
Function
is_symbol_char
(c: char)
src/frontend/parse.rs:4201
↓ 6 callers
Function
parse_asm
Parse Core and Standard variants of assembly source code. This will return core code by default, but will fallback on standard.
src/parse.rs:117
↓ 6 callers
Method
set_register
(&mut self, val: i64)
src/vm/mod.rs:157
↓ 6 callers
Method
simplify_until_poly
Simplify until the type is a polymorphic type.
src/lir/types/mod.rs:971
↓ 6 callers
Function
skipWhitespace
(parserState)
docs/static.files/search-92e6798f.js:1
↓ 6 callers
Method
std_binop
Perform a `StandardOp` as an abstract binary operation. Essentially, if you pass an instruction such as `Add`, `Sub`, etc., then the corresponding ope
src/asm/location.rs:730
↓ 6 callers
Method
vec_std_binop
( &self, op: vm::StandardOp, src: &Self, size: usize, result: &mut dyn
src/asm/location.rs:699
↓ 5 callers
Method
add_associated_const
( &self, ty: Type, associated_const_name: impl ToString, expr: ConstExpr,
src/lir/env.rs:669
↓ 5 callers
Method
app
Apply this expression as a procedure to some arguments.
src/lir/expr/expression.rs:740
↓ 5 callers
Method
buildFunctionTypeFingerprint
(type,output)
docs/static.files/search-92e6798f.js:1
↓ 5 callers
Method
buildItemSearchTypeAll
(types,paths,lowercasePaths)
docs/static.files/search-92e6798f.js:1
↓ 5 callers
Method
build_core
(&mut self, program: &crate::vm::CoreProgram)
src/targets/sage_lisp.rs:90
↓ 5 callers
Function
clearTooltipHoverTimeout
(element)
docs/static.files/main-5f194d8c.js:1
↓ 5 callers
Method
compile_expr
(self, env: &mut Env, output: &mut dyn AssemblyProgram)
src/lir/compile.rs:79
↓ 5 callers
Function
compile_source_to_vm
Compile a given source language to virtual machine code.
src/cli.rs:228
↓ 5 callers
Function
editDistance
(a,b,limit)
docs/static.files/search-92e6798f.js:1
↓ 5 callers
Method
fetch
Fetch the current instruction pointed to in the program
src/vm/interpreter/std.rs:89
↓ 5 callers
Method
fetch
Fetch the current instruction pointed to in the program
src/vm/interpreter/core.rs:78
↓ 5 callers
Method
fetch
Fetch the current instruction pointed to in the program
examples/web/src/interpreter.rs:76
↓ 5 callers
Method
from
(core: CoreProgram)
src/asm/std.rs:264
↓ 5 callers
Method
get
(&mut self, src: Input)
src/vm/interpreter/mod.rs:196
↓ 5 callers
Method
get_self_param_mutability
Get the first argument's mutability (if it is a pointer)
src/lir/types/mod.rs:828
↓ 5 callers
Method
get_var
Get a variable's type and its offset from the frame pointer in the current scope.
src/lir/env.rs:1143
↓ 5 callers
Function
hideSidebar
()
docs/static.files/main-5f194d8c.js:1
↓ 5 callers
Function
hideTooltip
(focus)
docs/static.files/main-5f194d8c.js:1
↓ 5 callers
Method
is_compile_time_declaration
Is this a compile time declaration?
src/lir/expr/declaration.rs:204
↓ 5 callers
Function
makeTabHeader
(tabNb,text,nbElems)
docs/static.files/search-92e6798f.js:5
↓ 5 callers
Method
memoize_associated_const
( &self, ty: &Type, name: &str, constant: ConstExpr, expr_ty: Type,
src/lir/env.rs:496
↓ 5 callers
Method
name
(&self)
src/targets/c.rs:266
↓ 5 callers
Method
not
If this cell is non-zero, then the value of this location is now 0. Otherwise, the value of this location is now 1. Perform boolean not on the value
src/asm/location.rs:785
↓ 5 callers
Method
output_str
Get the output of the testing device as a string (ascii).
src/vm/interpreter/mod.rs:180
↓ 5 callers
Function
search
(forced)
docs/static.files/search-92e6798f.js:6
↓ 4 callers
Method
as_bool
Try to get this constant expression as a boolean value.
src/lir/expr/const_expr.rs:567
↓ 4 callers
Method
buildItemSearchType
(type,paths,lowercasePaths,isAssocType)
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Method
can_cast_to
Can this type be cast to another type?
src/lir/types/mod.rs:1411
↓ 4 callers
Method
cmp
(&self, other: &Self)
src/lir/expr/ops/mod.rs:542
↓ 4 callers
Method
compile_types
Compile the unary operation.
src/lir/expr/ops/io.rs:40
↓ 4 callers
Function
compile_with_gcc
(filename: &str)
benches/frontend.rs:34
↓ 4 callers
Method
contains_symbol
Does this type contain a symbol with the given name? This will not count overshadowded versions of the symbol (overwritten by let-bindings).
src/lir/types/mod.rs:1095
↓ 4 callers
Method
decode
()
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Method
end
(&mut self, matching: &CoreOp, fun: Option<usize>)
src/targets/c.rs:255
↓ 4 callers
Method
eq
Is this expression greater than another?
src/lir/expr/expression.rs:572
↓ 4 callers
Method
eval
(&self, lhs: &ConstExpr, rhs: &ConstExpr, env: &mut Env)
src/lir/expr/ops/arithmetic/addition.rs:72
↓ 4 callers
Function
flatten
Take all of the functions defined in a list of StandardOps, and flatten their definitions. This will take nested functions and un-nest them while pres
src/vm/std.rs:147
↓ 4 callers
Function
flatten
Take all of the functions defined in a list of CoreOps, and flatten their definitions. This will take nested functions and un-nest them while preservi
src/vm/core.rs:60
↓ 4 callers
Function
getFilteredNextElem
(query,parserState,elems,isInGenerics)
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Function
getItemsBefore
(query,parserState,elems,endChar)
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Function
getUint8ArrayMemory0
()
docs/sage/web/web.js:9
↓ 4 callers
Method
get_bindings
Get the map of new variables and their types which are bound by this pattern. For example `(a, b)` binds the variables `a` and `b` to the first and s
src/lir/expr/pattern.rs:555
↓ 4 callers
Method
get_int
(&mut self)
src/vm/interpreter/mod.rs:112
↓ 4 callers
Function
get_line
Gets the line number, the line, and the column number of the error
src/parse.rs:193
↓ 4 callers
Method
get_static_var
Get a static variable definition from this environment. This contains: 1. The mutability of the variable. 2. The type of the variable. 3. The location
src/lir/env.rs:996
↓ 4 callers
Method
get_template_params
Get the template parameters for this template type.
src/lir/types/mod.rs:676
↓ 4 callers
Method
idx
Index an array or pointer with an expression that evaluates to an `Int` at runtime.
src/lir/expr/expression.rs:649
↓ 4 callers
Function
isEndCharacter
(c)
docs/static.files/search-92e6798f.js:1
↓ 4 callers
Function
isPathStart
(parserState)
docs/static.files/search-92e6798f.js:1
← previous
next →
101–200 of 1,185, ranked by callers