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
Whenever I add a comment to a shape, the Shex fails to compile. For instance, this shape breaks the whole parsing:
:MyShape {
obo:RO_0000081 IRI ; # Comment
}
with error:
line 1:1552 missing '}' at '<EOF>'
[info] - should validate against the Shex definition *** FAILED ***
[info] Error at 1:1552 missing '}' at '<EOF>' (RDF4JMarshallerSpec.scala:88)
while
:MyShape {
obo:RO_0000081 IRI ;
}
compiles and works perfectly. It seems like the comment is commenting out the rest of the file till the end.
Could it be something related to the warning you can see when generating the code from the ANTLR file?
[error] warning(158): /Users/cebriant/forked_repos/shex-s/modules/shex/src/main/antlr4/ShExDoc.g4:599:62: fragment rule COMMENT contains an action or command which can never be executed
The text was updated successfully, but these errors were encountered:
Whenever I add a comment to a shape, the Shex fails to compile. For instance, this shape breaks the whole parsing:
with error:
while
compiles and works perfectly. It seems like the comment is commenting out the rest of the file till the end.
Could it be something related to the warning you can see when generating the code from the ANTLR file?
The text was updated successfully, but these errors were encountered: