Skip to content

Will a PR for adding Parser.prototype.reportCurrentStatus() be acceptable?Β #651

@Henddher

Description

@Henddher

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions