Syntax Analysis is a second phase of the compiler design process. We'll learn the basic concepts used in the construction of a parser. The syntax analysis phase gets its input from the lexical analyzer which is a string of tokens. It verifies whether the provided string of tokens is grammatically correct or not. Later the syntax analyzer forwards this parse tree to the next front end for processing. We also refer to the syntax analyzer as the parser.