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

See also

edit

References

edit
  1. ^ Reinhard Wilhelm; Helmut Seidl; Sebastian Hack (13 May 2013). Compiler Design: Syntactic and Semantic Analysis. Springer Science & Business Media. ISBN 978-3-642-17540-4.


📚 Artikel Terkait di Wikipedia

Semantic analysis

Look up semantic analysis in Wiktionary, the free dictionary. Semantic analysis may refer to: Semantic analysis (linguistics) Semantic analysis (computational)

Compiler

expressions without a change of language; and compiler-compilers, compilers that produce compilers (or parts of them), often in a generic and reusable way

Parsing

facilitate the writing of compilers and interpreters. The term may also be used to describe a split or separation. In data analysis, the term is often used

Roslyn (compiler)

self-hosting versions of the C# and VB.NET compilers – compilers written in the languages themselves. The compilers are available via the traditional command-line

Semantic Scholar

Semantic Scholar is a research tool for scientific literature. It is developed at the Allen Institute for AI and was publicly released in November 2015

Lexical analysis

first phase of a compiler frontend in processing. Analysis generally occurs in one pass. Lexers and parsers are most often used for compilers, but can be used

Compiler-compiler

metalanguage, compiling itself is equivalent to self-hosting compiler. Most common compilers written today are self-hosting compilers. Self-hosting is

Multi-pass compiler

Multi-pass compilers are sometimes called wide compilers, referring to the greater scope of the passes: they can "see" the entire program being compiled, instead