Lexical Analyzer for MIPS Assemble Language
Open your Terminal and run these commands.
Write the LEX code in this file
$ vi mips.l
Run mips.l through LEX to generate lex.yy.c
$ lex mips.l
Compile lex.yy.c to generate a.out
$ cc lex.yy.c
Input the input.asm file to a.out to generate the tokens
$ a.out < input.asm