Stephen Chung
|
8a0d0e3e20
|
Unbox error return for Engine::register_custom_syntax.
|
2020-08-05 10:00:20 +08:00 |
|
Stephen Chung
|
9f302d4ef5
|
Update docs and tests.
|
2020-08-04 18:39:24 +08:00 |
|
Stephen Chung
|
b0ab6e95f5
|
Fix currying in map closure calls.
|
2020-08-04 18:38:33 +08:00 |
|
Stephen Chung
|
4878a69503
|
Add docs for closures.
|
2020-08-04 16:27:55 +08:00 |
|
Stephen Chung
|
3d6c83c6d8
|
Fix serde builds.
|
2020-08-04 09:47:48 +08:00 |
|
Stephen Chung
|
4a7bf893e6
|
Refine flatten clone for scope.
|
2020-08-03 23:13:09 +08:00 |
|
Stephen Chung
|
2aa08c0dd9
|
get_constant_value for FnPointer.
|
2020-08-03 23:12:42 +08:00 |
|
Stephen Chung
|
3b6d35368f
|
Handle shared for loop variable.
|
2020-08-03 23:11:38 +08:00 |
|
Stephen Chung
|
abe74e7f44
|
Handle Dynamic::from(FnPtr).
|
2020-08-03 23:11:24 +08:00 |
|
Stephen Chung
|
e1a70fe958
|
Add FnPtr to standard packages.
|
2020-08-03 23:11:08 +08:00 |
|
Stephen Chung
|
3fc35c4f87
|
Merge from master.
|
2020-08-03 13:28:29 +08:00 |
|
Stephen Chung
|
dddd8133df
|
Set unshared value in let/const statement.
|
2020-08-03 12:38:56 +08:00 |
|
Stephen Chung
|
4079164bfd
|
Implement closures.
|
2020-08-03 12:10:20 +08:00 |
|
Stephen Chung
|
096eb4493e
|
Engine::load_package API change.
|
2020-08-02 18:55:22 +08:00 |
|
Stephen Chung
|
747c0345f2
|
Do not convert a function call into a method call if the object is shared.
|
2020-08-02 13:51:07 +08:00 |
|
Stephen Chung
|
b86c87253b
|
Prevent data races.
|
2020-08-02 13:33:51 +08:00 |
|
Stephen Chung
|
1daf91df30
|
Avoid storing shared value inside shared value.
|
2020-08-01 22:28:17 +08:00 |
|
Stephen Chung
|
cc53b21731
|
Avoid hard-coding variable type for shared.
|
2020-08-01 22:28:13 +08:00 |
|
Stephen Chung
|
af2f8acb5d
|
Refine indexer set.
|
2020-08-01 12:21:15 +08:00 |
|
Stephen Chung
|
a2858e0fd3
|
Refine feature gates
|
2020-08-01 12:19:27 +08:00 |
|
Stephen Chung
|
5873bccd50
|
Fix no_index and no_object.
|
2020-07-31 23:37:30 +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
|
d563b878aa
|
Fix no_std builds.
|
2020-07-31 17:26:49 +08:00 |
|
Stephen Chung
|
df8587ac91
|
Make sure both shared and take can be called in both styles.
|
2020-07-31 17:06:40 +08:00 |
|
Stephen Chung
|
e70e0ff4e2
|
Fixup.
|
2020-07-31 16:39:38 +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
|
5d1f5cc2b4
|
Dynamic::read renamed to Dynamic::clone_inner_data
|
2020-07-31 13:10:05 +07:00 |
|
Ilya Lakhin
|
89f75bbf0c
|
Merge remote-tracking branch 'schungx/closures' into closures
|
2020-07-31 13:05:16 +07:00 |
|
Ilya Lakhin
|
4f771d904a
|
Code cleanup
|
2020-07-31 12:09:32 +07:00 |
|
Ilya Lakhin
|
ca64668e58
|
take() keyword; shared test with registered functions with callbacks
|
2020-07-31 11:41:22 +07:00 |
|
Stephen Chung
|
49392d57d7
|
Fix no_std feature.
|
2020-07-31 12:40:16 +08:00 |
|
Stephen Chung
|
cb005506e2
|
Simplify function calling.
|
2020-07-31 12:11:16 +08:00 |
|
Ilya Lakhin
|
060dd33046
|
Shared Dynamic tests and fixes in Engine; Also fixed a bug in Parser variable capturing
|
2020-07-31 10:47: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
|
a7ff207636
|
Use Scope::flatten_clone for capturing.
|
2020-07-30 23:29:30 +08:00 |
|
Stephen Chung
|
7d4620d0d9
|
Unbounded -> unbound.
|
2020-07-30 23:29:11 +08:00 |
|
Stephen Chung
|
98b294c699
|
Implement capturing.
|
2020-07-30 18:18:28 +08:00 |
|
Stephen Chung
|
e505a06839
|
Add comparison operators to ImmutableString.
|
2020-07-30 13:28:25 +08:00 |
|
Stephen Chung
|
691e04292f
|
Put externals in ScriptFnDef.
|
2020-07-30 13:28:06 +08:00 |
|
Stephen Chung
|
721c578407
|
Use HashMap for externals.
|
2020-07-29 23:34:48 +08:00 |
|
Stephen Chung
|
1465ba2315
|
Refactor auto-currying.
|
2020-07-29 22:43:50 +08:00 |
|
Stephen Chung
|
a5a3bbd399
|
Merge pull request #19 from Eliah-Lakhin/closures
Autocurry feature
|
2020-07-29 21:24:43 +08:00 |
|
Ilya Lakhin
|
8fc16b40e6
|
Code style issues fixed
|
2020-07-29 20:17:18 +07:00 |
|
Ilya Lakhin
|
a856a8bbcb
|
max_expr_depth bug fix
|
2020-07-29 19:04:33 +07:00 |
|
Ilya Lakhin
|
48356abc83
|
Autocurry fixes and test
|
2020-07-29 18:52:54 +07:00 |
|
Ilya Lakhin
|
8e51988b66
|
A prototype of a new feature to automatically curry of external scope variables
|
2020-07-29 16:56:32 +07:00 |
|
Stephen Chung
|
afbcd0fc0b
|
Replace StaticVec with SmallVec.
|
2020-07-29 16:10:06 +08:00 |
|