You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use this library to try to create a Go parser of Turtle. One of the productions of Turtle is a line that literally begins with @prefix (here).
When I try to create a parser that specifies that the "@prefix" token starts the line, it just doesn't work in Participle. I've condensed this issue into a small, runnable snippet here: https://go.dev/play/p/kOQ2_bAA2Re
The one that makes use of the @ symbol does not seem to work, but when the grammar does not use the @ symbol, it works fine.
I apologize if I have missed something obvious in the documentation, but I did scan around for a few hours to try to get past this issue to no avail. Please let me know if any other info helps, and obviously: thank you so much for this library and your time.
The text was updated successfully, but these errors were encountered:
That does seem to get some things to work. But then it allows for things like @ word "bar", or @\n\n word "foo"; which, applying back to my use-case of trying to implement a Turtle parser, is invalid.
Repository owner
locked and limited conversation to collaborators
Jul 21, 2024
I am trying to use this library to try to create a Go parser of Turtle. One of the productions of Turtle is a line that literally begins with
@prefix
(here).When I try to create a parser that specifies that the
"@prefix"
token starts the line, it just doesn't work in Participle. I've condensed this issue into a small, runnable snippet here: https://go.dev/play/p/kOQ2_bAA2ReThis snippet builds 2 parsers:
The one that makes use of the
@
symbol does not seem to work, but when the grammar does not use the@
symbol, it works fine.I apologize if I have missed something obvious in the documentation, but I did scan around for a few hours to try to get past this issue to no avail. Please let me know if any other info helps, and obviously: thank you so much for this library and your time.
The text was updated successfully, but these errors were encountered: