Syntax analysis

   

Syntax analysis is a process on compilers that recognizes the structure of programming languages. It is also known as parsing.

Context-free grammar is usually used for describing the structure of languages and BNF notation is typical to define that grammar. Grammatical tokens include numerical constants and literal strings and control structures such as assignments, conditions and loops.

Programs or code that do parsing are called called parsers. Yacc (yet another compiler compiler) is a program that generates parsers in the C programming language.

See also: lexical analysis


Retrieved from "http://www.mywiseowl.com/articles/Syntax_analysis"

This page has been accessed 180 times. This page was last modified 16:22, 25 Aug 2004. All text is available under the terms of the GNU Free Documentation License (see Copyrights for details).