Lexical Analysis is all about breaking a piece of source code like
into parts (tokens).
so in that example we have "total" as a variable, "=" as an assignment, "10" and "5" as literal integers and "+" as an arithmetic operator.
Syntactic Analysis turns the tokens generated in the lexical analysis stage and creates a
tree which describes the code in a way the compiler can understand.