Commit Graph
63 Commits
Author SHA1 Message Date
Steve Shi de0d323ad3 change dependency from num-bigint to malachite-bigint (#4952) 2023-06-08 14:28:39 +09:00
Jeong, YunWon 7a3f965396 new ast layout for arguments (#4978) 2023-06-02 17:07:34 +09:00
Jeong, YunWon ff7055749c Update parser to specialize ConversionFlag (#4976) 2023-05-17 10:47:56 +09:00
Jeong, YunWon f5fc30ae63 Move range to each Node (#4969) 2023-05-15 17:00:23 +09:00
Micha Reiser 7a6000d181 Use format and cformat from rustpython-literal (#4968)
* Use `format` and `cformat` from `rustpython-literal`

* Remove unused dependencies, use `rustpython-format`
2023-05-13 02:58:02 +09:00
Jeong YunWon a43a8c546e Revert a few .as_str() calls by adding it to ast 2023-05-11 04:43:57 +09:00
Jeong YunWon 4064c84cb4 ast::Identifier and ast::Int 2023-05-10 20:31:35 +09:00
Jeong YunWon dc569e9921 Refactoring 2023-05-10 19:35:27 +09:00
Jeong YunWon f1b261b4f8 Adapt byte-offset location 2023-05-10 04:13:30 +09:00
Jeong YunWon c7025f70d5 Remove PySymbol*Ref types 2023-05-08 01:11:13 +09:00
Jeong YunWon 0af106c85c Refactor ast to hold data as seperated type 2023-05-07 19:31:31 +09:00
Jeong YunWon ff808ad313 more location -> start() 2023-05-06 19:59:03 +09:00
Jeong YunWon f2cfa5f0a7 Split parser to new repository
https://github.com/RustPython/Parser/commit/6b60f85cc4ca248af9b787697c41be2adb7a3ec8
2023-05-06 14:38:11 +09:00
Jeong YunWon 12c96d06e4 Remove useless and_then 2023-03-18 22:10:25 +09:00
Jeong YunWon 21afc1933a Update cspell for compiler 2023-03-16 22:39:09 +09:00
Jeong YunWon 815083d1e8 Add #![deny(clippy::cast_possible_truncation)] 2023-03-02 13:34:21 +09:00
Jeong YunWon b432bb0cf3 usize::to_u32 for compiler internal conversion 2023-03-02 13:32:54 +09:00
Noa 6d1f2986fe Custom marshal enc/decoding impl 2023-03-01 20:47:21 -06:00
DimitrisJim 8294d4ae8e Disallow __debug__ as args, kwargs name. 2023-03-01 12:15:41 +02:00
DimitrisJim 8405693325 Always load __debug__ as a const. 2023-02-26 09:58:27 +02:00
Jeong YunWon f96942bdc0 use super::* from tests submodules 2023-02-22 21:01:39 +09:00
Jeong YunWon f078f79c90 Flatten rustpython_parser interface 2023-02-22 20:32:31 +09:00
Charlie Marsh da9b2ee6b9 Implement except* syntax 2023-02-21 12:19:54 +09:00
Jeong YunWon 42a22c280d use workspace dependencies 2023-02-06 15:30:38 +09:00
harupy f4363c8a86 Revert "Simplify compile_dict"
This reverts commit b31b08a30e.
2023-01-16 01:27:54 +09:00
harupy b31b08a30e Simplify compile_dict 2023-01-15 23:20:00 +09:00
harupy 15228f4463 Simplify scan_expression 2023-01-15 22:08:19 +09:00
harupy fdd3beaf58 Fix clippy errors 2023-01-15 15:04:15 +09:00
harupy ae770996f6 Fix scan_expression and compile_dict 2023-01-15 14:54:58 +09:00
harupy cdb1323515 Fix scan_expression and compile_dict 2023-01-15 13:22:05 +09:00
Noa 2861c874ed Switch from 64-bit instruction enum to out-of-line arg values 2023-01-12 23:05:17 -06:00
Noa c7faae9b22 Bump all crate versions to 0.2.0 2023-01-11 00:14:28 -06:00
harupy a6cebc4f51 Add with_col_offset and with_row_offset to Location 2023-01-04 13:16:03 +09:00
harupy d39269405b Fix tests 2022-12-30 22:46:31 +09:00
yt2b 9c81ce646a Fix is_local 2022-12-22 23:27:36 +09:00
yt2b 0719231bb9 Fix symbol scope 2022-12-18 09:48:35 +09:00
Jeong YunWon d935fbc445 Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
yt2b dd83308396 Use intersects 2022-11-28 20:48:03 +09:00
yt2b a5ef816c41 Replace bool variable with SymbolFlags 2022-11-28 00:46:10 +09:00
yt2b dbf27a955d Fix comment 2022-11-27 23:46:45 +09:00
yt2b de10ce2d89 Reduce nesting of match expression 2022-11-27 23:43:26 +09:00
yt2b 1ffb652adf Add SymbolFlags 2022-11-27 23:36:25 +09:00
yt2b f23ea5eb09 Add bitflags 2022-11-27 23:30:52 +09:00
Jeong YunWon 499b34cee0 Apply let-else statements 2022-11-10 15:39:31 +09:00
dvermd dc595d1276 improve fstring parser
part of: #1671
2022-10-26 21:15:24 +02:00
Kuan-Chun Wang dda6f86ba3 Fix global behavior on class (#4234) 2022-10-21 13:06:50 +09:00
Jeong YunWon 72332c90d1 Merge pull request #4226 from jopemachine/fix-class-static
Fix lambda expression's  unexpected `UnboundLocalError`
2022-10-17 13:46:09 +09:00
Gyubong 67c4bd0467 Fix #3934 2022-10-16 15:34:44 +09:00
Jeong YunWon d94f638784 Fix nightly clippy warnings 2022-10-16 02:38:50 +09:00
Gyubong 70812eb880 Handle Lambda Expression 2022-10-01 18:23:11 +09:00