-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
I suspect that this is an out-of-memory condition, but there is no indication of what failed. If I delete all of the comments from test.txt, the parse succeeds. As is (with comments) the parse fails, but gives not indication of why.
from https://github.com/guitarvydas/play/tree/dev/ohmnoparse,
- load grammar.ohm into the editor
- load test.txt as an example
on my machine, the example - after a few seconds - gets a red bar indicating failure ; scrolling through the example shows no error indications ; clicking on 'main' in the parse tree window (right side) seems to do nothing
this is an intermediate point in my development, I expect to change the code, but I have tried to capture the (intermediate) failure
[background: I am trying to strip out "type information" from a program (written in Odin) on the way to converting the statically-typed program into something dynamically typed (e.g. Python, Common Lisp). I expect to strip information out in stages, this stage only deals with 'proc' definitions and leaves everything else alone. I've mostly succeeded in doing this stripping in an earlier version. Now, I'm cleaning up the grammar to catch a bunch of hoary edge cases. I am trying my best to avoid writing a full-blown grammar for Odin and hope to do this in a REGEX-y kind of way - YAGNI, parse only what I really need to recognize and 'skip' ('skim') over the rest.]