Where is the f-string part for the Python grammar #886
-
Hello! I'm trying to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.