about summary refs log tree commit diff
path: root/crates/syntax/src/parsing
AgeCommit message (Collapse)AuthorLines
2021-12-28dead codeAleksey Kladov-1/+1
2021-12-26internal: move ws attachment logic to the parser crateAleksey Kladov-192/+1
This has to re-introduce the `sink` pattern, because doing this purely with iterators is awkward :( Maaaybe the event vector was a false start? But, anyway, I like the current factoring more -- it sort-of obvious that we do want to keep ws-attachment business in the parser, and that we also don't want that to depend on the particular tree structure. I think `shortcuts` module achieves that.
2021-12-25renameAleksey Kladov-44/+39
2021-12-25internal: renameAleksey Kladov-9/+9
2021-12-25internal: replace TreeSink with a data structureAleksey Kladov-17/+35
The general theme of this is to make parser a better independent library. The specific thing we do here is replacing callback based TreeSink with a data structure. That is, rather than calling user-provided tree construction methods, the parser now spits out a very bare-bones tree, effectively a log of a DFS traversal. This makes the parser usable without any *specifc* tree sink, and allows us to, eg, move tests into this crate. Now, it's also true that this is a distinction without a difference, as the old and the new interface are equivalent in expressiveness. Still, this new thing seems somewhat simpler. But yeah, I admit I don't have a suuper strong motivation here, just a hunch that this is better.
2021-12-18internal: move all the lexing to the parser crateAleksey Kladov-320/+51
2021-12-18minor: dead codeAleksey Kladov-12/+0
2021-12-12parser tests workAleksey Kladov-90/+16
2021-10-03Fix miscellaneous Clippy lintsAramis Razzaghipour-4/+2
2021-10-03Add semicolons for consistencyAramis Razzaghipour-2/+2
`clippy::semicolon_if_nothing_returned`
2021-06-13clippy::redudant_borrowMaan2003-4/+4
2021-06-03Apply more clippy suggestions and update generatedClemens Wasser-4/+4
2021-05-22Add more docsAleksey Kladov-1/+1
2021-05-15Attach comments to ast::ImplLukas Wirth-2/+2
2021-03-27Add support for doc on hover for macro 2.0Edwin Cheng-2/+2
2021-03-16Upgrade rowanAleksey Kladov-5/+1
Notably, new rowan comes with support for mutable syntax trees.
2021-03-14Attach trivia to ast::Union nodesLukas Wirth-2/+2
2021-01-20:arrow_up: rowanAleksey Kladov-4/+3
It now stores text inline with tokens
2021-01-15Remove useless wrapperAleksey Kladov-3/+2
2021-01-09Fixed typos in code commentsVincent Esche-4/+4
2021-01-07Change <|> to $0 - RebaseKevaundray Wedderburn-28/+28
2020-12-16Node-ify lifetimesLukas Wirth-2/+2
2020-12-15Move to upstream `macro_rules!` modelJonas Schievink-2/+2
2020-12-04Use items can also have doc commentsLukas Wirth-1/+1
2020-11-12Fix attachment of inner doc commentsAleksey Kladov-14/+13
2020-11-06Kill RAW_ literalsAleksey Kladov-3/+3
Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level.
2020-11-06Minor, cleanup styleAleksey Kladov-50/+64
2020-11-02Deny unreachable-pubAleksey Kladov-1/+1
It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034.
2020-10-07CleanupAleksey Kladov-10/+13
2020-10-01Up rustc-ap-rustc_lexer to 681kjeremy-4/+4
cargo update as well
2020-08-12Rename ra_syntax -> syntaxAleksey Kladov-0/+966