The TypeScript parser uses the scanner to traverse our source code files and transform them into a stream of tokens.
The TypeScript parser then transforms the stream of tokens into a tree-like data structure known as an abstract syntax tree (AST). Each of the elements in this tree-like data structure is known as a node. A node is the basic building block of the AST.