Skip to content

PEG parsers generator does not support case ignore mode. #1

@cloudwebrtc

Description

@cloudwebrtc

Try to create grammar_parser with dart peg, but I get a problem that is not supported by the "i" syntax. This parameter is used to ignore the case of the matched string.

https://github.com/cloudwebrtc/peg

SIP_Version = "SIP"i "/" DIGIT + "." DIGIT + { data.sip_version = input.substring(pos, offset); } 

Here is a patch for pegjs, and the dart version of peg requires a patch.
pegjs/pegjs@b540b2d

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