Stephen Chung
|
ad250fc973
|
Recursive self-contained AST.
|
2021-01-09 16:52:22 +08:00 |
|
Stephen Chung
|
637f47d259
|
Split AST::set_source into set_source/clear_source.
|
2021-01-09 15:20:07 +08:00 |
|
Stephen Chung
|
0f1f6c4ad3
|
Add Engine::compile_to_self_contained.
|
2021-01-09 00:24:55 +08:00 |
|
Stephen Chung
|
ba7f8c6391
|
Propagate source info.
|
2020-12-30 21:12:51 +08:00 |
|
Stephen Chung
|
dc4e52e795
|
Code enhancements.
|
2020-12-26 13:05:57 +08:00 |
|
Stephen Chung
|
f55a56c6bc
|
Engine::register_global_module and Engine::register_static_module must be passed shared Module.
|
2020-12-23 10:08:43 +08:00 |
|
Stephen Chung
|
15fb03218c
|
Rename packages to global modules.
|
2020-12-22 23:45:14 +08:00 |
|
Stephen Chung
|
2955a4ab64
|
Fix unary operators binding.
|
2020-12-21 17:39:37 +08:00 |
|
Stephen Chung
|
21c641d21f
|
Set namespace in Module::set_fn_XXX_mut calls.
|
2020-11-17 15:11:58 +08:00 |
|
Stephen Chung
|
df72d324ba
|
Fix tests.
|
2020-11-17 12:40:12 +08:00 |
|
Stephen Chung
|
038e3c2554
|
Add FnNamespace for module functions.
|
2020-11-17 12:23:53 +08:00 |
|
Stephen Chung
|
ef02150afd
|
Expose methods for Engine::register_module.
|
2020-11-16 14:07:48 +08:00 |
|
Stephen Chung
|
821e64adc4
|
Allow multiple exports.
|
2020-11-09 14:38:33 +08:00 |
|
Stephen Chung
|
487a073caf
|
Fix recursive file import bug.
|
2020-11-08 23:00:03 +08:00 |
|
Stephen Chung
|
3485f9b00b
|
Fix test.
|
2020-11-01 16:02:10 +08:00 |
|
Stephen Chung
|
a2e2b5e2ef
|
Add f32_float feature.
|
2020-11-01 15:48:48 +08:00 |
|
Stephen Chung
|
d88adfd73d
|
Fix test.
|
2020-10-16 21:26:38 +08:00 |
|
Stephen Chung
|
f995d09d8b
|
Fix bug with calling scripted function.
|
2020-10-16 21:16:06 +08:00 |
|
Stephen Chung
|
eec3f4e1bf
|
Module:;eval_ast_as_new defaults to merging namespaces.
|
2020-10-03 11:42:54 +08:00 |
|
Stephen Chung
|
2fd30321a8
|
Fix test.
|
2020-10-02 15:31:59 +08:00 |
|
Stephen Chung
|
d2c94ba07c
|
Add more module tests.
|
2020-10-02 14:55:02 +08:00 |
|
Stephen Chung
|
e526b53b42
|
No need to merge module if empty.
|
2020-09-30 09:57:21 +08:00 |
|
Stephen Chung
|
f406fc0ac0
|
Fix function calls.
|
2020-09-25 19:07:24 +08:00 |
|
Stephen Chung
|
39546b7053
|
Enable &str and String parameters in module functions.
|
2020-09-19 18:12:23 +08:00 |
|
Ilya Lakhin
|
4bb1a34abb
|
Fixes bug in Module::set_fn_4_mut
|
2020-09-15 10:14:34 +07:00 |
|
Stephen Chung
|
ac6d519d28
|
Fix bug that consumes first argument in module-qualified call.
|
2020-08-20 16:26:10 +08:00 |
|
Stephen Chung
|
057f6435a4
|
Add public_only parameter to module function methods.
|
2020-07-27 18:10:45 +08:00 |
|
Stephen Chung
|
6b600704a3
|
Avoid warnings.
|
2020-07-26 15:53:22 +08:00 |
|
Stephen Chung
|
3ae7cf4018
|
Improve treatment of disabled symbols and custom symbols.
|
2020-07-17 14:50:23 +08:00 |
|
Stephen Chung
|
8449f8c55e
|
Make API chainable.
|
2020-07-12 11:46:53 +08:00 |
|
Stephen Chung
|
703cc414b8
|
Allow mutating a module-qualified function's first argument if it is a variable.
|
2020-07-08 13:06:00 +08:00 |
|
Stephen Chung
|
e614790897
|
Enable function pointers even under no_function.
|
2020-06-30 18:34:58 +08:00 |
|
Stephen Chung
|
d6a08be223
|
Refactor.
|
2020-06-29 23:55:28 +08:00 |
|
Stephen Chung
|
aac04a5e53
|
Remove modules from Scope and use separate stack.
|
2020-06-27 23:56:24 +08:00 |
|
Stephen Chung
|
f3bde843cb
|
Fix scripts and tests.
|
2020-06-27 21:19:53 +08:00 |
|
Stephen Chung
|
175c3ccaec
|
OOP support.
|
2020-06-26 10:39:18 +08:00 |
|
Stephen Chung
|
a417bdd8e3
|
Support registering functions with a reference to the scripting engine.
|
2020-06-15 21:49:02 +08:00 |
|
Stephen Chung
|
bb691a0313
|
Add maximum data size limits.
|
2020-06-14 14:25:47 +08:00 |
|
Stephen Chung
|
9d91349513
|
Refine position display in error messages.
|
2020-06-12 18:04:16 +08:00 |
|
Stephen Chung
|
cec6748ac6
|
Remove no_module gates to prepare for plugins.
|
2020-06-01 10:58:14 +08:00 |
|
Stephen Chung
|
d7c69c4f51
|
More tests.
|
2020-05-28 14:08:21 +08:00 |
|
Stephen Chung
|
d56634cac7
|
Complete built-in operators.
|
2020-05-24 00:29:06 +08:00 |
|
Stephen Chung
|
6b8c6bda42
|
Use u64 for operations counter.
|
2020-05-19 10:08:27 +08:00 |
|
Stephen Chung
|
8b5550eeb6
|
Complete StaticVec implementation.
|
2020-05-17 22:19:49 +08:00 |
|
Stephen Chung
|
be97047e51
|
Limit modules loading.
|
2020-05-15 21:40:54 +08:00 |
|
Stephen Chung
|
03c64688ad
|
Fix sync feature.
|
2020-05-12 16:32:22 +08:00 |
|
Stephen Chung
|
80debbc432
|
Refactor.
|
2020-05-10 00:19:13 +08:00 |
|
Stephen Chung
|
0d20137d6c
|
Implement private modifier for functions.
|
2020-05-09 11:29:30 +08:00 |
|
Stephen Chung
|
d1de84fdd2
|
Add comments and fix documentation.
|
2020-05-09 10:00:59 +08:00 |
|
Stephen Chung
|
e50fcc385f
|
Pre-calculate index for module-qualified calls.
|
2020-05-08 22:38:56 +08:00 |
|