Commit graph

29 commits

Author SHA1 Message Date
Jeong YunWon
0cd04ca2de usize::to_u32 for compiler internal conversion 2023-03-02 13:32:54 +09:00
Noa
41b465dee1 Custom marshal enc/decoding impl 2023-03-01 20:47:21 -06:00
DimitrisJim
50b5388711 Disallow __debug__ as args, kwargs name. 2023-03-01 12:15:41 +02:00
DimitrisJim
ce5cdd1bcb Always load __debug__ as a const. 2023-02-26 09:58:27 +02:00
Jeong YunWon
30f85787a7 use super::* from tests submodules 2023-02-22 21:01:39 +09:00
Jeong YunWon
bf3f3eca62 Flatten rustpython_parser interface 2023-02-22 20:32:31 +09:00
Charlie Marsh
2a86dbd644 Implement except* syntax 2023-02-21 12:19:54 +09:00
harupy
d83e3ee8cd Revert "Simplify compile_dict"
This reverts commit b31b08a30eb24e246b7f0a0d69b2b5e56a7e7a40.
2023-01-16 01:27:54 +09:00
harupy
6bda1a9e9e Simplify compile_dict 2023-01-15 23:20:00 +09:00
harupy
f8ae56c75b Fix clippy errors 2023-01-15 15:04:15 +09:00
harupy
cb3578dbf2 Fix scan_expression and compile_dict 2023-01-15 14:54:58 +09:00
harupy
375d592562 Fix scan_expression and compile_dict 2023-01-15 13:22:05 +09:00
Noa
da96cecfca Switch from 64-bit instruction enum to out-of-line arg values 2023-01-12 23:05:17 -06:00
Jeong YunWon
9250260e20 Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
yt2b
7cdbb5d7b6 Replace bool variable with SymbolFlags 2022-11-28 00:46:10 +09:00
Jeong YunWon
e081f1041e Apply let-else statements 2022-11-10 15:39:31 +09:00
Kuan-Chun Wang
a96bc6ad3e Fix global behavior on class (#4234) 2022-10-21 13:06:50 +09:00
Jeong YunWon
3768647eb0 Merge pull request #4226 from jopemachine/fix-class-static
Fix lambda expression's  unexpected `UnboundLocalError`
2022-10-17 13:46:09 +09:00
Gyubong
586e0425c1 Fix #3934 2022-10-16 15:34:44 +09:00
Jeong YunWon
621f58407a Fix nightly clippy warnings 2022-10-16 02:38:50 +09:00
Gyubong
830f208371 Handle Lambda Expression 2022-10-01 18:23:11 +09:00
Gyubong
f5ce4a6cc3 Always insert None at code_stack.constants 2022-09-21 16:11:29 +09:00
Jeong YunWon
9d6ab72d79 integrate ast::Location into compilre-core::Location 2022-08-22 08:42:20 +09:00
Jeong YunWon
b3095c7451 rustpython-bytecode -> rustpython-compiler-core 2022-08-22 08:42:20 +09:00
Jeong YunWon
03ccd4b9d8 Add source_path to ParseError 2022-08-22 08:42:20 +09:00
Jeong YunWon
cf10e800a6 codegen::{CompileError -> CodegenError} 2022-08-22 08:42:20 +09:00
Jeong YunWon
3690272256 Refactor Mode and partial parser/codegen for eval/exec 2022-08-22 08:42:20 +09:00
Jeong YunWon
9c229ebb99 Refactor symboltables and _ast to use codegen when possible 2022-08-22 08:42:20 +09:00
Jeong YunWon
060d153bb3 reorganize compiler crates 2022-08-22 04:42:42 +09:00
Renamed from src/compile.rs (Browse further)