Pascal Compiler uses top-down parsing to compile the Pascal code, and works with the lexer that breaks down the code into tokens. There are 6 token types that lexer recognizes: word, integer, real, real with an e., special characters and column-equal. After lexer gives the token to parcer, the parcer uses the Pascal grammar to parce the code.