Skip to content

Expose the limit to 'fix' input. #488

Open
@ajuvercr

Description

@ajuvercr

Hi,

I wonder if it is possible to raise the limit that the parser has to correct input in multiple ways.
I'm writing a parser for Turtle for a language server, and for the following document it suggest one edit, but I actually want to discover both.

<a> <b>
<c> <d> <e>.

This document might be corrected to (insert a ';' which the parser found)

<a> <b> <c>;
        <d> <e>.

Or to (insert a and a '.')

<a> <b> <undefined>.
<c> <d> <e>.

My .y file currently supports to transform <a> <b> into <a> <b> <undefined> ., thus I was trying to make the parser return multiple suggestions, even though the others are way less viable.

Is this possible with grmtools?

Parsers / Yacc is not my cup of thee sadly :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions