afs commented on code in PR #1637:
URL: https://github.com/apache/jena/pull/1637#discussion_r1032766866
##########
jena-shex/src/main/java/org/apache/jena/shex/parser/ParserShExC.java:
##########
@@ -632,6 +641,48 @@ protected void numericFacetLength(String facetKind, int
length, int line, int co
addNodeConstraint(numLength);
}
+ protected SemAct crackSemanticAction(String iriAndCode, int line, int
column) {
+ // e.g. % <http://shex.io/extensions/Test/> { print(s) %}
+ // or % ex:Test { print(s) %}
+ // or %<http://shex.io/extensions/Test/>%
+
+ // Trim leading '%' and ws and trim trailing '%}'
+ String whitespaces = " \t\n\r\f";
+ int startOfIri = 1; // get past '%'
+ for (; whitespaces.indexOf(iriAndCode.charAt(startOfIri)) != -1;
++startOfIri)
Review Comment:
The code is for everyone to read ... including the future-eric who has rid
himself of the 1980's.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]