Commit graph

25 commits

Author SHA1 Message Date
Dimitris Fasarakis Hilliard
66cbe3fe62 Document parser crate. 2023-02-12 17:58:19 +02:00
Jeong YunWon
cecb205f56 Merge pull request #4417 from harupy/add-with-offset-methods
Add `with_col_offset` and `with_row_offset` to `Location` for conveniece
2023-01-04 17:07:31 +09:00
harupy
72185fecd5 Add with_col_offset and with_row_offset to Location 2023-01-04 13:16:03 +09:00
harupy
674ab0d55e Remove incorrect EmptyExpression in parse_formatted_value 2023-01-03 23:55:50 +09:00
Jeong YunWon
50f191b2c7 Merge pull request #4409 from harupy/improve-error-conversion-in-string-parser
Improve error conversion in `string_parsers.rs`
2023-01-03 14:39:01 +09:00
harupy
6374c0df13 Improve error conversion in string_parsers.rs 2023-01-03 12:46:10 +09:00
Bijan Naimi
5f90db1527 forgot to add formatted errors.rs 2023-01-01 17:28:49 -08:00
Bijan Naimi
0c35874aec changed the shell logic for handling indents 2023-01-01 15:41:51 -08:00
Jeong YunWon
1fd4583fc4 Merge pull request #4384 from harupy/parse-formatted-value
Fix the location of `FormattedValue`
2022-12-31 10:52:44 +09:00
harupy
faec9372f9 Fix FormattedValue location 2022-12-30 21:39:29 +09:00
anilbey
c4f126a8c4 Update compiler/parser/src/error.rs
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
2022-12-29 22:56:34 +01:00
Anil Tuncel
aa75f82e2d arg name to be written upon duplicate kwargs error #4381 2022-12-29 22:06:41 +01:00
Nick Liu
5b40f2297c add arg_name in duplicate argument error msg 2022-12-29 22:49:26 +08:00
Nick Liu
8eeca31fe6 added lex error: DuplicateArguments 2022-12-29 22:49:26 +08:00
Anders Kaseorg
3e3c1417bc Prohibit starred arguments after double-starred arguments
CPython prohibits ‘f(**kwargs, *args)’; we should too.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-27 12:49:50 -08:00
Jeong YunWon
9250260e20 Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
dvermd
de7acf6f99 improve fstring parser
part of: #1671
2022-10-26 21:15:24 +02:00
Jeong YunWon
122382cb53 use thiserror 2022-08-23 05:08:24 +09:00
Jeong YunWon
a1640e4aa1 new_syntax_error working without full compiler
Fix #4100
2022-08-23 05:08:24 +09:00
Jeong YunWon
5b50c547d6 Integrate CompileError to compiler-core::BaseError 2022-08-22 23:18:41 +09:00
Jeong YunWon
1192a11d39 integrate CodegenError to compiler-core::Error 2022-08-22 18:43:03 +09:00
Jeong YunWon
9d67b944cf Integrate ParseError to compiler-core::Error 2022-08-22 16:28:08 +09:00
Jeong YunWon
9d6ab72d79 integrate ast::Location into compilre-core::Location 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
060d153bb3 reorganize compiler crates 2022-08-22 04:42:42 +09:00