rhai/scripts
2021-04-04 23:22:45 +08:00
..
array.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
assignment.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
comments.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
fibonacci.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
for1.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
for2.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
function_decl1.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
function_decl2.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
function_decl3.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
if1.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
loop.rhai Optimize op-assignment statement. 2020-05-25 20:14:31 +08:00
mat_mul.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
module.rhai Allow cross-loading of relative file paths in FileModuleResolver. 2021-04-02 12:34:39 +08:00
oop.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
op1.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
op2.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
op3.rhai Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
primes.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
README.md Change rhai_runner and repl to rhai-run and rhai-repl. 2020-12-25 16:08:56 +08:00
speed_test.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
string.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
strings_map.rhai Revise using string interpolation. 2021-04-04 23:22:45 +08:00
while.rhai Optimize op-assignment statement. 2020-05-25 20:14:31 +08:00

Testing Scripts

Testing scripts written in Rhai.

How to Run

Compile the rhai-run example:

cargo build --example rhai-run

Run it:

./target/debug/examples/rhai-run ./scripts/test_script_to_run.rhai