UNIX/Linux has had off the shelf tools for doing this for nearly 40 years. Two of them are called lexx and yacc.
Kind of reinventing thevwheel for those unfamilar with history.
Kind of reinventing thevwheel for those unfamilar with history.
... except all the others.