Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyshexc/ShExC.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def shapeDecl(self, shapeDecl: ShExJ.ShapeDecl) -> list[str]:
rval .append(self.shapeExprLabel(shapeDecl.id))
if shapeDecl.restricts:
for lbl in shapeDecl.restricts:
rval += ['RESTRICTS ' + self.shapeExprLabel(lbl)]
rval += ["RESTRICTS @" + self.shapeExprLabel(lbl)]
rval += self.shapeExpr(shapeDecl.shapeExpr)
return rval

Expand Down Expand Up @@ -155,7 +155,7 @@ def shape(self, shape: ShExJ.Shape) -> list[str]:
rval = [self.shapeExprLabel(shape.id)]
if shape.extends is not None:
for lbl in shape.extends:
rval += ['EXTENDS ' + self.shapeExprLabel(lbl)]
rval += ["EXTENDS @" + self.shapeExprLabel(lbl)]
if shape.extra is not None:
rval += ['EXTRA'] + [self.iriref(e) for e in shape.extra]
if shape.closed:
Expand Down
2 changes: 1 addition & 1 deletion pyshexc/parser/ShExDoc.interp

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions pyshexc/parser/ShExDocLexer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Generated from ShExDoc.g4 by ANTLR 4.9
# Generated from ShExDoc.g4 by ANTLR 4.9.3
from antlr4 import *
from io import StringIO
from typing import TextIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO



Expand Down Expand Up @@ -572,7 +575,7 @@ class ShExDocLexer(Lexer):

def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.9")
self.checkVersion("4.9.3")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
Expand Down
Loading
Loading