Stephen Chung
|
208a91ea93
|
Merge pull request #107 from Jarqwiz/master
Make every file evaluation use PathBuf instead of str
|
2020-03-13 18:14:06 +08:00 |
|
Jarkko Kuukkanen
|
6c72e3c48b
|
Change filename to path for clarity
|
2020-03-13 12:07:51 +02:00 |
|
Jarkko Kuukkanen
|
8c1c37666d
|
Make every file evaluation use PathBuf instead of str
|
2020-03-13 11:53:14 +02:00 |
|
Stephen Chung
|
faf78ccdd3
|
Merge pull request #105 from schungx/master
Fixes and cleanup plus an optimizer.
|
2020-03-10 11:32:24 +08:00 |
|
Stephen Chung
|
711cd9bb1c
|
Improve repl and rhai_runner examples with error messages.
|
2020-03-10 11:25:34 +08:00 |
|
Stephen Chung
|
2d80ee2f18
|
Refine optimizer.
|
2020-03-10 11:22:41 +08:00 |
|
Stephen Chung
|
feaad4e0da
|
Group use of std under one root.
|
2020-03-10 10:07:44 +08:00 |
|
Stephen Chung
|
bae9946291
|
Allow engine to retain functions across runs.
|
2020-03-10 09:30:12 +08:00 |
|
Stephen Chung
|
55e7af7b04
|
Add AST optimizer.
|
2020-03-09 21:57:07 +08:00 |
|
Stephen Chung
|
c467ffd58d
|
Comment out optimizer for successful build.
|
2020-03-09 21:52:43 +08:00 |
|
Stephen Chung
|
5b5fd162be
|
Use ? operator in tests.
|
2020-03-09 21:09:53 +08:00 |
|
Stephen Chung
|
63482d5a79
|
Use ? operator for examples.
|
2020-03-09 16:54:43 +08:00 |
|
Stephen Chung
|
1ca9db4379
|
Fix i64.powi() to i64.pos()
|
2020-03-09 14:15:32 +08:00 |
|
Stephen Chung
|
a6899afb11
|
Refine README.
|
2020-03-09 12:53:07 +08:00 |
|
Stephen Chung
|
b9d562eba4
|
Add standard math functions and make power functions checked.
|
2020-03-09 11:42:10 +08:00 |
|
Stephen Chung
|
e54fb54da2
|
Catch indexing errors at compile time.
|
2020-03-09 10:41:17 +08:00 |
|
Stephen Chung
|
01d04f717b
|
Natively handle negative numbers in tokenizer instead of the neg() function.
|
2020-03-09 10:10:19 +08:00 |
|
Stephen Chung
|
c5b40783ef
|
Add unchecked feature to remove arithmetic operations checking.
|
2020-03-08 23:14:18 +08:00 |
|
Stephen Chung
|
b1b25d3043
|
Add fallible functions support and replace most arithmetic operations with checked versions.
|
2020-03-08 22:47:13 +08:00 |
|
Stephen Chung
|
3e7adc2e51
|
More comments in code.
|
2020-03-08 19:54:02 +08:00 |
|
Stephen Chung
|
daa581bac7
|
Add append to strings.
|
2020-03-08 09:19:04 +08:00 |
|
Stephen Chung
|
a264abffa4
|
Allow arbitrary number of indexing in dot getter chain.
|
2020-03-07 23:57:01 +08:00 |
|
Stephen Chung
|
eed7bef974
|
Allow chaining of indexing (one level) and dotting.
|
2020-03-07 22:50:46 +08:00 |
|
Stephen Chung
|
df6950f8f7
|
Fix arrayindexed property access.
|
2020-03-07 20:55:03 +08:00 |
|
Stephen Chung
|
d055638e83
|
Properly detect invalid assignment LHS at compile time.
|
2020-03-07 17:32:15 +08:00 |
|
Stephen Chung
|
a8be700b9f
|
Simplify op-assignment.
|
2020-03-07 13:39:28 +08:00 |
|
Stephen Chung
|
22cb69a16b
|
Allow block expressions.
|
2020-03-07 10:39:00 +08:00 |
|
Stephen Chung
|
473e40e8a4
|
Catch more invalid LHS for assignments.
|
2020-03-07 10:16:20 +08:00 |
|
Stephen Chung
|
024133ae2d
|
Avoid string copying.
|
2020-03-07 10:15:42 +08:00 |
|
Stephen Chung
|
ea82ee81d6
|
Fix call_fn to take &ast instead of ast.
|
2020-03-07 00:29:45 +08:00 |
|
Stephen Chung
|
c917aa0a5a
|
Code cleanup.
|
2020-03-06 23:49:52 +08:00 |
|
Stephen Chung
|
80051805d1
|
Merge pull request #104 from schungx/master
General code clean-up, bug fixes and improved documentation.
|
2020-03-06 21:12:29 +08:00 |
|
Stephen Chung
|
be615cea27
|
Merge branches 'master' and 'master' of https://github.com/schungx/rhai
|
2020-03-06 21:09:23 +08:00 |
|
Stephen Chung
|
d2296ab33b
|
Allow dot operator on function results; change debug print info for function registration.
|
2020-03-06 21:08:51 +08:00 |
|
Stephen Chung
|
cc39e559ae
|
Change debug print info for function registration.
|
2020-03-06 15:49:38 +08:00 |
|
Stephen Chung
|
42fe5e8b95
|
Add documentation of call_fn to README.
|
2020-03-06 11:26:58 +08:00 |
|
Stephen Chung
|
07e396b3f5
|
Allow chaining of array indexing operations.
|
2020-03-06 10:50:52 +08:00 |
|
Stephen Chung
|
d8ec7ed141
|
Rephrase error messages.
|
2020-03-06 10:50:20 +08:00 |
|
Stephen Chung
|
c7801e1d7e
|
Fix off-by-one error message on indexing.
|
2020-03-06 09:55:00 +08:00 |
|
Stephen Chung
|
3d3b939ba6
|
Simplify code, document logic, refactor and better error messages.
|
2020-03-06 01:05:02 +08:00 |
|
Stephen Chung
|
883f08c026
|
Enable more indexing expressions.
|
2020-03-05 20:28:03 +08:00 |
|
Stephen Chung
|
c9395049e2
|
Remove no-std feature and rename stdlib to no_stdlib.
|
2020-03-05 10:18:46 +08:00 |
|
Stephen Chung
|
347f6d607a
|
Add no-std and stdlib features.
|
2020-03-04 23:44:32 +08:00 |
|
Stephen Chung
|
ba2aac4960
|
General code cleanup.
|
2020-03-04 23:06:05 +08:00 |
|
Stephen Chung
|
bb56a7a843
|
Code refactor, bug fixes, code docs.
|
2020-03-04 22:00:01 +08:00 |
|
Stephen Chung
|
b4d56accd4
|
Reverse commit fa13588f69 . Limit input script size not meaningful.
|
2020-03-04 09:33:35 +08:00 |
|
Stephen Chung
|
b421c8ac50
|
Minor refactor.
|
2020-03-03 23:31:29 +08:00 |
|
Stephen Chung
|
3af421ae5f
|
Fix problems with script-defined functions.
|
2020-03-03 23:31:16 +08:00 |
|
Stephen Chung
|
01bee6e16e
|
Accept up to 20 parameters in functions.
|
2020-03-03 23:17:42 +08:00 |
|
Stephen Chung
|
71a3c79915
|
Fix number parsing.
|
2020-03-03 21:39:25 +08:00 |
|