Stephen Chung
|
7598ec136f
|
Fix feature builds.
|
2020-12-08 23:09:12 +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
|
aff207d4f4
|
Bump version.
|
2020-12-07 22:21:02 +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
|
b098160262
|
New CI test.
|
2020-11-28 16:58:02 +08:00 |
|
Stephen Chung
|
36546c7325
|
Fix builds
|
2020-11-27 23:37:59 +08:00 |
|
Stephen Chung
|
a0979d0c35
|
Code cleanup
|
2020-11-25 09:36:06 +08:00 |
|
Stephen Chung
|
86009c70c8
|
Allow floating point numbers ending in a period.
|
2020-11-23 22:51:21 +08:00 |
|
Stephen Chung
|
36aa827e15
|
Simply interned strings dict.
|
2020-11-23 21:12:57 +08:00 |
|
Stephen Chung
|
2d73468723
|
Add doc on Engine::gen_fn_signatures.
|
2020-11-23 20:27:20 +08:00 |
|
Stephen Chung
|
9abd397276
|
Fix no_function build.
|
2020-11-23 20:26:28 +08:00 |
|
Stephen Chung
|
b43223a94f
|
Add get_fn_metadata_list.
|
2020-11-23 19:11:32 +08:00 |
|
Stephen Chung
|
8d410dfc71
|
Add return type to function metadata.
|
2020-11-22 22:15:17 +08:00 |
|
Stephen Chung
|
6222f14fcb
|
Fix no-std build.
|
2020-11-22 17:49:00 +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
|
739dce72e3
|
Move if_def_fn into CorePackage.
|
2020-11-22 15:41:55 +08:00 |
|
Stephen Chung
|
e5c9ca23b5
|
Build index when creating a module.
|
2020-11-21 22:18:32 +08:00 |
|
Stephen Chung
|
254fd16e62
|
Fix type sizes test.
|
2020-11-21 17:39:43 +08:00 |
|
Stephen Chung
|
97368da762
|
Reserve begin/end.
|
2020-11-21 15:44:17 +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
|
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
|
b34e7840b0
|
Fix serde build
|
2020-11-20 21:07:31 +08:00 |
|
Stephen Chung
|
783803ec46
|
Update comments with links.
|
2020-11-20 16:52:28 +08:00 |
|
Stephen Chung
|
15afd83da5
|
Merge Expr::True/False into BoolConstant.
|
2020-11-19 22:29:50 +08:00 |
|
Stephen Chung
|
b87fa87a75
|
Fix internals.
|
2020-11-19 14:08:58 +08:00 |
|
Stephen Chung
|
5e4ede6f07
|
global_module -> global_namespace.
|
2020-11-19 13:56:03 +08:00 |
|
Stephen Chung
|
a00d6ba99e
|
Optimize IndexChainValue usage.
|
2020-11-19 13:51:59 +08:00 |
|
Stephen Chung
|
0e4743e7c7
|
Share environment when making module from AST.
|
2020-11-19 10:52:45 +08:00 |
|
Stephen Chung
|
1de85d749d
|
Optimize AST.
|
2020-11-19 10:41:08 +08:00 |
|
Stephen Chung
|
d35a7eeaa8
|
Optimize PackagesCollection.
|
2020-11-19 10:24:43 +08:00 |
|
Stephen Chung
|
a8cdb661f8
|
Optimize Imports.
|
2020-11-19 10:14:43 +08:00 |
|
Stephen Chung
|
21c641d21f
|
Set namespace in Module::set_fn_XXX_mut calls.
|
2020-11-17 15:11:58 +08:00 |
|
Stephen Chung
|
038e3c2554
|
Add FnNamespace for module functions.
|
2020-11-17 12:23:53 +08:00 |
|
Stephen Chung
|
999a87f86e
|
Fix no_optimize build.
|
2020-11-16 23:32:44 +08:00 |
|
Stephen Chung
|
7ef3bd6b20
|
Fix no_function build.
|
2020-11-16 23:25:19 +08:00 |
|
Stephen Chung
|
699220057f
|
Fix bug.
|
2020-11-16 23:17:34 +08:00 |
|
Stephen Chung
|
272c8505b8
|
Refactor use.
|
2020-11-16 23:10:14 +08:00 |
|
Stephen Chung
|
d50d48f26f
|
Move definition of Array and Map to lib.rs.
|
2020-11-16 21:14:32 +08:00 |
|
Stephen Chung
|
adb902326e
|
Reduce feature gates on imports.
|
2020-11-16 16:28:04 +08:00 |
|
Stephen Chung
|
ef02150afd
|
Expose methods for Engine::register_module.
|
2020-11-16 14:07:48 +08:00 |
|
Stephen Chung
|
cd62104296
|
More Dynamic constants.
|
2020-11-16 13:56:07 +08:00 |
|
Stephen Chung
|
b6d35ab310
|
Fix no_module build.
|
2020-11-16 09:30:17 +08:00 |
|
Stephen Chung
|
b75964e383
|
Add Dynamic::UNIT.
|
2020-11-15 23:14:29 +08:00 |
|
Stephen Chung
|
937b45a187
|
Add Engine::load_module.
|
2020-11-15 23:14:16 +08:00 |
|
Stephen Chung
|
fbe9425794
|
Add discriminant to Dynamic::hash.
|
2020-11-15 18:39:23 +08:00 |
|
Stephen Chung
|
c919ee4e46
|
Fine tune hash map sizes.
|
2020-11-15 13:49:54 +08:00 |
|
Stephen Chung
|
bde8917ed4
|
Set capacity of hash maps.
|
2020-11-15 12:07:35 +08:00 |
|
Stephen Chung
|
a63f14b59c
|
Expr::Switch -> Stmt::Switch.
|
2020-11-14 23:43:36 +08:00 |
|
Stephen Chung
|
0182117759
|
Change Stmt Variant names.
|
2020-11-14 22:55:23 +08:00 |
|
Stephen Chung
|
fce2c62f02
|
Reformat code files.
|
2020-11-14 22:43:56 +08:00 |
|
Stephen Chung
|
28de155f08
|
Add Expr::DynamicConstant.
|
2020-11-14 19:04:49 +08:00 |
|
Stephen Chung
|
89254a04c4
|
Fix tests.
|
2020-11-14 17:22:01 +08:00 |
|
Stephen Chung
|
56fbe39b7b
|
Use references for switch expressions, if possible.
|
2020-11-14 16:08:48 +08:00 |
|
Stephen Chung
|
b0c66eb5e5
|
Add benchmarks for switch statement.
|
2020-11-13 19:35:51 +08:00 |
|
Stephen Chung
|
bc07b4fa84
|
Fix builds.
|
2020-11-13 18:49:23 +08:00 |
|
Stephen Chung
|
55b4907f19
|
Add switch expression.
|
2020-11-13 18:32:18 +08:00 |
|
Stephen Chung
|
7d1b971b39
|
More interned strings.
|
2020-11-13 10:43:54 +08:00 |
|
Stephen Chung
|
27619b86db
|
Fix builds.
|
2020-11-12 23:09:27 +08:00 |
|
Stephen Chung
|
69a0f044f4
|
Use interned strings to prepare for match statement.
|
2020-11-12 22:36:13 +08:00 |
|
Stephen Chung
|
8e5a53bc0d
|
Implement Hash for Dynamic.
|
2020-11-12 21:53:26 +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
|
958762079e
|
Change modules to namespace.
|
2020-11-10 23:26:50 +08:00 |
|
Stephen Chung
|
c41f5aefcb
|
Change sub-modules to shared.
|
2020-11-09 22:44:20 +08:00 |
|
Stephen Chung
|
e69444293c
|
Encapsulate imported modules into AST.
|
2020-11-09 21:52:23 +08:00 |
|
Stephen Chung
|
821e64adc4
|
Allow multiple exports.
|
2020-11-09 14:38:33 +08:00 |
|
Stephen Chung
|
173f8474d6
|
Fix no_module build.
|
2020-11-09 12:50:18 +08:00 |
|
Stephen Chung
|
4b622a8830
|
Enable export let/export const short-hand.
|
2020-11-09 12:21:11 +08:00 |
|
Stephen Chung
|
48886eacc8
|
Add == and != to arrays and maps.
|
2020-11-08 23:00:37 +08:00 |
|
Stephen Chung
|
487a073caf
|
Fix recursive file import bug.
|
2020-11-08 23:00:03 +08:00 |
|
Stephen Chung
|
232ba27548
|
Add NativeCallContext::new.
|
2020-11-08 18:15:23 +08:00 |
|
Stephen Chung
|
b926eba501
|
Fix doc test.
|
2020-11-08 16:49:59 +08:00 |
|
Stephen Chung
|
1e07e4356e
|
Re-index imported modules if they are not yet indexed.
|
2020-11-08 14:29:54 +08:00 |
|
Stephen Chung
|
760f6c3678
|
Fix no_function build.
|
2020-11-08 10:56:33 +08:00 |
|
Stephen Chung
|
b3d318ef7f
|
Module resolver returns shared module.
|
2020-11-07 23:33:21 +08:00 |
|
Stephen Chung
|
d5d70367fa
|
Fix no-std buld.
|
2020-11-06 19:22:00 +08:00 |
|
Stephen Chung
|
6bc5ba6668
|
Enable functions to use global imports.
|
2020-11-06 19:17:07 +08:00 |
|
Stephen Chung
|
07a8a43298
|
Optimize data structures.
|
2020-11-06 16:27:40 +08:00 |
|
Stephen Chung
|
3f6db1d9d4
|
Remove extra export of LexError.
|
2020-11-04 20:20:55 +08:00 |
|
Stephen Chung
|
a5d22ddd45
|
Make FuncInfo a struct.
|
2020-11-04 14:37:46 +08:00 |
|
Stephen Chung
|
b390586bcc
|
Fix optimization of Stmt::Expr.
|
2020-11-04 13:11:37 +08:00 |
|
Stephen Chung
|
c287a61b93
|
Streamline ScriptFnDef.
|
2020-11-04 12:34:54 +08:00 |
|
Stephen Chung
|
f75942715d
|
Remove clippy warnings.
|
2020-11-04 12:34:34 +08:00 |
|
Stephen Chung
|
2168fd5361
|
Expr::Stmt takes a statements block.
|
2020-11-04 11:49:02 +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
|
b9de8eaa7f
|
Minor code refactor.
|
2020-11-02 23:54:19 +08:00 |
|
Stephen Chung
|
cc304ba513
|
Fix serde build.
|
2020-11-02 13:18:37 +08:00 |
|
Stephen Chung
|
d7d6f74dfd
|
Add constant NO_POS.
|
2020-11-02 12:50:27 +08:00 |
|
Stephen Chung
|
6f3ce96d9d
|
Enable termination token.
|
2020-11-02 11:04:45 +08:00 |
|
Stephen Chung
|
b07a2aa79c
|
Pack Imports.
|
2020-11-01 23:42:00 +08:00 |
|
Stephen Chung
|
717e8e7eee
|
Remove unnecessary clone.
|
2020-11-01 22:55:19 +08:00 |
|