Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TomBebbington/js.rs
/ functions
Functions
209 in github.com/TomBebbington/js.rs
⨍
Functions
209
◇
Types & classes
33
Method
compile_log_op
(&'a self, op:LogOp, left:&Expr, right:&Expr)
src/lib/back/compiler.rs:120
Method
compile_num_op
(&'a self, op:NumOp, left:&Expr, right:&Expr)
src/lib/back/compiler.rs:95
Method
compile_return
(&'a self, val:Option<Box<Expr>>)
src/lib/back/compiler.rs:162
Method
compile_unary_op
(&'a self, op:UnaryOp, val:&Expr)
src/lib/back/compiler.rs:150
Function
cos
Get the cosine of a number
src/lib/front/stdlib/math.rs:63
Function
decode_uri
Decode a URI
src/lib/front/stdlib/uri.rs:16
Function
decode_uri_component
Decode a URI component
src/lib/front/stdlib/uri.rs:21
Method
default
()
src/lib/front/run/executor.rs:33
Function
define_prop
Define a property in an object
src/lib/front/stdlib/object.rs:80
Method
div
(&self, other:&Value)
src/lib/front/stdlib/value.rs:343
Function
encode_uri
Encode a URI
src/lib/front/stdlib/uri.rs:6
Function
encode_uri_component
Encode a URI component
src/lib/front/stdlib/uri.rs:11
Method
eq
(&self, other:&Value)
src/lib/front/stdlib/value.rs:288
Function
error
Print a javascript value to the standard error stream
src/lib/front/stdlib/console.rs:12
Function
exp
Get the power to raise the natural logarithm to get the number
src/lib/front/stdlib/math.rs:71
Function
floor
Get the highest integer below a number
src/lib/front/stdlib/math.rs:79
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib/syntax/parser.rs:31
Method
fmt
(&self, f: &mut Formatter)
src/lib/syntax/ast/types.rs:39
Method
fmt
(&self, f: &mut Formatter)
src/lib/syntax/ast/constant.rs:22
Method
fmt
(&self, f: &mut Formatter)
src/lib/syntax/ast/punc.rs:105
Method
fmt
(&self, f: &mut Formatter)
src/lib/syntax/ast/keyword.rs:108
Method
fmt
(&self, f: &mut Formatter)
src/lib/syntax/ast/op.rs:29
Method
fmt
(&self, f: &mut Formatter)
src/lib/syntax/ast/expr.rs:23
Method
fmt
(&self, f: &mut Formatter)
src/lib/syntax/ast/token.rs:23
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib/front/stdlib/value.rs:252
Method
from_json
Convert from a JSON value to a JS value
src/lib/front/stdlib/value.rs:212
Method
from_str
(s: &str)
src/lib/syntax/ast/keyword.rs:70
Method
from_value
(v:Value)
src/lib/front/stdlib/value.rs:410
Method
from_value
(v:Value)
src/lib/front/stdlib/object.rs:52
Method
get_assoc
(&self)
src/lib/syntax/ast/expr.rs:74
Method
get_global
Get a field of the global object
src/lib/front/run/executor.rs:15
Method
get_precedence
(&self)
src/lib/syntax/ast/expr.rs:80
Function
get_proto_of
Get the prototype of an object
src/lib/front/stdlib/object.rs:68
Function
get_string_length
Get a string's length
src/lib/front/stdlib/string.rs:11
Function
has_own_prop
Check if it has a property
src/lib/front/stdlib/object.rs:92
Function
init
Initialise the global object with the `console` object
src/lib/front/stdlib/console.rs:28
Function
init
Initialise the parse functions and `Number` on the global object
src/lib/front/stdlib/number.rs:75
Function
init
Initialise the global object with the `Boolean` object
src/lib/front/stdlib/boolean.rs:14
Function
init
Initialise the global object with the `Array` object
src/lib/front/stdlib/array.rs:15
Function
init
Initialise the `String` object on the global object
src/lib/front/stdlib/string.rs:32
Function
init
Initialise the global object with the `JSON` object
src/lib/front/stdlib/json.rs:30
Function
init
Initialise the `Object` object on the global object
src/lib/front/stdlib/object.rs:117
Function
init
Initialise the global object with the `Error` object
src/lib/front/stdlib/error.rs:30
Function
init
Initialise the `Math` object on the global object
src/lib/front/stdlib/math.rs:191
Function
init
Initialise the global object with the `Function` object
src/lib/front/stdlib/function.rs:39
Method
is_double
Returns true if the value is a 64-bit floating-point number
src/lib/front/stdlib/value.rs:111
Function
is_finite
Check if a value when converted to a number is finite
src/lib/front/stdlib/number.rs:21
Function
is_nan
Check if a value when converted to a number is equal to NaN
src/lib/front/stdlib/number.rs:41
Method
is_null
Returns true if the value is null
src/lib/front/stdlib/value.rs:97
Method
is_object
Returns true if the value is an object
src/lib/front/stdlib/value.rs:83
Method
is_undefined
Returns true if the value is undefined
src/lib/front/stdlib/value.rs:90
Method
lex_str
Processes an input stream from a string into an array of tokens
src/lib/syntax/lexer.rs:81
Function
log
Print a javascript value to the standard output stream
src/lib/front/stdlib/console.rs:6
Function
log
Get the natural logarithm of a number
src/lib/front/stdlib/math.rs:87
Function
main
The main function
src/bin/bin.rs:28
Method
make
Create a function from function data and arguments
src/lib/front/stdlib/function.rs:25
Function
make_array
Create a new array
src/lib/front/stdlib/array.rs:5
Function
make_boolean
Create a new boolean
src/lib/front/stdlib/boolean.rs:5
Function
make_error
Create a new error
src/lib/front/stdlib/error.rs:6
Function
make_object
Create a new object
src/lib/front/stdlib/object.rs:64
Function
make_string
Create new string
src/lib/front/stdlib/string.rs:6
Function
max
Get the maximum of several numbers
src/lib/front/stdlib/math.rs:95
Function
min
Get the minimum of several numbers
src/lib/front/stdlib/math.rs:104
Method
mul
(&self, other:&Value)
src/lib/front/stdlib/value.rs:338
Method
neg
(&self)
src/lib/front/stdlib/value.rs:383
Method
new
Creates a new parser, using `tokens` as input
src/lib/syntax/parser.rs:67
Method
new
Creates a new lexer with empty buffers
src/lib/syntax/lexer.rs:64
Method
new
Create a new position
src/lib/syntax/ast/pos.rs:11
Method
new
Create a new expression with a starting and ending position
src/lib/syntax/ast/expr.rs:18
Method
new
Create a new detailed token from the token data, line number and column number
src/lib/syntax/ast/token.rs:15
Method
new
Move some value data into a new value
src/lib/front/stdlib/value.rs:52
Method
new
Make a new property with the given value
src/lib/front/stdlib/object.rs:27
Method
new
Make a new function
src/lib/front/stdlib/function.rs:19
Method
new
Construct a new JIT Compiler on the given context
src/lib/back/compiler.rs:26
Method
new
(config:&ExecutorConfig)
src/lib/back/executor.rs:28
Method
new
Create a new unit tester
src/bin/tests.rs:39
Method
new
Create a new interactive mode info
src/bin/interactive.rs:21
Method
new
Create a new interactive mode info
src/bin/runner.rs:18
Method
new_global
Create a new global object
src/lib/front/stdlib/value.rs:58
Method
new_obj
Returns a new empty object
src/lib/front/stdlib/value.rs:74
Method
normalise
Normalise the type
src/lib/syntax/ast/types.rs:31
Method
not
(&self)
src/lib/front/stdlib/value.rs:378
Function
parse
Parse a JSON string into a Javascript object
src/lib/front/stdlib/json.rs:5
Function
parse_float
Parse a float into a value
src/lib/front/stdlib/number.rs:5
Function
parse_int
Parse an int into a value
src/lib/front/stdlib/number.rs:13
Method
partial_cmp
(&self, other: &Value)
src/lib/front/stdlib/value.rs:388
Function
pow
Raise a number to a power
src/lib/front/stdlib/math.rs:113
Function
ptr_value
(ptr: &i8)
src/lib/back/executor.rs:70
Method
rem
(&self, other:&Value)
src/lib/front/stdlib/value.rs:348
Function
resolve_type
Type an expression
src/lib/syntax/ast/typer.rs:7
Function
round
Round a number to the nearest integer
src/lib/front/stdlib/math.rs:127
Method
run
Run the interactive mode
src/bin/interactive.rs:29
Method
run
Run the script
src/bin/runner.rs:24
Method
set_global
Set a field of the global object
src/lib/front/run/executor.rs:20
Function
set_proto_of
Set the prototype of an object
src/lib/front/stdlib/object.rs:73
Method
shl
(&self, other:&Value)
src/lib/front/stdlib/value.rs:368
Method
shr
(&self, other:&Value)
src/lib/front/stdlib/value.rs:373
Function
sin
Get the sine of a number
src/lib/front/stdlib/math.rs:135
Function
strict_is_finite
Check if a number is finite
src/lib/front/stdlib/number.rs:29
Function
strict_is_nan
Check if a number is equal to NaN
src/lib/front/stdlib/number.rs:49
← previous
next →
101–200 of 209, ranked by callers