I am trying to parse whois lookups in a java based whois server and looking to use a preexisting solution.
Please note: I am not looking to parse whois data or query any server.
I have looked into commons-cli and JavaCC the later is promising but the idea of generated code is not attractive. My ideal solution would be a parser able to load the grammar at runtime through a file.
Example inputs I would like to parse:
domain example.com
host id 3223
summary registrar id 2332
Thanks!
After some more digging I got where I wanted to go. I found parboiled a scala/java parser generator using PEG.
Big thank you to Pangea and aldridmc, I will try to be more specific in the future.