Skip to content

Where is the f-string part for the Python grammar #886

Answered by MegaIng
ThatXliner asked this question in Q&A
Discussion options

You must be logged in to vote

It is 'implemented' the same way it is 'implemented' in the official python grammar: A later parser pass separates the corresponding part out of the larger string and then does with it what it needs to do and calls back the original parser. It is not actually implemented in the base grammar file.

That doesn't mean it can't be. The problem is just that then the string couldn't be a single token, which would probably complicated the resulting Tree and slow down parsing.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ThatXliner
Comment options

Answer selected by ThatXliner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants