Compiler & Parser

Compiler 

A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses.

When executing (running), the compiler first parses (or analyses) all of the language statements syntactically one after the other and then, in one or more successive stages or "passes", builds the output code, making sure that statements that refer to other statements are referred to correctly in the final code. 



Parser

In computer technology, a parser is a program, usually part of a compiler, that receives input in the form of sequential source program instructions, interactive online commands, markup tags, or some other defined interface and breaks them up into parts that can then be managed by other programming (for example, other components in a compiler).

A parser takes input in the form of a sequence of tokens or program instructions and usually builds a data structure in the form of a parse tree or an abstract syntax tree.

A parser may also check to see that all input has been provided that is necessary.










Compiler & Parser Compiler & Parser Reviewed by Unknown on 06:50:00 Rating: 5

No comments: