As we can see in the output, the programs run fine on our web browser.
Let us understand each of these steps in more detail.
Step 1: Parser
Step 2: AST
We can easily understand what is AST with help of following example.
Note: It is not the exact abstract syntax tree, but it is the pictorial representation of the Abstract Syntax Tree.
Step 3: Conversion to Machine code
Step 4: Machine code