Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pbonte/roxi
Browse files Browse the repository at this point in the history
  • Loading branch information
pbonte committed Oct 14, 2022
2 parents c50b4c9 + 623d8bf commit 9241bef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib_old/src/parsing/n3.pest
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ NewLine = { "\r" | "\n" }
Var = {"?"~ASCII_ALPHA+~ASCII_ALPHANUMERIC*}
Prefix = {"@prefix"~SPACE+~PrefixIdentifier~":"~SPACE+~"<"~Iri~">"~WS* ~"."~WS*}
PrefixIdentifier = {ASCII_ALPHANUMERIC*}
Prefixed = {PrefixIdentifier ~":"~ASCII_ALPHANUMERIC+}
LocalNameChar = {ASCII_ALPHANUMERIC | "_"}
Prefixed = {PrefixIdentifier ~":"~LocalNameChar+}
Term = {"<"~Iri~">" | Prefixed}
varOrTerm = { Term | Var}
Subject = { Term | Var}
Expand All @@ -85,4 +86,4 @@ TP = { WS*~Subject ~WS+~ Property ~WS+~ Object ~WS* ~"."? ~WS* }
Body = {"{"~TP+~"}"}
Head = {"{"~WS*~TP~WS*~"}"}
rule = { Body~WS*~"=>"~WS*~Head~WS*~"."? ~WS*}
document = {Prefix* ~ NewLine* ~rule+}
document = {Prefix* ~ NewLine* ~rule+}

0 comments on commit 9241bef

Please sign in to comment.