I am parsing a language which uses % for marking comments. As ScriptWhitespace has # hard-coded for this purpose, I had to copy its code in order to change one letter.
Proposal: Extend ScriptWhitespace with a factory method custom for producing a Whitespace instance from a given string.
I am parsing a language which uses
%for marking comments. AsScriptWhitespacehas#hard-coded for this purpose, I had to copy its code in order to change one letter.Proposal: Extend
ScriptWhitespacewith a factory methodcustomfor producing aWhitespaceinstance from a given string.