Skip to content

Parse Failure Giving No Reason #99

@guitarvydas

Description

@guitarvydas

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

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