WELCOME TO SHOTTING.CC
When writing a modern day compiler I considered creating a hacked parser, first. The parser is where compiler run-time grammars get created on the fly if you are skilled...
...which I am not! So I developed my own flavour of grammar (non-recursive) for the parser to use during VB.NET analysis of code!
My first taste of pain was after matching by hand a small subsection of vars, string literals, integrals and floating point numbers and doubles...listworthy also includes function analysis to a par and parser database design, testing and insertions.
Over on a nutshell we were/are wanting to develop a system mechanism that entails combining all possible combinations of information from the five databases of source extractions into grammar tables and node lists.
Over it all now is the parser generating a main table of extracting InfoBase's. So stay tuned in 2017.