Commit Graph

40 Commits

Author SHA1 Message Date
Stephen Chung
eefdc09352 Allow shadowing of global. 2021-04-17 18:40:16 +08:00
Stephen Chung
9a409b5b49 Simplify script. 2021-04-17 16:25:39 +08:00
Stephen Chung
c5128e15d5 Fix scripts. 2021-04-16 10:33:55 +08:00
Stephen Chung
ca2ec0d4d5 Fix script typo. 2021-04-13 14:37:33 +08:00
Stephen Chung
2b1555cff8 Refine example scripts. 2021-04-09 22:48:47 +08:00
Stephen Chung
0807c474a1 Revise using string interpolation. 2021-04-04 23:22:45 +08:00
Stephen Chung
889edbef71 Allow cross-loading of relative file paths in FileModuleResolver. 2021-04-02 12:34:39 +08:00
Stephen Chung
42fff105ea Change fibonacci sample to run 5 times. 2021-03-31 16:17:26 +08:00
Stephen Chung
04625fb752 Add literal string and continuation example. 2021-03-30 21:33:30 +08:00
Stephen Chung
e1ac6cc90e Change rhai_runner and repl to rhai-run and rhai-repl. 2020-12-25 16:08:56 +08:00
Stephen Chung
487a073caf Fix recursive file import bug. 2020-11-08 23:00:03 +08:00
Stephen Chung
d35c216465 Add README's. 2020-10-07 22:56:21 +08:00
Jesse Gibson
9c07f3dbb0 Remove extra quote in strings example
More like triple quote amirite
2020-08-14 00:10:16 -06:00
Stephen Chung
9f302d4ef5 Update docs and tests. 2020-08-04 18:39:24 +08:00
Stephen Chung
f3bde843cb Fix scripts and tests. 2020-06-27 21:19:53 +08:00
Stephen Chung
549ef6bf7f Add oop.rhai script. 2020-06-27 17:34:39 +08:00
Stephen Chung
c6e5f672c9 More benchmarks and examples. 2020-05-31 23:44:49 +08:00
Stephen Chung
331513f5e0 Increase to prime numbers <= 1 million. 2020-05-31 22:47:39 +08:00
Stephen Chung
7fa05f3886 Do not print to avoid skewing the run timing. 2020-05-31 15:57:53 +08:00
Stephen Chung
4c46c7e26b Register property versions of some methods. 2020-05-30 10:30:21 +08:00
Stephen Chung
95e67c48bd Optimize op-assignment statement. 2020-05-25 20:14:31 +08:00
Stephen Chung
c37a2cc886 Check scripts for calculation errors. 2020-05-13 11:56:48 +08:00
Stephen Chung
68732a6e47 Use stepped range. 2020-05-03 22:12:10 +08:00
Stephen Chung
fc66a7ecef Pretty up scripts with print. 2020-05-02 16:23:36 +08:00
Stephen Chung
0d5a36edc8 Increase prime numbers limit to 100K. 2020-04-27 12:42:39 +08:00
Stephen Chung
619b627d54 Modify for mutliple levels of indexing. 2020-04-26 18:37:41 +08:00
Stephen Chung
97520f14a9 Fix examples and benchmarks. 2020-04-22 19:28:08 +08:00
Stephen Chung
691541c176 Add more benchmarks. 2020-04-13 23:38:10 +08:00
Stephen Chung
5848339d5a Add timestamp support. 2020-04-11 16:06:57 +08:00
Stephen Chung
d4311bddb0 Put comments into example scripts. 2020-03-18 10:40:07 +08:00
Stephen Chung
504fd56f1f More documentation on chained assignment. 2020-03-14 14:57:59 +08:00
Stephen Chung
b3a22d942a Allow AST optimization based on external Scope. 2020-03-14 14:30:44 +08:00
Stephen Chung
91317c0d3e New sample script - primes.rhai. 2020-03-12 23:46:40 +08:00
Stephen Chung
157aa2be94 Add for statement and range function; New register_box_fn for functions returning Box<dyn Any> (which should not be boxed again); Register standard utility functions in library (e.g. print, string concat). 2020-02-23 22:48:46 +08:00
Lukáš Hozda
5edcfc2156 minor refactor 2017-12-21 12:28:59 +01:00
Lukáš Hozda
780962fcea add example scripts for comments and loop 2017-10-28 17:44:05 +02:00
Lukáš Hozda
660fbe2e39 [BREAKING CHANGE] change variable keyword to 'let' from 'var' 2017-10-02 08:46:35 +02:00
Jonathan Turner
2a28209b38 Add string concat/compare. Bump to 0.4 2016-08-17 18:33:31 -07:00
jonathandturner
b1ccaf4516 Add support for arrays 2016-03-26 10:46:28 -07:00
jonathandturner
fee3852979 Move to lib style, move scripts into their own directory, start source examples 2016-03-03 10:55:28 -05:00