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
↓ 63 callers
Function
to_value
A utility function that just calls ToValue::to_value
src/lib/front/stdlib/value.rs:559
↓ 28 callers
Method
get_token
(&self, pos:uint)
src/lib/syntax/parser.rs:373
↓ 24 callers
Method
compile
Compile an expression
src/lib/front/run/compiler.rs:11
↓ 20 callers
Method
binop
(&mut self, op:BinOp, orig:Expr)
src/lib/syntax/parser.rs:499
↓ 20 callers
Method
parse
Parse a single expression
src/lib/syntax/parser.rs:224
↓ 19 callers
Method
to_num
Converts the value into a 64-bit floating point number
src/lib/front/stdlib/value.rs:136
↓ 14 callers
Method
get_field
Resolve the property in the object and get its value, or undefined if this is not an object or the field doesn't exist
src/lib/front/stdlib/value.rs:179
↓ 14 callers
Method
set_field
Set the field in the value
src/lib/front/stdlib/value.rs:186
↓ 12 callers
Method
push_punc
(&mut self, punc:Punctuator)
src/lib/syntax/lexer.rs:77
↓ 12 callers
Method
to_int
Converts the value into a 32-bit integer
src/lib/front/stdlib/value.rs:150
↓ 11 callers
Method
expect_punc
(&mut self, p:Punctuator, routine:&'static str)
src/lib/syntax/parser.rs:527
↓ 11 callers
Function
init
Initialise the URI functions on the global object
src/lib/front/stdlib/uri.rs:26
↓ 9 callers
Function
from_value
A utility function that just calls FromValue::from_value
src/lib/front/stdlib/value.rs:554
↓ 6 callers
Method
expect
Returns an error if the next symbol is not `tk`
src/lib/syntax/parser.rs:516
↓ 6 callers
Method
next
(&mut self)
src/lib/syntax/lexer.rs:90
↓ 6 callers
Method
preview_next
(&mut self)
src/lib/syntax/lexer.rs:93
↓ 6 callers
Method
push_token
(&mut self, tk:TokenData)
src/lib/syntax/lexer.rs:73
↓ 4 callers
Method
lex
Processes an input stream from the `buffer` into a vector of tokens
src/lib/syntax/lexer.rs:105
↓ 4 callers
Method
run
Run the tests mode
src/bin/tests.rs:94
↓ 3 callers
Method
execute
(&self, comp:&(JITVal<'a>, &'a Function<'a>))
src/lib/back/executor.rs:37
↓ 3 callers
Method
is_null_or_undefined
Returns true if the value is null or undefined
src/lib/front/stdlib/value.rs:104
↓ 3 callers
Method
parse_all
Parse all expressions in the token array
src/lib/syntax/parser.rs:71
↓ 2 callers
Method
convert_bool
(&'a self, val:Value<'a>)
src/lib/back/compiler.rs:32
↓ 2 callers
Method
get_global_obj
(&self)
src/lib/back/executor.rs:34
↓ 2 callers
Method
get_precedence
(&self)
src/lib/syntax/ast/op.rs:159
↓ 2 callers
Method
get_prop
Resolve the property in the object
src/lib/front/stdlib/value.rs:163
↓ 2 callers
Method
get_type
Get the type of the value
src/lib/front/stdlib/value.rs:236
↓ 2 callers
Method
is_string
Returns true if the value is a string
src/lib/front/stdlib/value.rs:118
↓ 2 callers
Method
is_true
Returns true if the value is true
src/lib/front/stdlib/value.rs:125
↓ 2 callers
Method
next_is
(&mut self, peek:char)
src/lib/syntax/lexer.rs:97
↓ 2 callers
Method
set_prop
Set the property in the value
src/lib/front/stdlib/value.rs:199
↓ 2 callers
Function
square
(x)
tests/asm.js:9
↓ 2 callers
Method
to_json
( &self )
src/lib/front/stdlib/value.rs:302
↓ 2 callers
Method
undefined
(&'a self)
src/lib/back/compiler.rs:55
↓ 1 callers
Function
DiagModule
(stdlib, foreign, heap)
tests/asm.js:2
↓ 1 callers
Method
compile_array_decl
Compile an array declaration
src/lib/front/run/compiler.rs:128
↓ 1 callers
Method
compile_arrow_function_decl
Compile an arrow function declaration
src/lib/front/run/compiler.rs:136
↓ 1 callers
Method
compile_assign
Compile an assignment
src/lib/front/run/compiler.rs:152
↓ 1 callers
Method
compile_bin_op
Compile a binary operation
src/lib/front/run/compiler.rs:63
↓ 1 callers
Method
compile_bit_op
Compile a bitwise operation
src/lib/front/run/compiler.rs:76
↓ 1 callers
Method
compile_block
Compile a block of expressions
src/lib/front/run/compiler.rs:96
↓ 1 callers
Method
compile_call
Compile a call to a function with some arguments
src/lib/front/run/compiler.rs:108
↓ 1 callers
Method
compile_comp_op
Compile a comparitive operation
src/lib/front/run/compiler.rs:80
↓ 1 callers
Method
compile_const
Compile a constant
src/lib/front/run/compiler.rs:88
↓ 1 callers
Method
compile_construct
Compile a construction of an object
src/lib/front/run/compiler.rs:140
↓ 1 callers
Method
compile_function_decl
Compile a function declaration
src/lib/front/run/compiler.rs:132
↓ 1 callers
Method
compile_get_const_field
Compile constant field access for an object
src/lib/front/run/compiler.rs:100
↓ 1 callers
Method
compile_get_field
Compile field access for an object
src/lib/front/run/compiler.rs:104
↓ 1 callers
Method
compile_if
Compile an if statement
src/lib/front/run/compiler.rs:116
↓ 1 callers
Method
compile_local
Compile a local variable
src/lib/front/run/compiler.rs:92
↓ 1 callers
Method
compile_log_op
Compile a logical operation
src/lib/front/run/compiler.rs:84
↓ 1 callers
Method
compile_num_op
Compile a numeric operation
src/lib/front/run/compiler.rs:72
↓ 1 callers
Method
compile_object_decl
Compile an object declaration
src/lib/front/run/compiler.rs:124
↓ 1 callers
Method
compile_return
Compile a return expression
src/lib/front/run/compiler.rs:144
↓ 1 callers
Method
compile_switch
Compile a switch statement
src/lib/front/run/compiler.rs:120
↓ 1 callers
Method
compile_throw
Compile a throw expression
src/lib/front/run/compiler.rs:148
↓ 1 callers
Method
compile_typeof
Compile a typeof expression
src/lib/front/run/compiler.rs:160
↓ 1 callers
Method
compile_unary_op
Compile a unary operation
src/lib/front/run/compiler.rs:59
↓ 1 callers
Method
compile_var_decl
Compile a variable declaration
src/lib/front/run/compiler.rs:156
↓ 1 callers
Method
compile_while_loop
Compile a while loop
src/lib/front/run/compiler.rs:112
↓ 1 callers
Function
convert_to_value
(func:&Function<'a>, val:&'a JITVal<'a>)
src/lib/back/executor.rs:49
↓ 1 callers
Method
deref
(&'a self)
src/lib/front/stdlib/value.rs:25
↓ 1 callers
Function
diag
(x, y)
tests/asm.js:14
↓ 1 callers
Function
find_attrs
(tokens: Vec<Token>)
src/bin/tests.rs:15
↓ 1 callers
Method
get_assoc
(&self)
src/lib/syntax/ast/op.rs:156
↓ 1 callers
Method
get_precedence_and_assoc
Get the precedence and associativity of this operator
src/lib/syntax/ast/op.rs:10
↓ 1 callers
Method
parse_next
(&mut self, expr:Expr)
src/lib/syntax/parser.rs:380
↓ 1 callers
Method
parse_struct
(&mut self, keyword:Keyword)
src/lib/syntax/parser.rs:79
↓ 1 callers
Method
run_test
Run a test
src/bin/tests.rs:45
↓ 1 callers
Method
run_tests_in
Run all the tests in `path`
src/bin/tests.rs:84
↓ 1 callers
Function
sqrt
Get the square root of a number
src/lib/front/stdlib/math.rs:143
↓ 1 callers
Method
to_value
(&self)
src/lib/front/stdlib/value.rs:404
Function
_create
Create a new `console` object
src/lib/front/stdlib/console.rs:20
Function
_create
Create a new `Number` object
src/lib/front/stdlib/number.rs:60
Function
_create
Create a new `Boolean` object
src/lib/front/stdlib/boolean.rs:9
Function
_create
Create a new `Array` object
src/lib/front/stdlib/array.rs:10
Function
_create
Create a new `String` object
src/lib/front/stdlib/string.rs:16
Function
_create
Create a new `JSON` object
src/lib/front/stdlib/json.rs:23
Function
_create
Create a new `Object` object
src/lib/front/stdlib/object.rs:101
Function
_create
Create a new `Error` object
src/lib/front/stdlib/error.rs:19
Function
_create
Create a new `Math` object
src/lib/front/stdlib/math.rs:159
Function
_create
Create a new `Function` object
src/lib/front/stdlib/function.rs:34
Function
_random
Generate a random floating-point number between 0 and 1
src/lib/front/stdlib/math.rs:123
Function
abs
Get the absolute value of a number
src/lib/front/stdlib/math.rs:7
Function
acos
Get the arccos of a number
src/lib/front/stdlib/math.rs:15
Method
add
(&self, other:&Value)
src/lib/front/stdlib/value.rs:323
Function
asin
Get the arcsine of a number
src/lib/front/stdlib/math.rs:23
Method
assert
(args:Vec<Value>, _:Value, _:Value, _:Value)
src/bin/tests.rs:46
Function
atan
Get the arctangent of a number
src/lib/front/stdlib/math.rs:31
Function
atan2
Get the arctangent of a numbers
src/lib/front/stdlib/math.rs:39
Method
bitand
(&self, other:&Value)
src/lib/front/stdlib/value.rs:353
Method
bitor
(&self, other:&Value)
src/lib/front/stdlib/value.rs:358
Method
bitxor
(&self, other:&Value)
src/lib/front/stdlib/value.rs:363
Method
call
Call with some args
src/lib/front/stdlib/function.rs:29
Function
cbrt
Get the cubic root of a number
src/lib/front/stdlib/math.rs:47
Function
ceil
Get lowest integer above a number
src/lib/front/stdlib/math.rs:55
Method
compile_bit_op
(&'a self, op:BitOp, left:&Expr, right:&Expr)
src/lib/back/compiler.rs:106
Method
compile_block
(&'a self, block:Vec<Expr>)
src/lib/back/compiler.rs:85
Method
compile_comp_op
(&'a self, op:CompOp, left:&Expr, right:&Expr)
src/lib/back/compiler.rs:130
Method
compile_const
(&'a self, constant:&Const)
src/lib/back/compiler.rs:63
next →
1–100 of 209, ranked by callers