Mark Engelberg
Mark Engelberg
The ABNF specification uses the `/` symbol for alternation, i.e., unordered choice (this is documented on the [https://github.com/Engelberg/instaparse/blob/master/docs/ABNF.md](ABNF page). The notion of ordered choice really comes from PEG grammars, and...
I'm glad you were able to apply the workaround. I've decided that in the next major release of instaparse, I'm going to make left-to-right processing the default, but provide some...
This is a good idea. Right now, if you create a parser where a non-terminal on the right-hand side isn't on the left, this is flagged as an error (at...
The standard for ABNF is defined here: http://tools.ietf.org/html/rfc5234 and I don't find any reference to this #rule construct. I think it may be a construct invented for the purpose of...
So the most common cause for this sort of error message (an error at the very end of the parser description) is that a quote is either added or missing...
I am unable to replicate the printing behavior you saw with your vertical parser printing as `a = "|" | "¦'` Perhaps this is a problem with LightTable?
Were you able to spot any unmatched quotation marks in your parser definition which would explain the error you were getting?
The general rule of thumb is that if you are expressing your grammar in a Clojure string (as opposed to storing it in a separate file) you have to double...
When I started this project, I specifically wanted to make it easy to create a lexer-less parser. To achieve that goal, it was essential to allow regexes for the terminals....
In the meantime, there's a workaround you could potentially employ. You could map tokens like INDENT and DEDENT to unused characters and then rebuild it as a string, then run...