Igor Dejanović
Igor Dejanović
@mabraham The large one is created by GitHub (probably on-the-fly) from the whole source tree. The small one is what I created when the release has been made. So [the...
Hi. Thanks for the contribution. Can you give an example of why this kind of expression would be useful? What is your use-case?
I see. I think that a similar variant `LongestChoice` would be event more useful and very similar in implementation.
You can convert absolute position to line,col format by `parser.pos_to_linecol` and the use line,col in debug outputs (e.g. https://github.com/textX/Arpeggio/blob/master/arpeggio/__init__.py#L258) The only concern is that it will incur a considerable overhead...
For these kinds of grammars where there is a lot of backtracking (expressions grammars are a good example) you should [turn on memoization](http://textx.github.io/Arpeggio/latest/configuration/#memoization-aka-packrat-parsing) which can yield a massive speed improvements....
TLDR; for exception the easy way to get just the error message without stacktrace is to catch `NoMatch` exception and just print it.
I'm glad it solved your problem. I'll leave the issue open labeled with `question` to be easier to find.
The transfer will take place on 27th December.
Transfer completed. `textX` organization is now a new home for this project. If you have a local clone of this repo you can clone again or update your git remote:...
The docs is now hosted at http://textx.github.io/Arpeggio/ Please update your bookmarks.