Commit Graph

9 Commits

Author SHA1 Message Date
Jeong YunWon cc6d8a1c58 Merge pull request #4492 from DimitrisJim/doc_parser_uno
Document parser crate.
2023-02-13 17:25:14 +09:00
Dimitris Fasarakis Hilliard 07918f0a9a Document parser crate. 2023-02-12 17:58:19 +02:00
Dimitris Fasarakis Hilliard 4713b2b3ab Refactor: Join string and string_parser. 2023-02-11 18:05:06 +02:00
Dimitris Fasarakis Hilliard 92b2574d52 Move tests for with into parser. 2023-01-01 21:36:07 +02:00
harupy 439298e735 Fix FormattedValue location 2022-12-30 21:39:29 +09:00
Anders Kaseorg 052dee72b8 Parse Python 3.9+ parenthesized context managers
Since the upstream grammar for this is not LR(1), we abuse LALRPOP
macros and the Into/TryInto traits to build a cover grammar that
converts to either tuples or `with` items after additional validation.
It’s annoying and ugly, but something like this is basically our only
option short of switching to a more powerful parser algorithm.

Fixes #4145.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-12 00:47:33 -08:00
Charlie Marsh 952d70b9d1 Add expression context parsing 2022-10-17 15:20:33 -04:00
Jeong YunWon 3742f9117b Add source_path to ParseError 2022-08-22 08:42:20 +09:00
Jeong YunWon 53c48bf6b9 reorganize compiler crates 2022-08-22 04:42:42 +09:00