I'd like to use the parser to parse some strings. In chemistry it is often common to name things with e.g. plus and minus signs in the names (e.g. "H+", "OH-", "Na+" etc.). However it is also common to denote concentrations using square brackets: "[H+]", "[OH-]" etc. So I'd like to add such a rule. I suppose the simplest way is for me to just copy parser.cpp and modify it as a local copy in my project?
Thinking about this some more I think I will just add pre- and post-processing of strings with eg. regex's to turn names e.g. [H+] into __conc__H_plus (and reserve the use of underscore prefix to the implementation)