Commit Graph

2870 Commits

Author SHA1 Message Date
Stephen Chung
f7d523e983
Merge pull request #406 from schungx/master
Fix hanging when parsing unterminated statements block.
2021-04-20 11:37:01 +08:00
Stephen Chung
a186eb8d97 Fix hanging when parsing unterminated statements block. 2021-04-20 11:22:38 +08:00
Stephen Chung
e9de975450 Notes on how to install tools. 2021-04-20 11:06:05 +08:00
Stephen Chung
b73d7f21a4
Merge pull request #404 from schungx/master
Fix bugs.
2021-04-19 23:05:58 +08:00
Stephen Chung
272a824ec4 Use global constant. 2021-04-19 22:40:20 +08:00
Stephen Chung
e4ffd2d52a Fix codegen test. 2021-04-19 22:12:20 +08:00
Stephen Chung
46b22ddd96 Fix tests. 2021-04-19 18:08:29 +08:00
Stephen Chung
ea866cead5 More array tests. 2021-04-19 17:02:17 +08:00
Stephen Chung
e88fb071f7 Fix module test. 2021-04-19 15:41:24 +08:00
Stephen Chung
1ecb2b170f Remove redundant statement. 2021-04-19 15:11:05 +08:00
Stephen Chung
c5e716e71f Fix zero position bugs in array methods. 2021-04-19 15:11:03 +08:00
Stephen Chung
1145c5a4c0 Update rust_decimal. 2021-04-18 21:35:55 +08:00
Stephen Chung
bd145bd080 Do not unnecessarily reindex module. 2021-04-17 22:19:48 +08:00
Stephen Chung
2efe9d08a4 Skip eval if statements are empty. 2021-04-17 22:19:34 +08:00
Stephen Chung
87e1921aad
Merge pull request #400 from schungx/master
Automatic global module.
2021-04-17 19:08:46 +08:00
Stephen Chung
90198d5440 Fix test. 2021-04-17 18:59:20 +08:00
Stephen Chung
eefdc09352 Allow shadowing of global. 2021-04-17 18:40:16 +08:00
Stephen Chung
9a8da93145 Delay creation of global module until actually needed. 2021-04-17 18:10:57 +08:00
Stephen Chung
1be7e60be2 Automatic global module. 2021-04-17 17:25:35 +08:00
Stephen Chung
9a409b5b49 Simplify script. 2021-04-17 16:25:39 +08:00
Stephen Chung
b5ade8dad0
Merge pull request #399 from schungx/master
Use no-std-compat to build no-std.
2021-04-17 15:35:20 +08:00
Stephen Chung
01f0cc028b Use no-std-compat to build no-std. 2021-04-17 15:15:54 +08:00
Stephen Chung
2f2b7403cb Streamline as_mut to &mut. 2021-04-17 13:54:24 +08:00
Stephen Chung
199df9aa4a Use deref for Target. 2021-04-17 13:36:51 +08:00
Stephen Chung
807a14eaa2 call_fn always evalutes AST. 2021-04-17 13:36:23 +08:00
Stephen Chung
6c92011ea1 Hide is_shared and is_locked under feature gates. 2021-04-17 12:03:29 +08:00
Stephen Chung
b54d44c670
Merge pull request #398 from schungx/master
Finalize 0.20.0.
2021-04-16 22:25:29 +08:00
Stephen Chung
6eaee57578 Bump version. 2021-04-16 22:07:18 +08:00
Stephen Chung
e31506fe51 Bump version. 2021-04-16 21:59:11 +08:00
Stephen Chung
2b10c5c6c1 Correct position of negative numbers. 2021-04-16 21:59:05 +08:00
Stephen Chung
7d1ec1b4b7
Merge pull request #397 from schungx/master
Switch case conditions.
2021-04-16 13:39:42 +08:00
Stephen Chung
208e5fdbf4 New switch errors. 2021-04-16 13:28:36 +08:00
Stephen Chung
1f987ec61a Streamine StmtBlock. 2021-04-16 13:15:11 +08:00
Stephen Chung
980a13ca42 Add switch case conditions. 2021-04-16 12:04:33 +08:00
Stephen Chung
c5128e15d5 Fix scripts. 2021-04-16 10:33:55 +08:00
Stephen Chung
8da4c0c2b2 Default switch case must be last. 2021-04-16 09:41:02 +08:00
Stephen Chung
187dbe537f Improve debug AST printing. 2021-04-13 15:52:45 +08:00
Stephen Chung
5a0199f44f Explanation of parse_string_literal return values. 2021-04-13 14:38:04 +08:00
Stephen Chung
ca2ec0d4d5 Fix script typo. 2021-04-13 14:37:33 +08:00
Stephen Chung
8389033789
Merge pull request #394 from schungx/master
Fix string continuation handling at EOF.
2021-04-11 21:58:02 +08:00
Stephen Chung
44e2e6aeb4 Fix string handling at EOF. 2021-04-11 21:49:03 +08:00
Stephen Chung
ccbbf3eb34 Enhance floating-point display. 2021-04-11 11:20:34 +08:00
Stephen Chung
c1c1e5f684 Use string start position as error position. 2021-04-11 11:19:46 +08:00
Stephen Chung
b658ca0b4b
Merge pull request #393 from schungx/master
@schungx Fix panic with unterminated interpolated string.
2021-04-10 17:57:29 +08:00
Stephen Chung
6b4553ffc8 Fix panic with unterminated interpolated string. 2021-04-10 17:47:44 +08:00
Stephen Chung
40fda5139d Support negative index counting from end. 2021-04-10 15:00:03 +08:00
Stephen Chung
10f334dbf3
Merge pull request #392 from schungx/master
Fix string parsing state.
2021-04-10 12:45:27 +08:00
Stephen Chung
716e9cf779 Fix string parsing state. 2021-04-10 11:11:42 +08:00
Stephen Chung
30cd7a7c7b
Merge pull request #391 from schungx/master
Fix string parsing.
2021-04-10 10:47:14 +08:00
Stephen Chung
42555ac732 Unify string continuation parsing. 2021-04-10 10:20:17 +08:00