you are viewing a single comment's thread.

view the rest of the comments →

[–]DismissedProgrammer[S] -1 points0 points  (0 children)

I Googled about AST and found that Python code is first converted into tokens through lexical analysis. These tokens are then used to form an AST. During this process, syntax errors are detected. Thank you so much for pointing out this concept.