Jeong Yunwon
dd2bf4c96b
fix clippy
2022-07-21 06:45:28 +09:00
Jeong Yunwon
6357a1acbe
clean up imports and useless allow attributes
2022-04-15 23:58:20 +09:00
Padraic Fanning
f2257a93b0
Allow proper recursion in f-string format specs
2022-02-04 14:59:28 -05:00
Padraic Fanning
a1dffe671e
Allow replacement fields in format specs
2022-02-04 14:59:28 -05:00
Padraic Fanning
04886d825d
Allow brackets in f-string format spec
2022-02-04 14:59:27 -05:00
Noa
0cd2b0787a
Keep u-prefixed strings through to the AST
2021-10-17 21:55:34 -05:00
Jeong YunWon
b2115c9009
Fix unnessessary while let
2021-07-30 02:32:16 +09:00
Noah
b8aabb7bb7
Implement asdl in the ast and parser
2021-01-14 12:37:37 -06:00
pca006132
af3e7dee69
Implements AST Customization ( #2388 )
2021-01-04 10:33:22 +08:00
Batuhan Taskaya
a382284d30
PEP 498 compatability: parenthesized expressions for f-strings
2020-11-29 17:57:49 +03:00
Noah
b3851c8eb8
Split the ast from the parser, remove compiler dep on parser
2020-11-07 15:43:23 -06:00
Noah
1385c06e25
Fix some minor things required for unittest
2020-08-12 16:03:20 -05:00
TheAnyKey
a535e3c754
merged
2020-05-05 07:49:54 -04:00
TheAnyKey
71ec5c1b86
clean up after review
2020-05-05 05:01:16 -04:00
TheAnyKey
cba961ecfa
Apply suggestions from code review
...
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com >
2020-05-04 23:09:31 +02:00
TheAnyKey
80a9710aa8
fixed clippy; tests fail explicitly for python 3.7 and below
2020-04-30 14:25:49 -04:00
TheAnyKey
3e8cde7b9c
Removed incompatibilty with CPython, fixed parser error handling
2020-04-30 12:48:41 -04:00
TheAnyKey
3ccb117b9a
fixed fmt
2020-04-29 17:52:47 -04:00
TheAnyKey
e7ec972ab7
now conversion flags can be followed by a format specifier and added tests
2020-04-29 16:55:21 -04:00
TheAnyKey
c25353c083
minor cleanup
2020-04-29 15:41:04 -04:00
TheAnyKey
34478d3db7
implemented selfdocumenting fstrings and tests from cpython- current handling of quotes is too simple
2020-04-29 15:37:47 -04:00
TheAnyKey
94a7b48560
added initial implementation of self defining expressions to fstring (Python3.8)
2020-04-28 18:41:17 -04: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
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
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
Windel Bouwman
d6c19c1c6a
Add location to expressions. Change symboltable to use flags for symbols.
2019-07-20 20:44:38 +02:00
Windel Bouwman
97f982530a
parser error handling improvements.
2019-07-06 20:18:18 +02:00
Windel Bouwman
1247a35be9
Improve handling of lexical errors.
2019-05-01 21:05:21 +02:00
coolreader18
c99e843769
Fix a clippy lint I missed
2019-03-01 20:13:50 -06:00
Joey Hain
f050acba73
f-strings: allow ':' and '!' to be used in the expression
2019-02-24 21:13:08 -08:00
Joey Hain
ddc154a1dd
f-strings: support conversion flags
2019-02-24 14:37:59 -08:00
Joey Hain
d6e317b185
Move f-string parser into own module and clean up a bit
2019-02-24 13:01:25 -08:00