Skip to content

GLR backend reaches unreachable code #184

@abiggerhammer

Description

@abiggerhammer

Gary Berger reports that the following example, using the Python bindings, either segfaults or fails an assert with "unknown HCFChoice type":

import hammer as h

digit = h.ch_range('0', '9')
upper = h.ch_range('A', 'Z')
lower = h.ch_range('a', 'z')
chars = h.choice(digit, upper, lower)

chars.compile(h._PB_GLR)

Reproduces on OS X Sierra. The LL(k) and LALR backends have not exhibited this behavior yet. (I tried with Gary's example.)

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