Noah
3d07a73346
Fix clippy failure on Rust 1.42.0
2020-03-12 17:42:37 -05:00
philippeitis
e037e37018
Simplify code, have errors match CPython implementation.
2020-02-27 11:34:55 -08:00
philippeitis
a21a2d4773
Handle != in f-string braces, raise EmptyExpression when expected.
2020-02-26 21:09:25 -08:00
philippeitis
3b74e780ec
Add ExpectedRbrace error, fix error messages.
2020-02-26 21:07:46 -08:00
Jeong YunWon
1abe7e3313
Allow star expression for list elements
2020-02-16 17:32:51 +09:00
Jeong YunWon
7d0d313aa5
&str::to_string -> &str::to_owned for variables
2020-02-05 22:55:34 +09:00
Jeong YunWon
1bac582921
&str::to_string -> &str::to_owned for literals
2020-02-05 22:55:33 +09:00
Daniel Alley
4e2afe7937
Remove wtf8 dependency
2020-01-27 08:35:58 -05:00
Aviv Palivoda
ad4beab6f6
fix line continuation parsing
2020-01-24 21:50:19 +02:00
coolreader18
1c3b4d2fc4
Remove 'regex' from parser/Cargo.toml, as we don't use it
2020-01-15 20:19:11 -06:00
Jeong YunWon
e5b91c25a8
Reduce &String usage
2020-01-15 11:51:29 +09:00
Jeong YunWon
5d50e19432
dict comprehension test
2020-01-08 11:54:30 +09:00
coolreader18
98211a34de
Try to cut down on the # of unicode crates we use
2020-01-05 00:19:56 -06:00
Abe
30473d3058
Add support for string formatting of floats with ":f" format code
...
Also adds automatic conversion of int -> float when the ":f"
format code is specified.
Fixes a f-string formatting style regression introduced in #1625 .
2019-12-31 18:52:46 -07:00
Aviv Palivoda
8e84a85b0c
Add more tests for nested f-string spec
2019-12-27 10:19:07 +02:00
Aviv Palivoda
c3703f08d7
Support expression in f-strings spec
2019-12-27 10:19:07 +02:00
Noah
c6131b3d7a
Merge pull request #1640 from youknowone/clippy
...
Fix clippy warnings
2019-12-21 14:31:43 -06:00
Jeong YunWon
c1306726c4
Fix clippy warnings
2019-12-21 18:49:48 +09:00
coolreader18
fd07047aaf
Rename LineContinationHandler -> LineContinuationHandler
2019-12-10 21:54:58 -06:00
yanganto
7f45ed3cca
Provide caret diagnostics for SyntaxError
...
visualize syntax error with caret diagnostics in shell, eval, exec,
when the error statement and error location are provided.
2019-11-22 09:17:50 +08:00
coolreader18
1fcdbf74bc
Fix raw byte literals
2019-11-11 14:57:27 -06:00
Windel Bouwman
4ca49b4d79
Add some documentation strings to the parser code.
2019-10-12 21:58:27 +02:00
Windel Bouwman
336364c80d
Merge pull request #1318 from youknowone/ast-module
...
ast module
2019-10-12 12:51:26 +02:00
Jeong YunWon
2f1fb16da1
Add mode to ast::parse
2019-10-12 18:12:36 +09:00
Seo Sanghyeon
e76edde38e
Implement IndentationError
2019-10-12 02:24:12 +09:00
Windel Bouwman
82e8811fee
Merge pull request #1499 from HyeockJinKim/issue1498
...
Take only numbers after `.`
2019-10-11 17:39:54 +02:00
Seo Sanghyeon
97069c8605
Update lalrpop to 0.17
2019-10-11 15:50:15 +09:00
Chris West (Faux)
60bb597dc0
upgrade low-risk deps
2019-10-10 21:07:26 +01:00
Chris West (Faux)
45e4d6e9cd
upgrade regex to be consistent
2019-10-10 20:50:09 +01:00
HyeockJinKim
5c70631e9e
Take only numbers after .
...
Take only numbers not `_` after `.`
Fixes #1498
2019-10-10 17:24:14 +09:00
Seo Sanghyeon
f2e04c0e2f
Implement TabError
2019-10-05 10:12:02 +09:00
Seo Sanghyeon
3f1009ec2c
Disable a Clippy warning
2019-10-03 20:16:40 +09:00
Seo Sanghyeon
bdb6208f6f
Do not panic in parser
2019-10-03 19:41:12 +09:00
Windel Bouwman
188ff0ea73
Merge pull request #1430 from HyeockJinKim/issue1422
...
Generate SyntaxError at integer starting with 0
2019-09-28 21:08:06 +02:00
HyeockJinKim
c8d0f5c956
Generate SyntaxError at integer starting with 0
...
Generate syntaxError at integer starting with 0,
not zero
Fixes #1422
2019-09-29 01:12:07 +09:00
Windel Bouwman
215eefe0b7
Merge pull request #1407 from vazrupe/dup-kargs-error
...
Add duplicate keyword argument error
2019-09-27 10:06:35 +02:00
Vazrupe (HyeonGyu Lee)
21669a023b
Add duplicate keyword argument error
...
Fixes #116
2019-09-26 12:27:57 +09:00
Noah
d88167bb73
Bump crate versions
2019-09-25 11:57:38 -05:00
Noah
f73ea1cd00
impl fmt::Display for Tok
2019-09-13 11:08:43 +02:00
HyeonGyu Lee (Vazrupe)
0ab46fd2bd
Add Positional argument error to LexicalError
...
Fixes #1046
2019-09-13 01:46:31 +09:00
Windel Bouwman
19112cef49
Require at least finally or except on a try statement.
2019-08-19 09:00:08 +02:00
Windel Bouwman
3ed71308bf
Repair try-except-else syntax. Fixes #1300 .
2019-08-19 08:37:07 +02:00
Windel Bouwman
d83cfb4cef
Merge pull request #1234 from RustPython/short-circuit-evaluation
...
Improve the situation regarding boolean operations.
2019-08-12 07:30:28 +02:00
Windel Bouwman
36d8147e8e
Improve the situation regarding boolean operations.
2019-08-11 20:20:15 +02:00
Windel Bouwman
dbc562c613
Implement clippy hint.
2019-08-11 09:57:40 +02:00
Windel Bouwman
a400f6631c
Improve lexing of numbers with underscores.
2019-08-11 09:29:21 +02:00
Windel Bouwman
fc8aba1b68
Merge pull request #1215 from RustPython/syntax-fixes
...
Add variable annotation syntax.
2019-08-09 11:22:55 +02:00
Windel Bouwman
2fdfcb96a5
Add parser support for async for loop. Add yield expression inside parentheses.
2019-08-07 20:11:27 +02:00
Windel Bouwman
ded9d5ba5b
Add variable annotation syntax. Simplify grammar for comprehensions. Add capital J suffix for complex numbers.
2019-08-07 15:31:24 +02:00
Windel Bouwman
de89349d8d
Fix import syntax to require at least one imported symbol. Fixes #1211 .
2019-08-07 13:00:34 +02:00