3) Parsing → AST 🌳
Tokens aren't enough.
They must form a valid sentence.
The parser:
• Applies Python grammar rules
• Builds an Abstract Syntax Tree (AST)
This is where most SyntaxErrors happen.
x = 5 ❌(valid tokens, invalid grammar )
I am sorry,
English isn't my native language, I am from Germany.
I had English at school only for a couple of years.
If there are grammatical or syntaxerrors, I apologize for this.
Had an epic day at @SupanovaExpo#Brisbane#SyntaxErrors & myself got to meet
@TomTaylorMade
with @IMJIMKRUEGER in the background (lovely person). I got a couple *cough cough* (small mountain) of comics signed by Tom - can't wait to set them up for display on my shelves !!!
I never thought I would be this humbled by a comma, is it just me that thinks that nodejs doesn't provide enough information about SyntaxErrors like React would do?
-SyntaxErrors are like typos or grammatical mistakes that prevent the code from running at all.
-Runtime Errors are like unexpected problems that arise during the program's execution.
-SyntaxErrors are generally fatal because the code can't be executed with structural errors.