MCPcopy Create free account

hub / github.com/adam-mcdaniel/sage / functions

Functions1,185 in github.com/adam-mcdaniel/sage

↓ 9 callersMethoddefine_const
Define a constant with a given name under this environment.
src/lir/env.rs:1050
↓ 9 callersMethodlog_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 callersFunctionparse_expr
( input: &'a str, )
src/frontend/parse.rs:3219
↓ 9 callersFunctionparse_type
( input: &'a str, )
src/frontend/parse.rs:3211
↓ 9 callersMethodreg_scalar
(&self)
src/vm/interpreter/std.rs:72
↓ 9 callersMethodreg_scalar
(&self)
examples/web/src/interpreter.rs:59
↓ 9 callersMethodreg_vector
(&self)
src/vm/interpreter/core.rs:69
↓ 9 callersMethodsave_to
Save the value of the virtual machine's register to this location.
src/asm/location.rs:330
↓ 8 callersMethodas_int
Try to get this constant expression as an integer.
src/lir/expr/const_expr.rs:531
↓ 8 callersMethodcan_apply
Can this unary operation be applied to the given type?
src/lir/expr/ops/io.rs:16
↓ 8 callersMethodfield
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 callersMethodfilter
Filter all the subdeclarations to satisfy some condition.
src/lir/expr/declaration.rs:122
↓ 8 callersFunctiongetDataViewMemory0
()
docs/sage/web/web.js:98
↓ 8 callersFunctiongetHelpButton
()
docs/static.files/main-5f194d8c.js:1
↓ 8 callersFunctiongetStringFromWasm0
(ptr, len)
docs/sage/web/web.js:16
↓ 8 callersMethodget_const
Get a constant definition from this environment.
src/lir/env.rs:1074
↓ 8 callersMethodget_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 callersFunctionmakePrimitiveElement
(name,extra)
docs/static.files/search-92e6798f.js:1
↓ 8 callersFunctiononEachBtwn
(arr,func,funcBtwn)
docs/static.files/search-92e6798f.js:1
↓ 8 callersFunctionparse_frontend
Parse frontend sage code into an LIR expression.
src/parse.rs:151
↓ 8 callersMethodreg_scalar
(&self)
src/vm/interpreter/core.rs:61
↓ 8 callersMethodsimplify_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 callersFunctionwrite_file
Write some contents to a file.
src/cli.rs:452
↓ 7 callersFunctionaddToExternrefTable0
(obj)
docs/sage/web/web.js:21
↓ 7 callersMethodadd_declaration
Add all the declarations to this environment.
src/lir/env.rs:688
↓ 7 callersMethodand
Logical and this expression with another.
src/lir/expr/expression.rs:582
↓ 7 callersMethodannotate
Annotate this constant expression with a source code location.
src/lir/expr/const_expr.rs:181
↓ 7 callersMethodclone_box
(&self)
src/lir/expr/ops/arithmetic/addition.rs:336
↓ 7 callersMethodcompile
Compiles the operation on the given expression.
src/lir/expr/ops/mod.rs:189
↓ 7 callersMethoddefine_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 callersMethoddiscard_type_wrapper
Discard the wrappers of Type::Type and Type::Nominal
src/lir/types/mod.rs:237
↓ 7 callersMethodhas_associated_const
(&self, ty: &Type, name: &str)
src/lir/env.rs:521
↓ 7 callersMethodmove_pointer
(&mut self, cells: isize)
src/vm/mod.rs:151
↓ 7 callersFunctionparse_symbol
( input: &'a str, )
src/frontend/parse.rs:4205
↓ 7 callersMethodreturn_type
Gets the type of the operation on the given expression.
src/lir/expr/ops/mod.rs:160
↓ 7 callersMethodsimplify_until_has_variants
Simplify a type until you can get its variants.
src/lir/types/mod.rs:928
↓ 6 callersFunctionbrowserSupportsHistoryApi
()
docs/static.files/main-5f194d8c.js:1
↓ 6 callersMethodbuild_std
(&mut self, program: &crate::vm::StandardProgram)
src/targets/sage_lisp.rs:104
↓ 6 callersMethodcan_apply_exprs
Checks if the operation can be applied to the given expression.
src/lir/expr/ops/mod.rs:183
↓ 6 callersMethodcomment
Insert a comment into the program.
src/asm/mod.rs:58
↓ 6 callersMethoddiv
This cell /= source cell.
src/asm/location.rs:907
↓ 6 callersFunctionisLikeNone
(x)
docs/sage/web/web.js:36
↓ 6 callersMethodis_method_call
(&self, env: &Env)
src/lir/expr/expression.rs:140
↓ 6 callersMethodis_recursive
(&self, env: &Env)
src/lir/types/mod.rs:218
↓ 6 callersFunctionis_symbol_char
(c: char)
src/frontend/parse.rs:4201
↓ 6 callersFunctionparse_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 callersMethodset_register
(&mut self, val: i64)
src/vm/mod.rs:157
↓ 6 callersMethodsimplify_until_poly
Simplify until the type is a polymorphic type.
src/lir/types/mod.rs:971
↓ 6 callersFunctionskipWhitespace
(parserState)
docs/static.files/search-92e6798f.js:1
↓ 6 callersMethodstd_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 callersMethodvec_std_binop
( &self, op: vm::StandardOp, src: &Self, size: usize, result: &mut dyn
src/asm/location.rs:699
↓ 5 callersMethodadd_associated_const
( &self, ty: Type, associated_const_name: impl ToString, expr: ConstExpr,
src/lir/env.rs:669
↓ 5 callersMethodapp
Apply this expression as a procedure to some arguments.
src/lir/expr/expression.rs:740
↓ 5 callersMethodbuildFunctionTypeFingerprint
(type,output)
docs/static.files/search-92e6798f.js:1
↓ 5 callersMethodbuildItemSearchTypeAll
(types,paths,lowercasePaths)
docs/static.files/search-92e6798f.js:1
↓ 5 callersMethodbuild_core
(&mut self, program: &crate::vm::CoreProgram)
src/targets/sage_lisp.rs:90
↓ 5 callersFunctionclearTooltipHoverTimeout
(element)
docs/static.files/main-5f194d8c.js:1
↓ 5 callersMethodcompile_expr
(self, env: &mut Env, output: &mut dyn AssemblyProgram)
src/lir/compile.rs:79
↓ 5 callersFunctioncompile_source_to_vm
Compile a given source language to virtual machine code.
src/cli.rs:228
↓ 5 callersFunctioneditDistance
(a,b,limit)
docs/static.files/search-92e6798f.js:1
↓ 5 callersMethodfetch
Fetch the current instruction pointed to in the program
src/vm/interpreter/std.rs:89
↓ 5 callersMethodfetch
Fetch the current instruction pointed to in the program
src/vm/interpreter/core.rs:78
↓ 5 callersMethodfetch
Fetch the current instruction pointed to in the program
examples/web/src/interpreter.rs:76
↓ 5 callersMethodfrom
(core: CoreProgram)
src/asm/std.rs:264
↓ 5 callersMethodget
(&mut self, src: Input)
src/vm/interpreter/mod.rs:196
↓ 5 callersMethodget_self_param_mutability
Get the first argument's mutability (if it is a pointer)
src/lir/types/mod.rs:828
↓ 5 callersMethodget_var
Get a variable's type and its offset from the frame pointer in the current scope.
src/lir/env.rs:1143
↓ 5 callersFunctionhideSidebar
()
docs/static.files/main-5f194d8c.js:1
↓ 5 callersFunctionhideTooltip
(focus)
docs/static.files/main-5f194d8c.js:1
↓ 5 callersMethodis_compile_time_declaration
Is this a compile time declaration?
src/lir/expr/declaration.rs:204
↓ 5 callersFunctionmakeTabHeader
(tabNb,text,nbElems)
docs/static.files/search-92e6798f.js:5
↓ 5 callersMethodmemoize_associated_const
( &self, ty: &Type, name: &str, constant: ConstExpr, expr_ty: Type,
src/lir/env.rs:496
↓ 5 callersMethodname
(&self)
src/targets/c.rs:266
↓ 5 callersMethodnot
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 callersMethodoutput_str
Get the output of the testing device as a string (ascii).
src/vm/interpreter/mod.rs:180
↓ 5 callersFunctionsearch
(forced)
docs/static.files/search-92e6798f.js:6
↓ 4 callersMethodas_bool
Try to get this constant expression as a boolean value.
src/lir/expr/const_expr.rs:567
↓ 4 callersMethodbuildItemSearchType
(type,paths,lowercasePaths,isAssocType)
docs/static.files/search-92e6798f.js:1
↓ 4 callersMethodcan_cast_to
Can this type be cast to another type?
src/lir/types/mod.rs:1411
↓ 4 callersMethodcmp
(&self, other: &Self)
src/lir/expr/ops/mod.rs:542
↓ 4 callersMethodcompile_types
Compile the unary operation.
src/lir/expr/ops/io.rs:40
↓ 4 callersFunctioncompile_with_gcc
(filename: &str)
benches/frontend.rs:34
↓ 4 callersMethodcontains_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 callersMethoddecode
()
docs/static.files/search-92e6798f.js:1
↓ 4 callersMethodend
(&mut self, matching: &CoreOp, fun: Option<usize>)
src/targets/c.rs:255
↓ 4 callersMethodeq
Is this expression greater than another?
src/lir/expr/expression.rs:572
↓ 4 callersMethodeval
(&self, lhs: &ConstExpr, rhs: &ConstExpr, env: &mut Env)
src/lir/expr/ops/arithmetic/addition.rs:72
↓ 4 callersFunctionflatten
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 callersFunctionflatten
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 callersFunctiongetFilteredNextElem
(query,parserState,elems,isInGenerics)
docs/static.files/search-92e6798f.js:1
↓ 4 callersFunctiongetItemsBefore
(query,parserState,elems,endChar)
docs/static.files/search-92e6798f.js:1
↓ 4 callersFunctiongetUint8ArrayMemory0
()
docs/sage/web/web.js:9
↓ 4 callersMethodget_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 callersMethodget_int
(&mut self)
src/vm/interpreter/mod.rs:112
↓ 4 callersFunctionget_line
Gets the line number, the line, and the column number of the error
src/parse.rs:193
↓ 4 callersMethodget_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 callersMethodget_template_params
Get the template parameters for this template type.
src/lir/types/mod.rs:676
↓ 4 callersMethodidx
Index an array or pointer with an expression that evaluates to an `Int` at runtime.
src/lir/expr/expression.rs:649
↓ 4 callersFunctionisEndCharacter
(c)
docs/static.files/search-92e6798f.js:1
↓ 4 callersFunctionisPathStart
(parserState)
docs/static.files/search-92e6798f.js:1
← previousnext →101–200 of 1,185, ranked by callers