Encyclopedia > Semantic analysis

  Article Content

Semantic analysis

In computer science, semantic analysis is a pass that identifies the meaning of a programming language and determines how to execute it.

It follows parsing[?] and precedes code generation. This process faithfully reflects the structure of a programming language.

The job of the semantic analyzer is to understand the meaning of programming language and make decisions about how to execute it, that is, to indentify the role of an expression and make the order of evaluation. In other words, semantic analysis is what defines the individual character of a programming language. Semantic analyzers usually maintain symbolic tables in order to know what a symbol refers to when it is encountered.

The semantic analyzer usualy employs a set of tiny routines called semantic action routines[?].

Task in this pass include:

See also: compiler, parsing[?], code generation, attribute grammar[?], semantic action routine[?]



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Islip Terrace, New York

... 100 females there are 96.9 males. For every 100 females age 18 and over, there are 93.6 males. The median income for a household in the town is $66,644, and the median ...

 
 
 
This page was created in 1201 ms