Try lemon parser.
Start writing grammar rule with lemon.
Finish grammar. Need to write lex rule.
Restructure file.
Lexer seems to be OK.