Commit Graph

1300 Commits

Author SHA1 Message Date
Stephen Chung
777f66ff3c Add section on statements and variables. 2020-03-18 10:42:27 +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
d4311bddb0 Put comments into example scripts. 2020-03-18 10:40:07 +08:00
Stephen Chung
ef8d428f42 Add code comments. 2020-03-18 10:36:50 +08:00
Stephen Chung
42ecae4366
Merge pull request #103 from VictorKoenders/no_std
Add no_std support
2020-03-18 10:27:30 +08:00
Trangar
c8a9df0a0a Added no_std support 2020-03-17 19:26:11 +01:00
Stephen Chung
dca2a927b5 Add section on statements and variables. 2020-03-17 17:37:28 +08: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
5ad2d24251 Put comments into example scripts. 2020-03-16 14:50:12 +08:00
Stephen Chung
bffa3ed636
Merge pull request #108 from schungx/master
Constants and aggressive optimizations.
2020-03-16 13:12:57 +08:00
Stephen Chung
f3213b945d Fix power_of test. 2020-03-16 13:08:53 +08:00
Stephen Chung
35e354eb41 Refine README. 2020-03-16 12:42:01 +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
5235ba71dd Run examples with full optimizations. 2020-03-16 12:41:19 +08:00
Stephen Chung
6d33a91d09 Fix minor floating-point digit error. 2020-03-16 12:40:55 +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
6e076c409d Use matches! in examples. 2020-03-14 23:40:30 +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
Stephen Chung
cb6171ebcd Merge branch 'constants' 2020-03-14 14:33:56 +08:00
Stephen Chung
b3a22d942a Allow AST optimization based on external Scope. 2020-03-14 14:30:44 +08:00
Stephen Chung
d5adee2209 Allow chained assignments. 2020-03-14 11:51:45 +08:00
Stephen Chung
9fb0520b0b Merge branch 'master' of https://github.com/schungx/rhai 2020-03-13 23:09:58 +08:00
Stephen Chung
e5ed2f4be5 Update api.rs 2020-03-13 23:09:45 +08:00
Stephen Chung
f59dbfc4e0
Merge pull request #106 from schungx/master
Add opt-in features to turn off/disable language features.
2020-03-13 18:36:43 +08:00
Stephen Chung
f91d068c0f
Update api.rs 2020-03-13 18:31:17 +08:00
Stephen Chung
c7a6777b70
Merge branch 'master' into master 2020-03-13 18:27:53 +08:00
Stephen Chung
208a91ea93
Merge pull request #107 from Jarqwiz/master
Make every file evaluation use PathBuf instead of str
2020-03-13 18:14:06 +08:00
Stephen Chung
9844ae8665 Add constants. 2020-03-13 18:12:41 +08:00
Jarkko Kuukkanen
6c72e3c48b
Change filename to path for clarity 2020-03-13 12:07:51 +02:00
Jarkko Kuukkanen
8c1c37666d
Make every file evaluation use PathBuf instead of str 2020-03-13 11:53:14 +02:00
Stephen Chung
2a181e5aab FIX - fix minus/negative number conflict. 2020-03-13 16:54:00 +08:00
Stephen Chung
9bd66c7db3 Minor improvements to the optimizer. 2020-03-12 23:46:52 +08:00