Difference between syntax tree and Parse tree

No.Parse TreeSyntax Tree
1Interior  nodes are  non-terminals, leaves are terminals.Interior nodes are “operators”, leaves are operands.
2Rarely constructed as a data structure.When representing a program in a tree structure usually use a syntax tree.
3Represents the concrete syntax of a program.Represents the abstract syntax of a program (the semantics).

Leave a Reply