Commit Graph

128 Commits

Author SHA1 Message Date
Stephen Chung
8e21c4727b Fix definitions API code styles and formatting. 2022-07-26 22:38:40 +08:00
Stephen Chung
0bf7baa502
Merge branch 'main' into feat-definitions 2022-07-26 21:18:01 +08:00
tamasfe
4bc2079bd6
fix(defs): builtin operator fixes 2022-07-26 15:10:39 +02:00
tamasfe
3805830bfa
chore(defs): regenerate example definitions 2022-07-26 15:08:12 +02:00
tamasfe
6d4b5095d2 feat(defs): deterministic function ordering 2022-07-26 14:46:18 +02:00
tamasfe
ade818b043
fix(defs): compile errors 2022-07-26 14:28:54 +02:00
tamasfe
8ebc50bea8
feat(defs): builtin definitions 2022-07-26 13:39:50 +02:00
Stephen Chung
a95ef4c255 Revise required/forbidden features in examples. 2022-07-26 17:05:42 +08:00
tamasfe
b7b9ff29e4
feat: basic definitions 2022-07-25 19:01:06 +02:00
Stephen Chung
45acb65f4f Use //! for script docs. 2022-07-24 23:03:35 +08:00
Stephen Chung
23cd4d0f6a Fix typo. 2022-06-13 16:32:33 +08:00
Stephen Chung
15448bf660 Forbid shadowing of state variable. 2022-02-27 22:47:13 +08:00
Stephen Chung
487d523e67 Expand callback example. 2022-02-16 09:12:34 +08:00
Stephen Chung
78794d7dfc Add callback example. 2022-02-12 12:41:10 +08:00
Stephen Chung
3f8f0b250f Add comments to examples. 2022-02-12 12:41:04 +08:00
Stephen Chung
2caf686e8a Fix links. 2022-02-12 11:50:53 +08:00
Stephen Chung
d300fdb34e List out examples. 2022-02-12 11:48:16 +08:00
Stephen Chung
775bd6fb35 Improve examples. 2022-02-10 12:54:30 +08:00
Stephen Chung
66af69aaff Refactor and add state to debugger. 2022-01-28 18:59:18 +08:00
Stephen Chung
57cfd6a354 Fix builds. 2022-01-16 23:15:37 +08:00
Stephen Chung
5935a88958 Revert "Refine examples."
This reverts commit 146129279c.
2022-01-16 22:50:39 +08:00
Stephen Chung
146129279c Refine examples. 2022-01-16 22:45:49 +08:00
Stephen Chung
d843baca12 Add event handler examples. 2022-01-16 22:45:25 +08:00
Stephen Chung
f0e9d4a557 Use run and i64 instead of eval and INT for examples. 2022-01-11 22:12:46 +08:00
Stephen Chung
dac99a9907 Update CI. 2021-10-23 18:16:51 +08:00
Stephen Chung
180ad77224 Change Engine::consume_XXX to Engine::run_XXX. 2021-08-17 15:50:56 +08:00
Stephen Chung
0f66c67f82 Do not unnecessarily use raw strings. 2021-04-20 12:01:35 +08:00
Stephen Chung
0807c474a1 Revise using string interpolation. 2021-04-04 23:22:45 +08:00
Stephen Chung
c4fe1782df Streamline string handling. 2021-03-24 13:17:52 +08:00
Stephen Chung
d0922adb5b Deprecate RegisterFn and RegisterResultFn. 2021-03-15 11:36:30 +08:00
Stephen Chung
03c31a969a Refine examples. 2021-02-20 23:46:25 +08:00
Stephen Chung
2a209b82e9 Fix threading example for sync. 2021-01-25 12:55:10 +08:00
Stephen Chung
e902c74073 Add threading example. 2021-01-25 11:31:54 +08:00
Stephen Chung
049ad3b6fd Move rhai-repl and rhai-doc to bin. 2020-12-29 15:36:42 +08:00
Stephen Chung
88f63fa24b Refine docs. 2020-12-26 23:21:16 +08:00
Stephen Chung
db9dcd1bcc Refine examples. 2020-12-26 15:41:41 +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
f99703f951 Add Engine::disable_doc_comments and smarter doc-comments treatment. 2020-12-20 20:05:23 +08:00
Stephen Chung
26449a9f1c Add ScriptFnMetadata. 2020-12-12 18:44:28 +08:00
Stephen Chung
1087c338bd Change output of AST::iter_functions. 2020-12-12 16:31:13 +08:00
Stephen Chung
d3f3894126 Fix typo. 2020-11-22 17:35:33 +08:00
Stephen Chung
9edd494000 Fix builds. 2020-11-22 17:32:10 +08:00
Stephen Chung
07fe132e1a Add gen_fn_siguatures API. 2020-11-22 17:21:34 +08:00
Stephen Chung
18b23bdd7d Add blank lines after display. 2020-10-27 23:36:05 +08:00
Stephen Chung
5ee9dfc5cd 1) Change namespaces to iter_namespaces
2) throw can throw any value
2020-10-20 18:09:26 +08:00
Stephen Chung
c8c4ca21ad Update docs. 2020-10-19 14:26:15 +08:00
Stephen Chung
836b4de925 Fix serde example. 2020-10-10 15:06:59 +08:00
Stephen Chung
68493416f1 Better scope printout. 2020-10-09 13:22:40 +08:00
Stephen Chung
d35c216465 Add README's. 2020-10-07 22:56:21 +08:00
Stephen Chung
e7f2dc84f1 Revise examples. 2020-10-07 15:55:45 +08:00