Stephen Chung
|
9495d3f733
|
Separate op-assignment with other function calls.
|
2021-02-25 10:59:22 +08:00 |
|
Stephen Chung
|
02057ef1d2
|
Avoid double checking of builtin's.
|
2021-02-24 23:23:32 +08:00 |
|
Stephen Chung
|
0d933d865a
|
Do not test for built-in's when operands are not built-in.
|
2021-02-24 13:53:11 +08:00 |
|
Stephen Chung
|
f8a7ada2a2
|
Implement Add and AddAssign to Position, fix bug in Position::is_beginning_of_line
|
2021-02-18 10:47:57 +08:00 |
|
Stephen Chung
|
40e4a92401
|
Support scientific notation for Decimal parsing.
|
2021-02-14 17:34:53 +08:00 |
|
Stephen Chung
|
3650b04c38
|
Add Decimal number type.
|
2021-02-13 20:57:56 +08:00 |
|
Stephen Chung
|
2846d1b63f
|
Change token to use FloatWrapper.
|
2021-02-12 23:07:28 +08:00 |
|
Stephen Chung
|
8ffb6c03b5
|
Add scientific notation to floats.
|
2021-02-11 19:20:30 +08:00 |
|
Stephen Chung
|
61638d6566
|
Use ** for power/exponentiation.
|
2021-02-10 12:41:27 +08:00 |
|
Stephen Chung
|
65621b79b1
|
Fix volatile warnings.
|
2021-01-16 14:46:03 +08:00 |
|
Stephen Chung
|
92c7fd9e5b
|
Better error messages.
|
2021-01-15 17:13:04 +08:00 |
|
Stephen Chung
|
e059ca009c
|
Fix feature builds.
|
2021-01-06 18:22:45 +08:00 |
|
Stephen Chung
|
a5d6392107
|
Use NonZero for limits.
|
2021-01-06 13:46:53 +08:00 |
|
Stephen Chung
|
ef48f47b74
|
Refine docs and comments etc.
|
2021-01-02 23:30:10 +08:00 |
|
Stephen Chung
|
2858aa3b2f
|
Avoid calling token mapper if none is specified.
|
2020-12-29 13:12:11 +08:00 |
|
Stephen Chung
|
41c6f985f5
|
Fix bug with tokenizing identifiers.
|
2020-12-29 11:37:15 +08:00 |
|
Stephen Chung
|
eca8212f38
|
More code refinements.
|
2020-12-29 10:41:20 +08:00 |
|
Stephen Chung
|
e481a8019d
|
Simplify code and better error messages.
|
2020-12-28 14:21:13 +08:00 |
|
Stephen Chung
|
66d3af256e
|
Enhance custom operators.
|
2020-12-26 23:21:09 +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
|
719f0babbf
|
Fix comments parsing.
|
2020-12-18 16:07:19 +08:00 |
|
Stephen Chung
|
87174de051
|
Add doc-comment to function metadata.
|
2020-12-12 20:09:29 +08:00 |
|
Stephen Chung
|
86009c70c8
|
Allow floating point numbers ending in a period.
|
2020-11-23 22:51:21 +08:00 |
|
Stephen Chung
|
07fe132e1a
|
Add gen_fn_siguatures API.
|
2020-11-22 17:21:34 +08:00 |
|
Stephen Chung
|
97368da762
|
Reserve begin/end.
|
2020-11-21 15:44:17 +08:00 |
|
Stephen Chung
|
0046fe7e73
|
Prefer Engine::disable_symbol to disable eval.
|
2020-11-21 15:08:18 +08:00 |
|
Stephen Chung
|
6069a4cf55
|
do loop.
|
2020-11-20 22:23:37 +08:00 |
|
Stephen Chung
|
783803ec46
|
Update comments with links.
|
2020-11-20 16:52:28 +08:00 |
|
Stephen Chung
|
272c8505b8
|
Refactor use.
|
2020-11-16 23:10:14 +08:00 |
|
Stephen Chung
|
adb902326e
|
Reduce feature gates on imports.
|
2020-11-16 16:28:04 +08:00 |
|
Stephen Chung
|
55b4907f19
|
Add switch expression.
|
2020-11-13 18:32:18 +08:00 |
|
Stephen Chung
|
958762079e
|
Change modules to namespace.
|
2020-11-10 23:26:50 +08:00 |
|
Stephen Chung
|
b9de8eaa7f
|
Minor code refactor.
|
2020-11-02 23:54:19 +08:00 |
|
Stephen Chung
|
d7d6f74dfd
|
Add constant NO_POS.
|
2020-11-02 12:50:27 +08:00 |
|
Stephen Chung
|
4e115d2bc2
|
Code structure refactor.
|
2020-10-29 11:37:51 +08:00 |
|
Stephen Chung
|
f5ffbfbe06
|
Code structure cleanup.
|
2020-10-28 22:18:44 +08:00 |
|
Stephen Chung
|
b607a3a9ba
|
Add raw API for custom syntax.
|
2020-10-25 21:57:18 +08:00 |
|
Stephen Chung
|
e89d12c42f
|
Reserve thread keyword.
|
2020-10-21 14:45:20 +08:00 |
|
Stephen Chung
|
07bdb824fe
|
Add try-catch.
|
2020-10-20 23:16:03 +08:00 |
|
Stephen Chung
|
a9fd0ff4de
|
Encapsulate scope into EvalContext;
Fix bug with custom syntax delta.
|
2020-10-19 19:11:55 +08:00 |
|
Stephen Chung
|
82e6dd446a
|
Encapsulate register_fn_raw parameters into NativeCallContext.
|
2020-10-18 17:02:17 +08:00 |
|
Stephen Chung
|
3df8d6c398
|
Fix typo.
|
2020-10-13 17:16:19 +08:00 |
|
Stephen Chung
|
13c4d0bbb3
|
Adjust precedence of in.
|
2020-10-13 16:01:42 +08:00 |
|
Stephen Chung
|
9dceeaf114
|
Reserve ** operator.
|
2020-10-13 15:51:59 +08:00 |
|
Stephen Chung
|
037e8334d4
|
Reset modulo precedence.
|
2020-10-13 15:49:09 +08:00 |
|
Stephen Chung
|
0b4129fb98
|
Raise precedence of ~ and %.
|
2020-10-13 09:33:16 +08:00 |
|
Stephen Chung
|
9d93dac8e7
|
Reserve some more symbols.
|
2020-10-10 22:14:10 +08:00 |
|
Stephen Chung
|
612ecc4ebc
|
Move StaticVec definition to lib.rs.
|
2020-10-10 13:41:55 +08:00 |
|
Stephen Chung
|
1272eeb81a
|
Add/remove #[inline] attributes.
|
2020-10-08 22:25:50 +08:00 |
|
Stephen Chung
|
1de44c7ecd
|
Reserve $ symbol.
|
2020-10-05 23:02:50 +08:00 |
|
Stephen Chung
|
1e13e6be5f
|
Doc formatting.
|
2020-10-03 18:49:11 +08:00 |
|
Stephen Chung
|
fbfb7677c1
|
Add is_def_var and is_def_fn.
|
2020-10-03 16:25:58 +08:00 |
|
Stephen Chung
|
d91d983c74
|
Enable dots on numbers to parse as method calls.
|
2020-09-23 22:48:28 +08:00 |
|
Stephen Chung
|
02f37870e5
|
Better position of string literal errors.
|
2020-09-22 19:18:06 +08:00 |
|
Stephen Chung
|
ae11dbbefe
|
Fix feature flags.
|
2020-08-05 22:53:01 +08:00 |
|
Stephen Chung
|
4079164bfd
|
Implement closures.
|
2020-08-03 12:10:20 +08:00 |
|
Stephen Chung
|
60891e694f
|
Streamline code and feature gates.
|
2020-07-31 22:30:23 +08:00 |
|
Stephen Chung
|
8d0623d07f
|
Add is_shared function.
|
2020-07-31 18:43:34 +08:00 |
|
Stephen Chung
|
0295e109ad
|
Fix features
|
2020-07-31 18:06:01 +08:00 |
|
Stephen Chung
|
871fcb38be
|
Minor style changes and make sure no_shared works on all.
|
2020-07-31 16:03:08 +08:00 |
|
Ilya Lakhin
|
89f75bbf0c
|
Merge remote-tracking branch 'schungx/closures' into closures
|
2020-07-31 13:05:16 +07:00 |
|
Ilya Lakhin
|
ca64668e58
|
take() keyword; shared test with registered functions with callbacks
|
2020-07-31 11:41:22 +07:00 |
|
Ilya Lakhin
|
aa87a7f5ef
|
Fixes in Engine to properly interpret Shared Dynamic
|
2020-07-31 10:47:22 +07:00 |
|
Ilya Lakhin
|
e5fe222de3
|
Shared variant of Dynamic type; All read/write access operations in Dynamic backed by Read/Write lock guards; new shared() script function
|
2020-07-31 10:47:14 +07:00 |
|
Stephen Chung
|
98b294c699
|
Implement capturing.
|
2020-07-30 18:18:28 +08:00 |
|
Stephen Chung
|
afbcd0fc0b
|
Replace StaticVec with SmallVec.
|
2020-07-29 16:10:06 +08:00 |
|
Stephen Chung
|
e2daba55d7
|
Refine unicode-xid-ident feature writeup.
|
2020-07-29 13:57:17 +08:00 |
|
Stephen Chung
|
eeb86f5efb
|
Merge branch 'master' of https://github.com/jonathandturner/rhai
|
2020-07-29 11:43:48 +08:00 |
|
ekicyou
|
288e0a4d14
|
add unicode_xid, test
|
2020-07-29 08:25:37 +09:00 |
|
ekicyou
|
9b0375b870
|
add unicode-xid
|
2020-07-29 07:03:21 +09:00 |
|
ekicyou
|
79022b1858
|
refactoring
|
2020-07-29 06:54:23 +09:00 |
|
ekicyou
|
c6d5bd000d
|
move is_valid_identifier
|
2020-07-29 06:24:41 +09:00 |
|
ekicyou
|
56a8120d75
|
add get_identifier
|
2020-07-29 05:26:57 +09:00 |
|
Stephen Chung
|
37ea24afe9
|
Improve docs.
|
2020-07-28 19:11:37 +08:00 |
|
Stephen Chung
|
f05cd1fdf3
|
Add shared and sync to reserved keywords.
|
2020-07-28 10:25:26 +08:00 |
|
Stephen Chung
|
ec5082c328
|
Better handling of reserved keywords.
|
2020-07-26 22:25:30 +08:00 |
|
Stephen Chung
|
ce20248792
|
Add more reserved keywords.
|
2020-07-26 21:57:30 +08:00 |
|
Stephen Chung
|
6b600704a3
|
Avoid warnings.
|
2020-07-26 15:53:22 +08:00 |
|
Stephen Chung
|
94c2f64473
|
Merge branch 'master' of https://github.com/jonathandturner/rhai
|
2020-07-25 16:05:11 +08:00 |
|
Stephen Chung
|
c825de6f77
|
Mark internal data structures with [INTERNALS].
|
2020-07-25 16:05:08 +08:00 |
|
John-John Tedro
|
1aab77df1c
|
Avoid scanning over slices to validate numerical literals
|
2020-07-25 09:52:54 +02:00 |
|
Stephen Chung
|
284e58e8a1
|
Improve documentation on internal types.
|
2020-07-25 15:52:27 +08:00 |
|
Stephen Chung
|
6d551f1596
|
Add currying support.
|
2020-07-22 23:12:09 +08:00 |
|
Stephen Chung
|
3ae7cf4018
|
Improve treatment of disabled symbols and custom symbols.
|
2020-07-17 14:50:23 +08:00 |
|
Stephen Chung
|
d119e13b79
|
Allow binding of this pointer in FnPtr calls.
|
2020-07-17 10:18:07 +08:00 |
|
Stephen Chung
|
16fbfbb606
|
Enable call in function-call style.
|
2020-07-16 12:09:31 +08:00 |
|
Stephen Chung
|
adc96e24bd
|
Fix all features.
|
2020-07-13 19:38:50 +08:00 |
|
Stephen Chung
|
7436fc1c05
|
Fix bug in tokenizing reserved symbols.
|
2020-07-10 11:41:56 +08:00 |
|
Stephen Chung
|
99164ebceb
|
Add custom syntax.
|
2020-07-09 19:54:28 +08:00 |
|
Stephen Chung
|
d92a514f48
|
Add reserved symbols.
|
2020-07-08 12:09:18 +08:00 |
|
Stephen Chung
|
d9fe6a1980
|
Add boolean xor operator and readjust % precedence.
|
2020-07-06 12:24:28 +08:00 |
|
Stephen Chung
|
a27f89b524
|
Add new register_fn_raw API.
|
2020-07-05 23:08:44 +08:00 |
|
Stephen Chung
|
e390dd73e6
|
Add custom operators.
|
2020-07-05 17:41:45 +08:00 |
|
Stephen Chung
|
936a3ff44a
|
Add feature to disable symbols.
|
2020-07-05 15:23:51 +08:00 |
|
Stephen Chung
|
d6a08be223
|
Refactor.
|
2020-06-29 23:55:28 +08:00 |
|
Stephen Chung
|
ab347fa14e
|
Add Module::iter_script_fn.
|
2020-06-26 22:33:27 +08:00 |
|
Stephen Chung
|
74c82bbd9c
|
Refactor.
|
2020-06-26 22:03:21 +08:00 |
|
Stephen Chung
|
8c632ed928
|
Remove println.
|
2020-06-26 19:54:12 +08:00 |
|
Stephen Chung
|
31eaf321d0
|
Refactor tokenizer.
|
2020-06-26 19:44:50 +08:00 |
|
Stephen Chung
|
58c198776f
|
Code cleanup.
|
2020-06-25 11:07:46 +08:00 |
|