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

Parse Failure Giving No Reason #99

Open
guitarvydas opened this issue Jul 2, 2023 · 0 comments
Open

Parse Failure Giving No Reason #99

guitarvydas opened this issue Jul 2, 2023 · 0 comments

Comments

@guitarvydas
Copy link

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

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

1 participant