546 Commits

Author SHA1 Message Date
Jeong YunWon
8816cd41d5 0.3.1 2024-04-10 17:39:57 +09:00
rrupy
2f8e5189d3 Use ast::Suite::parse instead of deprecated parse_program. (#5186) 2024-03-05 22:37:42 +09:00
Jeong YunWon
d26766b7bc better symboltable error message 2024-02-29 21:30:31 +09:00
Jeong YunWon
506c8a633e Fix redox and nightly 2023-12-30 12:53:57 +09:00
Jeong YunWon
a309cb5d2c Fix 1.75 clippy warnings 2023-12-30 11:48:40 +09:00
Jeong, YunWon
4135da42ac Fix clippy (#5083)
* Fix clippy

* Fix nightly clippy
2023-10-06 03:17:03 +09:00
Jelmer Vernooij
9031a0ac9f bump lz4_flex dependency to 0.11 (#5067) 2023-09-27 17:43:17 +09:00
Jeong YunWon
1208416b92 0.3.0 release 2023-09-06 18:49:55 +09:00
Jeong, YunWon
d4d362a9ca Update to Rust 1.72.0 2023-08-27 00:38:10 +09:00
Zanie Blue
bdb0c8f645 Add parser support for PEP 695 (#5026)
* Add generated content for PEP 695 ASDL

* Bump RustPython/Parser to 704eb40108

* Add stubs for type aliases and parameters
2023-07-20 13:54:07 +09:00
Jeong, YunWon
3d2c51962b Update parser (#5012) 2023-06-18 02:38:42 +09:00
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
bac1cdc55f Remove compiler_core::CompileError 2023-05-06 18:22:25 +09:00
Jeong YunWon
f2cfa5f0a7 Split parser to new repository
6b60f85cc4
2023-05-06 14:38:11 +09:00
Jeong YunWon
ff5076b12c rustpython-literal 2023-05-05 21:49:12 +09:00
Jeong YunWon
cfbdf7f924 Refactor common::bytes::repr using common::escape 2023-05-03 16:08:48 +09:00
Jeong YunWon
2080cc2067 Refactor common::str::repr using common::escape 2023-05-03 13:47:04 +09:00
Micha Reiser
0a94e1393a Add Located::start, Located::end and impl Deref 2023-04-26 10:24:34 -06:00
Micha Reiser
8605fea678 Use Located::new over struct initializer 2023-04-25 18:10:13 -06:00
Jeong YunWon
19224505e8 module objects' type as PyModule 2023-04-20 20:48:57 +09:00
Jeong YunWon
57b0ca644e Update lalrpop 2023-03-25 22:18:02 +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
Charlie Marsh
70734a1f28 Include Derive feature with optional Serde dependency 2023-03-12 14:46:10 -04:00
Jeong YunWon
87728c4452 Merge pull request #4608 from coolreader18/bag-deser
Rework frozen modules and directly deserialize to CodeObject<Literal>
2023-03-10 05:19:23 +09:00
Noa
456bc80697 Rework frozen modules and directly deserialize to CodeObject<Literal> 2023-03-06 13:45:33 -06:00
Charlie Marsh
1871a1632e Treat match and case as soft keywords in lambda assignments (#4623) 2023-03-04 12:42:05 -05:00
Charlie Marsh
b846311173 Add optional serde dependency 2023-03-02 15:38:40 -05: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
ec7b5861f9 Address review comments 2023-03-01 21:11:59 -06: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
c0f5266bc4 Use insta to verify values. 2023-02-28 20:00:47 +09:00
Jeong YunWon
1ca57407d3 Use git version of unicode_names2 to avoid alias search failure 2023-02-28 20:00:47 +09:00
Jeong YunWon
622b62cff1 Merge pull request #4584 from charliermarsh/charlie/adds
Use proper locations for sub-expressions in constant matches
2023-02-27 13:59:49 +09:00
Charlie Marsh
e206505061 Use proper locations for sub-expressions in constant matches 2023-02-26 23:10:38 -05:00
DimitrisJim
8405693325 Always load __debug__ as a const. 2023-02-26 09:58:27 +02:00
Charlie Marsh
9423712696 Allow type variable tuple for *args 2023-02-23 08:39:59 -05:00