Files
RustPython/Lib/test
a6b4ef7f5d Replace Python parser with ruff parser (#5494)
* stage1

* compiler pass build

* introduce rustpython-compiler-source

* stage2

* fixup

* pass compile

* Fix hello world compiler test

* Fix code generation for if-elif-else statement

* Fix code generation for lambda expression

* Fix code generation for integers

* Fix code generation for fstrings

* Fix code generation for if statement

* Fix code generation for if statement

* Fix code generation for if statement

* Fix code generation for fstring

* Fix code generation for class definition

* Replace feature flags

* Initialize frozen core modules

* Allow __future__ import after module doc comment

* Disable ast module

* Commit remaining fixes for compile errors in examples

* Fix some warnings

* Update ast stdlib module

* Update ast stdlib module

* Update ast stdlib module

* Update ast stdlib module

* Update ast stdlib module

* Split ast stdlib module into files

* Fix codegen for positional arguments with defaults

* Update ast stdlib module

* Update ast stdlib module

* Extract string and constant handling from expression.rs

* Always add required fields to AST nodes

* Compile doc strings correctly again

* Enable "ast" Cargo feature by default

* Refactor compilation of big integer literal

* Update ast stdlib module

* Update ast stdlib module

* Update ast stdlib module

* Reset barebones example

* Fix some left-over warnings

* Undo accidential change

* Adapt shell to ruff parser

* Pin parser to v0.4.10

* fix clippy

* Add TODO about interactive mode

* Fix compilation of complex number expression

* Remove moved code

* Update test case to ruff v0.4.10

* Apply suggestion

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>

* Apply suggestion

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>

* Fix compilation of fstring expression

* Fix compilation of fstring expression

* Fix wasm compile errors

* Attach correct source locations to ast objects

* Fix some more wasm compile errors

* Consider compile mode and enable AST stdlib module again

* Fix incorrect AST source location end column

* Fix compile error if "compiler" feature is not enabled

* Fix regrtests

* Fix some test_ast tests

* Add source range to type ignore

* Fix incompatibility with Rust 2024 edition

* Fix todos by implementing missing ast conversions and deleting unused code

* Appease clippy

* Fix remaining ast tests

* Fix remaining ast tests

* Mark/fix remaining tests

* Fix more

* Hacky windows fix

---------

Co-authored-by: Kangzhi Shi <shikangzhi@gmail.com>
Co-authored-by: Jeong YunWon <jeong@youknowone.org>
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
Co-authored-by: Noa <coolreader18@gmail.com>
2025-03-19 21:06:03 -05:00
..
2023-04-20 15:36:28 +09:00
2023-03-02 15:01:12 +09:00
2022-04-23 08:06:17 +09:00
2022-07-14 00:31:40 +09:00
2022-07-14 00:31:40 +09:00
2024-06-22 16:18:34 +09:00
2022-02-13 17:56:08 -05:00
2022-10-18 03:26:29 +09:00
2023-03-01 18:06:50 +09:00
2022-02-12 20:48:57 -05:00
2025-02-13 20:11:36 -08:00
2024-01-11 17:48:56 +09:00
2022-02-13 17:56:08 -05:00
2021-10-10 19:11:23 -04:00
2023-06-12 20:02:31 +03:00
2023-11-23 16:38:32 +08:00
2024-02-24 11:02:41 -05:00
2024-06-24 19:00:54 +09:00
2024-06-22 16:18:34 +09:00
2021-11-28 20:51:32 +08:00
2021-11-29 21:03:02 +08:00
2024-07-29 14:30:46 +09:00
2023-11-30 20:48:58 +08:00
2023-11-30 21:58:26 +08:00
2025-02-13 14:11:01 +09:00
2021-11-20 20:56:26 +09:00
2024-04-19 22:04:22 +09:00
2025-01-19 20:05:34 -08:00
2024-03-10 22:53:39 -04:00
2024-04-22 12:46:32 +09:00
2024-04-11 21:17:53 +09:00
2024-06-22 16:18:34 +09:00
2025-03-12 09:47:34 +09:00
2022-05-30 07:36:07 +09:00
2023-03-02 05:56:34 +09:00
2025-01-19 20:05:35 -08:00
2021-11-28 20:51:32 +08:00
2023-06-14 00:44:01 +03:00
2023-11-09 14:59:59 +08:00
2024-06-22 15:24:42 +09:00
2024-05-09 15:20:38 +09:00
2024-09-20 11:46:01 +09:00
2023-03-26 12:27:58 +09:00
2023-06-01 15:29:16 +09:00
2022-07-27 14:43:47 +09:00
2022-06-21 22:00:08 +09:00
2021-11-29 21:03:02 +08:00
2022-08-15 01:08:58 +09:00
2024-09-22 06:15:54 +01:00
2021-11-28 20:51:32 +08:00
2024-04-21 22:02:09 +09:00
2023-11-25 13:11:17 +09:00
2022-10-18 03:26:29 +09:00
2022-12-24 14:38:44 +09:00
2022-04-26 22:26:38 -04:00
2024-07-29 14:30:59 +09:00
2023-02-25 23:00:51 +09:00
2024-04-21 22:02:09 +09:00
2022-08-14 23:08:08 +09:00
2023-05-11 20:58:03 +02:00
2021-08-31 23:53:05 +09:00
2024-06-22 15:24:42 +09:00
2025-01-17 18:04:25 -08:00
2024-03-11 15:01:37 +09:00
2022-07-19 01:35:32 +09:00
2021-07-12 19:51:20 -04:00
2024-04-19 22:04:22 +09:00
2025-02-26 00:10:24 -06:00
2023-04-20 15:36:28 +09:00