What is Syntax analysis (parsing)?

The compiler phase that checks whether the token sequence follows the language grammar and builds the program's structure as a tree. Grammar errors are detected here.

Field: Compilers

Syntax analysis (parsing) in the explanations

Questions that mention Syntax analysis (parsing) (4)

  1. What is done during syntax analysis (parsing) in a compiler?
  2. Which kind of grammar is used to describe most programming languages and underlies parsing?
  3. What is the role of lexical analysis in a compiler?
  4. Which describes an abstract syntax tree (AST)?

Related terms

Lexical analysis JIT compilation Abstract syntax tree Basic block Common subexpression elimination Constant folding Control-flow graph Function inlining Instruction scheduling Intermediate representation

Back to the glossary