Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLR backend reaches unreachable code #184

Open
abiggerhammer opened this issue Jun 27, 2017 · 3 comments
Open

GLR backend reaches unreachable code #184

abiggerhammer opened this issue Jun 27, 2017 · 3 comments

Comments

@abiggerhammer
Copy link
Member

abiggerhammer commented Jun 27, 2017

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.)

@pesco
Copy link

pesco commented Jun 28, 2017 via email

@abiggerhammer
Copy link
Member Author

I haven't checked yet (this landed while I was prepping a talk) but I can look this afternoon.

@abiggerhammer
Copy link
Member Author

In preliminary investigation I'm not able to reproduce this without the Python bindings. I'll also try some of the other bindings that use SWIG, to see if I can narrow down the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants