Commit Graph

1080 Commits

Author SHA1 Message Date
Stephen Chung
060a61fc9d Use INT in examples instead of i64. 2020-03-24 09:49:08 +08:00
Stephen Chung
8cb8b89474
Merge pull request #114 from schungx/master
Add evaluate expressions.
2020-03-23 09:22:36 +08:00
Stephen Chung
1b4bcbcfdf Add evaluate expressions. 2020-03-22 21:03:58 +08:00
Stephen Chung
b6320c0eef Minor fine tuning. 2020-03-22 10:18:16 +08:00
Stephen Chung
f51864e190 Allow line continuations in repl example. 2020-03-22 09:25:41 +08:00
Stephen Chung
3a2413c88f Add LICENSE. 2020-03-22 00:32:07 +08:00
Stephen Chung
0a959483bb
Add LICENSE. 2020-03-22 00:29:33 +08:00
Stephen Chung
b29c3ba6a9 Add multi-line support to repl example. 2020-03-21 17:14:31 +08:00
Stephen Chung
dfb8f31256
Merge pull request #112 from schungx/master
Undo secion changes to README on optimization levels.
2020-03-21 00:41:37 +08:00
Stephen Chung
bd6eb27154 Undo secion changes to README on optimization levels. 2020-03-21 00:40:49 +08:00
Stephen Chung
9c7fa97171
Merge pull request #110 from schungx/master
eval
2020-03-21 00:27:38 +08:00
Stephen Chung
083b3147be Fix test_eval. 2020-03-21 00:23:13 +08:00
Stephen Chung
1d98f65342 Disallow statement expressions in if and while guards to reduce code confusion. 2020-03-20 19:50:58 +08:00
Stephen Chung
ed996e71d6 Enable dot operations on constant variables. 2020-03-20 19:27:02 +08:00
Stephen Chung
16ea8f416e Revise section on function side effects because Rhai functions cannot mutate state. 2020-03-19 22:29:24 +08:00
Stephen Chung
283602cdd8 Do not call function when optimizing if there is a script-defined function overridding it. 2020-03-19 22:29:02 +08:00
Stephen Chung
36b7124dd5 Add eval test. 2020-03-19 20:55:53 +08:00
Stephen Chung
702b2010f2 Add contains to Scope. 2020-03-19 20:55:49 +08:00
Stephen Chung
6a6c5f30de Add eval function. 2020-03-19 19:53:42 +08:00
Stephen Chung
0bae164764
Merge pull request #109 from schungx/master
no-std support
2020-03-19 17:08:31 +08:00
Stephen Chung
cc8ec12691 Add more comments and examples. 2020-03-19 13:52:10 +08:00
Stephen Chung
b3efb8b264 Disallow variable names starting with _ + digit. 2020-03-18 23:09:53 +08:00
Stephen Chung
0dc51f8e59 Removee debug_msgs feature. 2020-03-18 22:03:50 +08:00
Stephen Chung
019e73bc7e Allow empty statements. 2020-03-18 18:41:18 +08:00
Stephen Chung
03b2e9ad69 Fix default release profile and change optimization default back to Simple. 2020-03-18 13:09:38 +08:00
Stephen Chung
3518c5a630 Bump version to 0.11.0. 2020-03-18 12:13:44 +08:00
Stephen Chung
e7c669343e Add no_std example. 2020-03-18 12:09:34 +08:00
Stephen Chung
a9c65a962c Split no_stdlib and no_std into two features. 2020-03-18 12:04:26 +08:00
Stephen Chung
ecded729ad Finalize no_std support. 2020-03-18 10:50:51 +08:00
Stephen Chung
ca20faf170 Add code comments. 2020-03-18 10:43:59 +08:00
Stephen Chung
777f66ff3c Add section on statements and variables. 2020-03-18 10:42:27 +08:00
Stephen Chung
8efe080412 Handle break and return better. 2020-03-18 10:42:27 +08:00
Stephen Chung
d2951bfb6b Make sure return is not an error. 2020-03-18 10:40:07 +08:00
Stephen Chung
b26ca753c2 Mandatory semiclolons separating statements. 2020-03-18 10:40:07 +08:00
Stephen Chung
c3d4a1b5e9 Optimize type_of. 2020-03-18 10:40:07 +08:00
Stephen Chung
abe5365bfd Improve error messages to lists. 2020-03-18 10:40:07 +08:00
Stephen Chung
d4311bddb0 Put comments into example scripts. 2020-03-18 10:40:07 +08:00
Stephen Chung
ef8d428f42 Add code comments. 2020-03-18 10:36:50 +08:00
Stephen Chung
42ecae4366
Merge pull request #103 from VictorKoenders/no_std
Add no_std support
2020-03-18 10:27:30 +08:00
Trangar
c8a9df0a0a Added no_std support 2020-03-17 19:26:11 +01:00
Stephen Chung
dca2a927b5 Add section on statements and variables. 2020-03-17 17:37:28 +08:00
Stephen Chung
6ca39a019b Handle break and return better. 2020-03-17 17:33:37 +08:00
Stephen Chung
706e0a0c4c Make sure return is not an error. 2020-03-17 16:52:06 +08:00
Stephen Chung
2f7ca3935b Mandatory semiclolons separating statements. 2020-03-17 14:29:22 +08:00
Stephen Chung
ad2601972a Optimize type_of. 2020-03-17 10:27:43 +08:00
Stephen Chung
705fbd0c1b Improve error messages to lists. 2020-03-16 23:51:32 +08:00
Stephen Chung
5ad2d24251 Put comments into example scripts. 2020-03-16 14:50:12 +08:00
Stephen Chung
bffa3ed636
Merge pull request #108 from schungx/master
Constants and aggressive optimizations.
2020-03-16 13:12:57 +08:00
Stephen Chung
f3213b945d Fix power_of test. 2020-03-16 13:08:53 +08:00
Stephen Chung
35e354eb41 Refine README. 2020-03-16 12:42:01 +08:00