Commit Graph

1396 Commits

Author SHA1 Message Date
Stephen Chung
1820732865 Bump version to 0.10.0-alpha1. 2020-02-25 11:12:42 +08:00
Stephen Chung
f8485932b5 Add documentation on pre-compilation. 2020-02-25 11:08:40 +08:00
Stephen Chung
2c3328e167 Merge branch 'master' of https://github.com/schungx/rhai 2020-02-25 10:52:23 +08:00
Stephen Chung
6434875530
Merge pull request #1 from jonathandturner/master
Merge pull request #97 from schungx/master
2020-02-25 10:51:02 +08:00
Stephen Chung
a0c5635712 Update README with new features. 2020-02-25 10:43:13 +08:00
Stephen Chung
60a7d51537 Allow override of print and debug. 2020-02-25 10:40:48 +08:00
Jonathan Turner
2a663d5c07
Merge pull request #97 from schungx/master
Handle arrays properly, plus other enhancements.
2020-02-25 05:18:56 +13:00
Stephen Chung
e4e471fd20 Add line/position in compilation errors; Add compile to AST; FIx infinite loop in close parens. 2020-02-24 23:25:52 +08:00
Stephen Chung
b3247204c6 Include filename in ErrorCantOpenScriptFile. 2020-02-24 11:06:33 +08:00
Stephen Chung
c58b3e644a Ignore .vscode 2020-02-24 11:05:39 +08:00
Stephen Chung
896579869c Fix test_mismatched_op. 2020-02-23 23:41:14 +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
Stephen Chung
b2747b076e Add bouncs check to array index access. 2020-02-23 14:09:40 +08:00
Stephen Chung
829621a3d4 Trap array out-of-bound index access error. 2020-02-23 13:59:50 +08:00
Jonathan Turner
c4a2e3bd44
Merge pull request #90 from timfish/fixes/minor
Remove unused enums and simplify test assertions
2019-10-10 05:47:16 +13:00
timfish
4217e96d19 Remove unused enums and simplify test assertions 2019-10-09 12:06:32 +01:00
Jonathan Turner
1999120298
Merge pull request #89 from timfish/feat/std-any-type_name
Feat: Use std::any::type_name
2019-10-01 07:08:48 +13:00
timfish
c34af7979a Format 2019-09-30 18:58:01 +01:00
timfish
53bb0a38f0 Use std::any::type_name 2019-09-30 18:57:21 +01:00
Jonathan Turner
20d30d93c3
Merge pull request #87 from timfish/feat/2018
Feat: Rust 2018 + rustfmt
2019-10-01 05:45:30 +13:00
timfish
82fd20b2b1 Rust 2018 2019-09-18 11:21:07 +01:00
Lukáš Hozda [magnusi]
b92ed6201e
Merge pull request #86 from timfish/fix/small
Fix: README and a couple of mis-named types?
2019-09-17 13:04:02 +02:00
timfish
d7d0507f5a Fix readme and a couple of mis-named types? 2019-09-16 22:14:14 +01:00
Jonathan Turner
7d3306f6c7
Merge pull request #85 from Calinou/fix-readme-mixed-indent
Fix mixed indentation in the README
2019-09-10 05:20:13 +12:00
Hugo Locurcio
e3bee78030
Fix mixed indentation in the README
This makes the Loop example script display correctly on GitHub.
2019-09-09 17:21:46 +02:00
Jonathan Turner
daadb4c9ef Bump version 2019-07-23 19:55:58 +12:00
Jonathan Turner
b114c0d420
Merge pull request #82 from dkushner/bugfix/nightly-type-id
Fix ambiguous calls to `type_id()` preventing compilation on 1.35-nightly.
2019-04-21 11:01:21 -10:00
David Kushner
0a11cadebf fix ambiguous calls to type_id preventing compilation on nightly 2019-04-17 13:28:14 -07:00
Lukáš Hozda [magnusi]
3bab79f375
Merge pull request #77 from stevedonovan/master
Engine::register_type_name for nice error messages for arbitrary types
2018-07-22 19:14:48 +02:00
steve donovan
7ff1c39e01 Engine should be Clone 2018-07-22 17:06:13 +02:00
steve donovan
3fb2f543bb Engine::register_type_name for nice error messages for arbitrary types 2018-07-22 11:43:21 +02:00
Lukáš Hozda [magnusi]
92716670fa
Merge pull request #76 from stevedonovan/master
better not-found error messages for variables and functions
2018-07-20 18:19:19 +02:00
steve donovan
2bf3f5e957 better not-found error messages for variables and functions 2018-07-16 13:01:11 +02:00
Lukáš Hozda [magnusi]
8bf318c99f
Merge pull request #71 from juanibiapina/directory-structure
Use default rust directory structure for tests
2018-06-13 11:03:17 +02:00
Juan Ibiapina
e534e907e8 Use default rust directory structure for tests 2018-06-13 10:56:29 +02:00
Lukáš Hozda
59c60c43d1 bump version 2018-05-23 17:50:27 +02:00
Lukáš Hozda [magnusi]
0fd1bd66ca
Merge pull request #70 from rustysec/feature/unit-type
added unit type as ()
2018-05-23 17:49:41 +02:00
russ morris
2f46af64dd added unit type as () 2018-05-22 16:44:41 -07:00
Lukáš Hozda
aae4345911 bump version 2018-03-27 20:01:34 +02:00
Jonathan Turner
8ad9726518
Merge pull request #62 from noformnocontent/master
libs.rs >> awesome-rust
2018-03-02 17:12:39 +13:00
DYM
eda257a810
libs.rs >> awesome-rust
libs.rs is DEPRECATED in favour of https://github.com/rust-unofficial/awesome-rust
2018-03-01 18:51:01 +01:00
Lukáš Hozda
8d07d8e00a lock debug messages behind 'debug_msgs' feature 2018-02-09 22:27:41 +01:00
Lukáš Hozda
02dff9525f Merge branch 'master' of https://github.com/jonathandturner/rhai 2017-12-31 19:59:13 +01:00
Lukáš Hozda
ccc16f42f9 make engine clone-able 2017-12-31 19:58:50 +01:00
Lukáš Hozda [magnusi]
bcacf72a9f
Merge pull request #59 from nabijaczleweli/master
Syntax highlight TOML as TOML in README
2017-12-21 15:16:03 +01:00
nabijaczleweli
14f31f4232
Syntax highligh TOML as TOML in README 2017-12-21 14:24:54 +01:00
Lukáš Hozda
f8606aec4c bump version once again, since operators were renamed 2017-12-21 12:33:12 +01:00
Lukáš Hozda
b318ec24a9 rename OpEquals to OpAssign, as all of them are compound assignment operators 2017-12-21 12:32:18 +01:00
Lukáš Hozda
5edcfc2156 minor refactor 2017-12-21 12:28:59 +01:00
Lukáš Hozda
13f7f43f98 bump version, since @torkleyy provided some major improvements, also a breaking change (FnRegister -> RegisterFn); fix typo in readme 2017-12-21 11:24:30 +01:00