Jump to content

Semantic analysis (compilers)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 82.81.81.214 (talk) at 19:15, 4 February 2016 ("Impossible to detect when parsing" is ill defined). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Semantic analysis, also context sensitive analysis, is a process in compiler construction, usually after parsing, to gather necessary semantic information from the source code. It usually includes type checking, or makes sure a variable is declared before use which is impossible to describe in Extended Backus–Naur Form and thus not easily detected during parsing.

Implementation

See also