Preserve RustPython History #6119
Merge pull request #4389 from harupy/4384-follow-up
95fb938b
Move tests for with into parser.
92b2574d
changed the shell logic for handling indents
6cb57b20
forgot to add formatted errors.rs
530a20cc
Move (c)format basic implementations to rustpython-common
f8787a93
Remove unreachable code in compiler/parser/src/string_parser.rs
68586f8e
Simplify code using match
fac6a857
Fix match
92bf9660
Merge match arms in parse_formatted_value
40e2150f
Merge pull request #4402 from harupy/remove-unreachable-if
d691527e
Merge pull request #4404 from harupy/merge-match-arms
4222b13e
Use drain
39f410c9
Merge pull request #4399 from branai/shell-continuing-fix
3d034396
Merge pull request #4405 from harupy/use-drain
71ba4226
Improve error conversion in string_parsers.rs
90306791
Fix clippy error
3b0fd61b
Merge pull request #4409 from harupy/improve-error-conversion-in-striā¦
2858c315
Remove repetitive to_string in parse_escaped_char
515dceb0
Improve CharWindow
300710f7
Remove incorrect EmptyExpression in parse_formatted_value
84dff79d
Address comment
33a62789
Add with_col_offset and with_row_offset to Location
6d140426
Use Self
0365752b
Merge pull request #4413 from harupy/more-generic-window-impl
0f311cd5
Merge pull request #4417 from harupy/add-with-offset-methods
958c7e33
Simplify string check
fd8468c5
Use try_from
9efa8720
Address comments
7f552e45
Implement Default for Location
2dfd053b
Include comment text in token
a4a53665
Fix nightly clippy warnings
509cf7ed
Merge pull request #4429 from youknowone/fix-format
e8fef398
first cspell dict
7885344b
Bump all crate versions to 0.2.0
884a7bdb
Fix docs.rs build for rustpython-parser
4f1e7c62
Add NonLogicalNewline token
674eeec2
Switch from 64-bit instruction enum to out-of-line arg values
872b9d47
Fixup parse_tokens after "Add NonLogicalNewline token"
e5fe037e
Merge pull request #4443 from bluetech/non-logical-newline-token-fixup
ac4d3c07
Fix dict spreading in dict literal
581f6e17
Fix unparse
d3c45516
Remove commented-out code
4edd2bf7
Add Option to Dict.keys field
393869c4
Improve test
d5fc7c4c
Rename test
2d019930
Remove useless String::from
b26365b2
Fix end location for elif blocks
6dba8430
Fix comment
f2ffe12f
Merge pull request #4449 from harupy/fix-dict-spread-in-dict
d9df1317
Bump phf to 0.11 series
f74e44d1
Match on ascii start/continuation characters before calling functions.
aa0290bb
Don't call is_emoji_presentation for each invocation of consume_normal
838990ae
Add initial capacities, use u32s for indents/spaces.
38cf933b
Eat for comma.
c9364718
Hint that the unwrap should always succeed.
1468fe46
use workspace dependencies
a73bee7a
Move NewLineHandler inline, don't check each character twice.
bd158089
Document lexer.
659f4dd8
Use entire range for generators-as-arguments
56c73cc6
Add test_generator_expression_argument
e7f14ab9
Refactor: Join string and string_parser.
4713b2b3
Add tests, some comments, to function.rs.
a0786ea8
Document parser crate.
07918f0a
Merge pull request #4492 from DimitrisJim/doc_parser_uno
cc6d8a1c
Merge pull request #4490 from DimitrisJim/function_parser
09b82e41
Make common::repr throw error instead of panic (#4520)
4bdc2d47
Add support for match statements to parser
2b43d45b
Use muiltipeek
ca5b474d
clean up soft-keyword transform
e093d2be
Update compiler/parser/src/soft_keywords.rs
f39ffef3
Allow starred expressions in subscripts
8aa3bc93
Update Python.asdl from CPython 3.11.1
8caa28f0
Implement except* syntax
c7ed645c
Merge pull request #4531 from charliermarsh/charlie/exception-groups
60180fd5
Merge pull request #4519 from charliermarsh/charlie/match
c137bc9d
Expose SoftKeywordTransformer on public API
dc628cab
Always wrap in SoftKeywordTransformer
2a8aa6f3
Break down rustpython_parser::error module
1511b663
Fix ModeParseError message
66e30801
relocate feature-independent use
39fc23cf
make_tokenizer -> lex to integrate terms
8580e4eb
Flatten rustpython_parser interface
cb8c6fb7
remove #[macro_use]
97a08ee7
use super::* from tests submodules
e26369a3
Allow trailing commas in MappingPattern
b61f4d7b
Limit match range to end of last statement
7ebef61c
Merge pull request #4543 from youknowone/flatten-parser
a19f294b
Merge pull request #4552 from charliermarsh/charlie/loc
f43e5b72
Allow type variable tuple for *args
0d7b9481
Use proper locations for sub-expressions in constant matches
c37e0c7f
Use git version of unicode_names2 to avoid alias search failure
d7e2e736
Use insta to verify values.
8f425e9c
Custom marshal enc/decoding impl
b80bbec8
Address review comments
969ea23d
Add optional serde dependency
713dd2b9
Treat match and case as soft keywords in lambda assignments (#4623)
55fc0e83
Rework frozen modules and directly deserialize to CodeObject<Literal>
9d6ae774
Merge pull request #4608 from coolreader18/bag-deser
0ea53825
Include Derive feature with optional Serde dependency
ef38eb6b
Update cspell for compiler
f9b54696
Update lalrpop
6d615541
module objects' type as PyModule
a9f4b59f
Use `Located::new` over struct initializer
3873414b
Add `Located::start`, `Located::end` and impl `Deref`
ae9d3c31
Refactor common::str::repr using common::escape
5b0e92d7
Refactor common::bytes::repr using common::escape
bd646039
rustpython-literal
80109b1f
Set up workspace - Forked from
e6eb49ff
Remove unused workspace dependencies
0adcdd99
Add CI
e28f333f
Merge pull request #5 from youknowone/ci
d66d9358
Update parser/build.rs to embed python.rs
e1f70100
Update lalrpop to 0.20.0
39b2dbe0
Merge pull request #7 from youknowone/lalrpop
6b60f85c
Add python lint
a73bac9e
Merge pull request #8 from youknowone/python-lint
96eb80f5
Remove CompileError
13d6e275
Merge pull request #10 from youknowone/remove-compile-error
48920a03
gitattribute
9f1a538e
Refactor ast to hold data as seperated type
6d735809
Merge pull request #11 from youknowone/refactor-asdl
7b8844bd
Replace row/column based Location with byte-offsets.
58c35ab4
Rename compiler Location to TextSize
f47dfca4
Separate byteoffset ast and located ast
a14e43e0
Adapt SourceLocation
09a6afdd
numerous refactoring
a3d9d8cb
Let `located` only for python located stuff
1d366d52
Vendor SourceLocation from ruff
4dc030ba
Merge pull request #13 from youknowone/locator
5cf85f0b
Generate a visitor trait to ast_gen.rs
4de9580b
Fix visitor to fit in new structure
243ca16b
Remove redundant types
e000b1c3
asdl_rs.py to multiple file output
17c8abce
Merge pull request #12 from youknowone/visitor
41e9e728
Setup spell checker
75f6ce1a
spell check ast/asdl_rs.py
d8822d10
Merge pull request #15 from youknowone/spellchecker
d495cd91
Give identifier and int ast types
455bcc01
Fine-tune int types
6fa3d0f9
Merge pull request #16 from youknowone/ast-int
cbc4cb28
fix ImportDots
aa101e4f
parse_expression{=>_starts}_at
822cac5a
ast::Int::to_usize
d6b6df5d
*Escape::with_preferred_quote
99e108dd
ruff integration support
aabc96dd
Make parser location optional
cbe4e8c5
Merge pull request #17 from youknowone/ruff
5b2af304
A few more Identifier utilities
2af98056
Merge pull request #19 from RustPython/identifier
2baad9ea
Field accessor and utilities (#20)
947fb53d
Add `format` and `cformat` modules from `RustPython` (#24)
a983f438
Move `range` from `Attributed` to `Node`s (#22)
192379ce
Move range to node (#23)
71835467
Generic types to generic (#30)
b78001c9
Reduce copying elements when parsing (#35)
dd4cc252
Add full-lexer feature (#36)
27e3873d
Always emit non-logical newlines for 'empty' lines (#27)
10dda125
Add Node trait for node type information (#31)
02f13abf
Fix full-lexer feature (#38)
735c06d5
Add is_* methods to Tok (#39)
0c7d16b6
Add all node classes to ast module (#40)
53de75ef
rustpython_ast + pyo3 (#25)
611dcc2e
specialize ConversionFlag (#42)
9d47d3d2
Hash for ConversionFlag
3bdf8a94
Add utilities to enum (#44)
ff17f6e1
Add experimental pyo3-wrapper feature (#41)
e820928f
Fix build (#45)
fc301ab1
README (#47)
205ee800
More flexible map_user and fold for new constructor nodes (#53)
b48834fe
Upgrade bitflags to remove clippy wanrings (#54)
531e41ae
Fix range field order (#56)
6c5c311b
Add `Ast` as top level enum (#58)
3654cf0b
Use named parameters to reducue copying
851f2366
Avoid allocating `vec`s for each statement
726884b2
Update parser/src/python.lalrpop
4ff779c2
Update `python.rs`
fac0c253
Merge pull request #60 from astral-sh/reduce-copy
33a3c407
Include decorators in `Class` and `FunctionDef` range
25cc1da3
Add test
41a0ef87
impl From<T> for ast::Ast (#62)
d4084fb1
Fix Vec::to_pyo3_ast (#63)
e1f02fce
Merge pull request #2 from astral-sh/include-decorators-in-class-and-ā¦
335780ae
to_pyo3_ast to return &'py
b81273e9
Separate rustpython_ast_pyo3
7d384d88
Merge pull request #65 from youknowone/refactor-pyo3
d23611db
Avoid removing elements from the beginning of a vec (#69)
5493c9f4
Parse Trait (#71)
4de0cb18
Cmpop::as_str (#72)
531aeb35
Add parser deps to rustpython_ast_pyo3 (#75)
ae3a477c
Align `MatchCase` end location
4a2c4aad
Add safety comment
342cd19f
Merge pull request #76 from astral-sh/match-case-end-location
fe25708d
Parse for expr and stmt variants + identifier, constant (#78)
3fbf4f68
New Arguments and Arg/ArgWithDefault AST representation (#59)
fdec727f
Linear Locator (#46)
5e9e8a75
Replace num-bigint with malachite-bigint (#18)
a2e3209c
Fix LinearLocator \r handling (#80)
b2f95e28
Add Pylyzer
40a60320
Fix bool format (#91)
edcfcb4a
rustpython_ast python package (#79)
52700204
Rename unconventional nodes (#74)
69d27d92
Merge branch 'RustPython:main' into main
5054cbe8
Include argument parentheses in range (#5)
8a415fa6
Add `Decorator` node (#7)
6f65c5cb
Update snapshot tests
9cb00518
Optimize `validate_arguments` (#10)
21aa0b8d
Make malachite-bigint an optional dependency for rustpython-format (#12)
8d74eee7
Remove `fold`, `unparse`, and `location` features (#9)
f0d200c8
Add `TextRange` to `Identifier` (#8)
ed3b4eb7
Fix ArgWithDefault TextRange (#13)
08ebbe40
Fix range of keyword identifier (#14)
f60e204b
Remove Range type parameter from AST nodes (#15)
8078663b
impl<T> Ranged for &T where T: Ranged (#16)
c174bbf1
impl Ranged for TextRange (#20)
0f2e295f
Remove asdl (#21)
2d1f69cb
tuple constants are for optimisations, not source (#28)
b996b21f
Regenerate code with latest ASDL
05ae26b9
Bump size assertion for `Stmt` from 136 to 160 bytes
c0a3a20c
Move `type_param` stubs into LALRPOP definition
c31b58eb
Parse type parameters in class definitions
ed7acfe4
Remove test for empty generic `class Foo[]: ...`
1f5e7078
Add test for tuple bounds
b0e119f0
Add bound to test case `test_parse_class_with_all_possible_generic_tyā¦
ce3ce073
Consolidate tests and add coverage for trailing comma
1d4b7a39
Parse type parameters in function definitions (#96)
f846f1ea
Add parsing of type alias statements i.e. the `type` keyword (#97)
a843a00f
Format
78c6ede1
Bump expected size of `Stmt` to 168 bytes
57e8712d
Fix decorator ranges
126652b6
Lex Jupyter line magic with `Mode::Jupyter` (#23)
3b4c8fff
Fix Jupyter Magic test snapshot (#29)
510be51c
snapshot
1bbec2b9
Revert "snapshot"
ff3e8ead
Refactor if statement, introduce nodes for elif and else (#22)
db04fd41
Implement `Ranged` for `TypeParam` (#32)
fb365c64
Fix empty lambda args range (#35)
4d03b9b5
Fix BoolOp python.org link (#37)
4888d800
Lex Jupyter Magic in assignment value position (#30)
e363fb86
Add line magic stmt and expr AST nodes (#31)
5ef4ccd6
fix the ranges of constants inside f-strings (#33)
13196fc5
perf: Cursor based lexer (#38)
593b46be
Prepare for moving the parser into the Ruff monorepo (#40)
ff7bab58
Remove parser ast re-export (#41)
fab9cc52
Fix `TypeAliasName` to store name instead of load (#42)
7ec979d0
Move files to common directory
6f4ee328
Fix clippy issues
802df97d
Delete more unused files
90573975
Delete RustPython files
c1bc0dc8
Merge branch 'main' of ../parser-move into preserve-history
7a63a8f4
Move RustPython Files
06ba1cf0
MichaReiser
force pushed
from
6152de3a
to
06ba1cf0
2 years ago
MichaReiser
deleted the preserve-history branch 2 years ago
MichaReiser
deleted the preserve-history branch 2 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub