Skip to content

OutOfMemoryException #5

@TymurGubayev

Description

@TymurGubayev

Not sure what I'm doing wrong, but replacing your example grammar with one from https://www.npmjs.com/package/pegjs-otf results in OutOfMemory when executing parser.parse("hello world")

var grammar = `
sample = _ 

_ "blank"
    = (co / ws)*

co "comment"
    = "//" (![\\r\\n] .)*
    / "/*" (!"*/" .)* "*/"

ws "whitespaces"
    = [ \\t\\r\\n]+
`

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