Beispiel #1
0
 def reduce_CreateAnnotation(self, *kids):
     r"""%reduce ABSTRACT ANNOTATION ShortNodeName OptExtendingSimple"""
     self.val = qlast.CreateAnnotation(
         is_abstract=True,
         name=kids[2].val,
         bases=kids[3].val,
         inheritable=False,
     )
Beispiel #2
0
 def reduce_CreateInheritableAnnotation(self, *kids):
     r"""%reduce ABSTRACT INHERITABLE ANNOTATION
                 NodeName OptExtendingSimple"""
     self.val = qlast.CreateAnnotation(
         abstract=True,
         name=kids[3].val,
         bases=kids[4].val,
         inheritable=True,
     )
Beispiel #3
0
 def reduce_CreateInheritableAnnotation(self, *kids):
     r"""%reduce CREATE ABSTRACT INHERITABLE ANNOTATION
                 NodeName OptExtendingSimple OptCreateCommandsBlock"""
     self.val = qlast.CreateAnnotation(
         name=kids[4].val,
         bases=kids[5].val,
         commands=kids[6].val,
         inheritable=True,
     )
Beispiel #4
0
 def reduce_CreateInheritableAnnotation(self, *kids):
     r"""%reduce ABSTRACT INHERITABLE ANNOTATION
                 ShortNodeName OptExtendingSimple CreateSDLCommandsBlock"""
     self.val = qlast.CreateAnnotation(
         is_abstract=True,
         name=kids[3].val,
         bases=kids[4].val,
         inheritable=True,
         commands=kids[4].val,
     )
Beispiel #5
0
 def reduce_CreateAnnotation(self, *kids):
     r"""%reduce ABSTRACT ANNOTATION NodeName OptExtendingSimple \
                 CreateSDLCommandsBlock"""
     self.val = qlast.CreateAnnotation(
         abstract=True,
         name=kids[2].val,
         bases=kids[3].val,
         inheritable=False,
         commands=kids[4].val,
     )