in reply to Writing a parser

You have a lot of work ahead of you. The very first thing you should do (after considering what you want the parser to produce, as moritz asked) is to develop the Backus-Naur Form you wish to parse.

If you don't know what BNF is, you should ask yourself why you wish to develop a parser.