![]() This phase is also called lexing or scanning,and the software doing lexical analysis is called a lexical analyzer or scanner. The token syntax is typically a regular language,so a finite state automaton constructed from a regular expression can be used to recognize it. Each token is a single atomic unit of the language,for instance a keyword,identifier or symbol name. Lexical analysis (lexing,scanning) breaks the source code text into small pieces called tokens.In some advanced translator will even change the logic (not meaning) or will simplify the logic without losing the essence.Ĭompilation is the translation of source code into object code by a compiler.Īn analysis divides program into components and creates the intermediate representation. Or,the translator will translate X language and produce X’ language. formatting output according to assembler and/or linker conventions.Ī Translator is a computer program that translates one programming language instruction(s) into another programming language instruction(s) without the loss of original meaning.generating correct and efficient object code,.determining the correctness of the syntax of programs,.CompilationĪ compiler is a computer program (or set of programs) that transforms source code written in a programming language into another computer language. In this part you will learn what the compiler and the interpreter are.
0 Comments
Leave a Reply. |