DESIGN ASSEMBLER BASED ON LEX AND YACC
DOI:
https://doi.org/10.24996/Keywords:
Assembly language, , Assembler, , Context Free Grammar,, LEX, YACCAbstract
LEX and YACC are very useful tools for constructing the assemblers; they generate
functions that perform standard operations of a lexical analysis and parsing without
any effecting on the organization processes for semantic analysis, machine code
generation and listing source of compilation. In this work, the cross assembler was
designed using some compiler development tools like LEX and YACC having the
ability to implement the lexical analyzer and parser, for generating the syntax and
parsing modules in a short period of time. These activates are expressed in form of
actions, the bigger number of lexical and grammar rules are used by these actions in
a simpler way.