期刊名称:International Journal of Computer Science and Information Technologies
电子版ISSN:0975-9646
出版年度:2017
卷号:8
期号:3
页码:342-346
出版社:TechScience Publications
摘要:DFA (Deterministic Finite Automata) is designed forthe set of customized tokens that we have taken. A grammar incompiler is a set rule that specify how sentences can bestructured with the terminals, non-terminals, the set ofproductions and the start symbol. CFG (Context FreeGrammar) is used in compiler for parsing. This paper presentsthe steps to convert a high level language written according toour customization into assembly language. It also presents whatis a compiler, its phases and functions. Basically, the compilerpasses through the six phases but here only the implementationthrough three phases are shown, i.e Lexical Analyzer, SyntaxAnalyzer and Target Code Generation. The Target Codegenerated here is in Assembly Language.
关键词:Compiler; phases of compiler; DFA; CFG;Assembly Code Generation