Stephen Chung
|
fe65bf6137
|
Fix bug in optimizer.
|
2021-01-12 23:52:50 +08:00 |
|
Stephen Chung
|
f8b36a470a
|
Fix test.
|
2021-01-09 16:57:21 +08:00 |
|
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
|
96b1e7777b
|
Update URL links.
|
2021-01-07 17:30:06 +08:00 |
|
Stephen Chung
|
e2a47b2a65
|
Disallow duplicated function definitions.
|
2021-01-03 20:54:08 +08:00 |
|
Stephen Chung
|
ba7f8c6391
|
Propagate source info.
|
2020-12-30 21:12:51 +08:00 |
|
Stephen Chung
|
13f5cec291
|
Fix call stack limits.
|
2020-12-29 12:29:45 +08:00 |
|
Stephen Chung
|
eca8212f38
|
More code refinements.
|
2020-12-29 10:41:20 +08:00 |
|
Stephen Chung
|
5c813ca7c0
|
Code cleanup.
|
2020-12-28 09:49:54 +08:00 |
|
Stephen Chung
|
6b8d78d64c
|
Streamline parsing.
|
2020-12-27 16:50:48 +08:00 |
|
Stephen Chung
|
48af8719e7
|
Fix closure property access.
|
2020-12-27 11:50:24 +08:00 |
|
Stephen Chung
|
66d3af256e
|
Enhance custom operators.
|
2020-12-26 23:21:09 +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
|
2e7ec8f1db
|
IdentX -> Ident.
|
2020-12-22 16:45:56 +08:00 |
|
Stephen Chung
|
ff67efc6d5
|
Add source to contexts.
|
2020-12-21 23:12:45 +08:00 |
|
Stephen Chung
|
5ac83f0f46
|
Add context source to on_debug.
|
2020-12-21 22:04:46 +08:00 |
|
Stephen Chung
|
2955a4ab64
|
Fix unary operators binding.
|
2020-12-21 17:39:37 +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
|
fc54fdc907
|
Emphasize custom syntax are expressions.
|
2020-12-17 10:42:20 +08:00 |
|
Stephen Chung
|
95b8dcc623
|
Update docs.
|
2020-12-16 14:57:28 +08:00 |
|
Stephen Chung
|
f8c14ba1c4
|
Add look-ahead to custom syntax parser.
|
2020-12-15 19:23:30 +08:00 |
|
Stephen Chung
|
17310ef576
|
Encapsulate structures.
|
2020-12-14 23:05:13 +08:00 |
|
Stephen Chung
|
ecc08271d9
|
Include actual tokens in custom syntax node.
|
2020-12-13 14:31:24 +08:00 |
|
Stephen Chung
|
dbdb8f43b7
|
Change AST to struct.
|
2020-12-12 15:57:55 +08:00 |
|
Stephen Chung
|
40b6a014ae
|
Provide Position to debug.
|
2020-12-12 11:47:18 +08:00 |
|
Stephen Chung
|
4438c358d5
|
on_progress takes u64.
|
2020-12-12 10:10:27 +08:00 |
|
Stephen Chung
|
bed29da71a
|
Use ImmutableString.
|
2020-12-11 12:57:07 +08:00 |
|
Stephen Chung
|
f22a04fc74
|
Move constancy into Dynamic.
|
2020-12-08 22:47:38 +08:00 |
|
Stephen Chung
|
8e8069f819
|
Do not propagate constants if shadowed.
|
2020-12-08 22:20:29 +08:00 |
|
Stephen Chung
|
bd52333802
|
Add namespace test.
|
2020-12-07 21:54:52 +08:00 |
|
Stephen Chung
|
c5babac3da
|
Quote map property names.
|
2020-11-30 22:02:32 +08:00 |
|
Stephen Chung
|
4c4a209609
|
Fix tests.
|
2020-11-30 21:16:59 +08:00 |
|
Stephen Chung
|
1004bca5b5
|
Print arrays and maps with to_debug.
|
2020-11-30 11:20:51 +08:00 |
|
Stephen Chung
|
86009c70c8
|
Allow floating point numbers ending in a period.
|
2020-11-23 22:51:21 +08:00 |
|
Stephen Chung
|
eb4636f219
|
Fix LexError::ImproperSymbol.
|
2020-11-21 15:15:14 +08:00 |
|
Stephen Chung
|
0046fe7e73
|
Prefer Engine::disable_symbol to disable eval.
|
2020-11-21 15:08:18 +08:00 |
|
Stephen Chung
|
6c07d5fd73
|
Fix constant example.
|
2020-11-21 14:46:05 +08:00 |
|
Stephen Chung
|
2be757fda0
|
Make shadowing variables in custom syntax work.
|
2020-11-21 13:05:57 +08:00 |
|
Stephen Chung
|
17cd305af7
|
Restore previous always_search when exiting block.
|
2020-11-21 12:25:39 +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
|
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
|
d50d48f26f
|
Move definition of Array and Map to lib.rs.
|
2020-11-16 21:14:32 +08:00 |
|
Stephen Chung
|
ef02150afd
|
Expose methods for Engine::register_module.
|
2020-11-16 14:07:48 +08:00 |
|
Stephen Chung
|
b75964e383
|
Add Dynamic::UNIT.
|
2020-11-15 23:14:29 +08:00 |
|
Stephen Chung
|
a63f14b59c
|
Expr::Switch -> Stmt::Switch.
|
2020-11-14 23:43:36 +08:00 |
|
Stephen Chung
|
c104afbdce
|
Fix switch test.
|
2020-11-14 18:30:26 +08:00 |
|
Stephen Chung
|
89254a04c4
|
Fix tests.
|
2020-11-14 17:22:01 +08:00 |
|
Stephen Chung
|
83c7c101d1
|
Add docs and tests for switch.
|
2020-11-14 09:38:16 +08:00 |
|
Stephen Chung
|
55b4907f19
|
Add switch expression.
|
2020-11-13 18:32:18 +08:00 |
|
Stephen Chung
|
41c815f355
|
Optimize in-place.
|
2020-11-12 12:37:42 +08:00 |
|
Stephen Chung
|
7b27dcdd62
|
Fix error messages.
|
2020-11-11 13:25:45 +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
|
c6ef2d1e95
|
Add test to make sure call_fn does not pollute scope.
|
2020-11-06 13:41:04 +08:00 |
|
Stephen Chung
|
32f41c69bd
|
Refine code and docs.
|
2020-11-03 21:50:14 +08:00 |
|
Stephen Chung
|
f74d947c6b
|
Fix constant assignment.
|
2020-11-03 13:08:19 +08:00 |
|
Stephen Chung
|
d7d6f74dfd
|
Add constant NO_POS.
|
2020-11-02 12:50:27 +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
|
427af14f1b
|
Don't wrap system errors from function calls.
|
2020-10-28 14:10:46 +08:00 |
|
Stephen Chung
|
4b087d0e69
|
Fix test.
|
2020-10-27 23:45:04 +08:00 |
|
Stephen Chung
|
01663a6581
|
Refine docs.
|
2020-10-27 11:30:38 +08:00 |
|
Stephen Chung
|
54d68c1061
|
Fix bug.
|
2020-10-26 21:49:49 +08:00 |
|
Stephen Chung
|
b607a3a9ba
|
Add raw API for custom syntax.
|
2020-10-25 21:57:18 +08:00 |
|
Stephen Chung
|
2c7c719cd5
|
Minor cleanup before release.
|
2020-10-22 12:26:44 +08:00 |
|
Stephen Chung
|
ce03a4fda5
|
Fix throw test.
|
2020-10-20 23:30:01 +08:00 |
|
Stephen Chung
|
07bdb824fe
|
Add try-catch.
|
2020-10-20 23:16:03 +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
|
92ba7b42d5
|
Implement namespaces chain.
|
2020-10-20 10:54:32 +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
|
c8c4ca21ad
|
Update docs.
|
2020-10-19 14:26:15 +08:00 |
|
Stephen Chung
|
8a17856f27
|
Fix test.
|
2020-10-18 22:38:15 +08:00 |
|
Stephen Chung
|
ea814779bf
|
Fix test.
|
2020-10-18 22:24:01 +08:00 |
|
Stephen Chung
|
82e6dd446a
|
Encapsulate register_fn_raw parameters into NativeCallContext.
|
2020-10-18 17:02:17 +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
|
fb05e811b7
|
Map::keys and Map::values can be used method-call style.
|
2020-10-15 22:11:40 +08:00 |
|
Stephen Chung
|
1c86c66f1a
|
Add more functions to arrays.
|
2020-10-13 10:57:29 +08:00 |
|
Stephen Chung
|
747fda1ec7
|
Add filter, map, reduce to Array.
|
2020-10-12 22:49:51 +08:00 |
|
Stephen Chung
|
fd5a932611
|
Implement variable resolver.
|
2020-10-11 21:58:11 +08:00 |
|
Stephen Chung
|
c463e42987
|
Fix serde test.
|
2020-10-10 14:15:23 +08:00 |
|
Stephen Chung
|
d511aac7a4
|
Reduce max call stack size for debug.
|
2020-10-08 23:00:01 +08:00 |
|
Stephen Chung
|
e34a370f33
|
Test optimizer with overriding operator.
|
2020-10-08 10:34:32 +08:00 |
|
Stephen Chung
|
d35c216465
|
Add README's.
|
2020-10-07 22:56:21 +08:00 |
|
Stephen Chung
|
8809d25d3c
|
Add Dynamic::from(&str)
|
2020-10-06 21:25:05 +08:00 |
|
Stephen Chung
|
82d48df734
|
Merge data type mismatch errors.
|
2020-10-05 13:45:57 +08:00 |
|
Stephen Chung
|
9664ae42a7
|
Add is_def_XXX tests.
|
2020-10-03 21:59:19 +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
|
64c421b3d7
|
Revise docs.
|
2020-09-28 22:14:19 +08:00 |
|