Skip to content

Infinite loop in lalr and cyk #1585

Description

@acornlaw-skwilinski

This is the shortest I managed to get the grammar. No idea what's causing the infinite loop, but notably it only happens when I set the priority start.1. Without that it throws a GrammarError.

Lark(
    'start.1: "a" | start start*',
    parser='lalr'
).parse('aa')

I get the same issue in cyk but not earley.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions