Stephen Chung
|
a5a161ec88
|
Format getter/setter function name using constants.
|
2020-03-26 10:55:33 +08:00 |
|
Stephen Chung
|
2bb2e871ab
|
Remove regnster_fn support for first argument of &type (not used).
|
2020-03-25 17:21:58 +08:00 |
|
Stephen Chung
|
5aea997672
|
Refine Scope API.
|
2020-03-25 11:27:18 +08:00 |
|
Stephen Chung
|
3bc02a99ad
|
Format comments.
|
2020-03-25 11:27:09 +08:00 |
|
Stephen Chung
|
599b81ad8a
|
Remove ScopeEntry and VariableType from public.
|
2020-03-25 11:24:29 +08:00 |
|
Stephen Chung
|
180c4dee08
|
Document macros.
|
2020-03-25 11:24:06 +08:00 |
|
Stephen Chung
|
d21f66b911
|
Fixing lint warnings
|
2020-03-24 16:57:35 +08:00 |
|
Stephen Chung
|
3ea482567f
|
Simplify code style.
|
2020-03-24 16:46:47 +08:00 |
|
Stephen Chung
|
156ebd7ea4
|
Avoid copying tokens.
|
2020-03-24 11:21:20 +08:00 |
|
Stephen Chung
|
7b06715299
|
FIX - Errors in no_std.
|
2020-03-24 11:21:09 +08:00 |
|
Stephen Chung
|
3677bd3651
|
Make Token smaller by boxing LexError.
|
2020-03-24 09:49:37 +08:00 |
|
Stephen Chung
|
1b4bcbcfdf
|
Add evaluate expressions.
|
2020-03-22 21:03:58 +08:00 |
|
Stephen Chung
|
b6320c0eef
|
Minor fine tuning.
|
2020-03-22 10:18:16 +08:00 |
|
Stephen Chung
|
1d98f65342
|
Disallow statement expressions in if and while guards to reduce code confusion.
|
2020-03-20 19:50:58 +08:00 |
|
Stephen Chung
|
ed996e71d6
|
Enable dot operations on constant variables.
|
2020-03-20 19:27:02 +08:00 |
|
Stephen Chung
|
283602cdd8
|
Do not call function when optimizing if there is a script-defined function overridding it.
|
2020-03-19 22:29:02 +08:00 |
|
Stephen Chung
|
702b2010f2
|
Add contains to Scope.
|
2020-03-19 20:55:49 +08:00 |
|
Stephen Chung
|
6a6c5f30de
|
Add eval function.
|
2020-03-19 19:53:42 +08:00 |
|
Stephen Chung
|
cc8ec12691
|
Add more comments and examples.
|
2020-03-19 13:52:10 +08:00 |
|
Stephen Chung
|
b3efb8b264
|
Disallow variable names starting with _ + digit.
|
2020-03-18 23:09:53 +08:00 |
|
Stephen Chung
|
0dc51f8e59
|
Removee debug_msgs feature.
|
2020-03-18 22:03:50 +08:00 |
|
Stephen Chung
|
019e73bc7e
|
Allow empty statements.
|
2020-03-18 18:41:18 +08:00 |
|
Stephen Chung
|
a9c65a962c
|
Split no_stdlib and no_std into two features.
|
2020-03-18 12:04:26 +08:00 |
|
Stephen Chung
|
ecded729ad
|
Finalize no_std support.
|
2020-03-18 10:50:51 +08:00 |
|
Stephen Chung
|
ca20faf170
|
Add code comments.
|
2020-03-18 10:43:59 +08:00 |
|
Stephen Chung
|
8efe080412
|
Handle break and return better.
|
2020-03-18 10:42:27 +08:00 |
|
Stephen Chung
|
d2951bfb6b
|
Make sure return is not an error.
|
2020-03-18 10:40:07 +08:00 |
|
Stephen Chung
|
b26ca753c2
|
Mandatory semiclolons separating statements.
|
2020-03-18 10:40:07 +08:00 |
|
Stephen Chung
|
c3d4a1b5e9
|
Optimize type_of.
|
2020-03-18 10:40:07 +08:00 |
|
Stephen Chung
|
abe5365bfd
|
Improve error messages to lists.
|
2020-03-18 10:40:07 +08:00 |
|
Stephen Chung
|
ef8d428f42
|
Add code comments.
|
2020-03-18 10:36:50 +08:00 |
|
Trangar
|
c8a9df0a0a
|
Added no_std support
|
2020-03-17 19:26:11 +01:00 |
|
Stephen Chung
|
6ca39a019b
|
Handle break and return better.
|
2020-03-17 17:33:37 +08:00 |
|
Stephen Chung
|
706e0a0c4c
|
Make sure return is not an error.
|
2020-03-17 16:52:06 +08:00 |
|
Stephen Chung
|
2f7ca3935b
|
Mandatory semiclolons separating statements.
|
2020-03-17 14:29:22 +08:00 |
|
Stephen Chung
|
ad2601972a
|
Optimize type_of.
|
2020-03-17 10:27:43 +08:00 |
|
Stephen Chung
|
705fbd0c1b
|
Improve error messages to lists.
|
2020-03-16 23:51:32 +08:00 |
|
Stephen Chung
|
08abf07f83
|
Add string literal indexing and functon default value to optimizer.
|
2020-03-16 12:41:52 +08:00 |
|
Stephen Chung
|
f36caa6dc3
|
Add optimize_full pseudo feature.
|
2020-03-16 12:40:42 +08:00 |
|
Stephen Chung
|
2c90fea764
|
Catch illegal variable names.
|
2020-03-16 12:38:01 +08:00 |
|
Stephen Chung
|
372321dfe3
|
Add full optimization level for aggressive optimizing.
|
2020-03-15 22:39:58 +08:00 |
|
Stephen Chung
|
f80e499e84
|
Minor code cleanup.
|
2020-03-14 23:41:21 +08:00 |
|
Stephen Chung
|
01cf777961
|
Use matches! macro.
|
2020-03-14 23:41:15 +08:00 |
|
Stephen Chung
|
b9e4040635
|
Deprecate Error::description.
|
2020-03-14 23:39:45 +08:00 |
|
Stephen Chung
|
b87dc1b281
|
Only map to expressions for constants.
|
2020-03-14 20:08:18 +08:00 |
|
Stephen Chung
|
dd36f3387a
|
Fixup code to make sure all feature builds succeed.
|
2020-03-14 20:06:40 +08:00 |
|
Stephen Chung
|
973153e832
|
Add no_optimize feature to disable optimizations.
|
2020-03-14 20:06:10 +08:00 |
|
Stephen Chung
|
26bdc8ba08
|
FIX - fixes panic when constant array is assigned to. Refine README section on constants.
|
2020-03-14 19:46:44 +08:00 |
|
Stephen Chung
|
504fd56f1f
|
More documentation on chained assignment.
|
2020-03-14 14:57:59 +08:00 |
|
Stephen Chung
|
360fab7760
|
Merge branch 'chained-assignments'
|
2020-03-14 14:41:48 +08:00 |
|