Hello π
While experimenting and debugging grammar, I often rely on Parser.prototype.reportErrorCommon(...) to "dump" the state of the parser.
> parser.reportErrorCommon("", "")
'
Unexpected . Instead, I was expecting to see one of the following:
A character matching /[^:]/ based on:
plaintext$ebnf$1 β β /[^:]/
plaintext β β plaintext$ebnf$1
line β β plaintext
A ":" based on:
colons$string$1 β β ":" ":"
colons β β colons$string$1 colons$ebnf$1
markup_line β β colons markup_def
line β β markup_line
'
A PR adding Parser.prototype.reportCurrentStatus() would leverage a minor refactoring in reportErrorCommon.
Would that be acceptable?