Beispiel #1
0
  {
    NonNumericUnaryExpression.addChoices(
        PostfixExpression,
        BooleanUnaryExpression,
        BitStringUnaryExpression,
        CastExpression,
        IsolationExpression,
        PrimaryExpression);

    UnaryExpression.addChoices(
        IncrementOrDecrementExpression,
        BooleanUnaryExpression,
        BitStringUnaryExpression,
        NumericUnaryExpression,
        CastExpression,
        IsolationExpression,
        PrimaryExpression);

    NonNamePrimaryExpression.addChoices(
        ParenthesizedExpression,
        InvocationExpression,
        PropertyAccessExpression,
        InstanceCreationExpression,
        LinkOperationExpression,
        ClassExtentExpression,
        SequenceOperationExpression,
        SequenceConstructionExpression,
        SequenceAccessExpression,
        SequenceReductionExpression,
        SequenceExpansionExpression,
        LiteralExpression,
        ThisExpression);

    Expression.addChoices(ConditionalExpression, AssignmentExpression);
  }
Beispiel #2
0
  {
    ImportVisibilityIndicator.addChoices(PUBLIC, PRIVATE);

    ActiveClassMemberDefinition.addChoices(
        ClassMemberDefinition, ActiveFeatureDefinition, ActiveFeatureStubDeclaration);

    ClassMemberDefinition.addChoices(
        ClassifierDefinition, ClassifierStubDeclaration, FeatureDefinition, FeatureStubDeclaration);
  }
Beispiel #3
0
  {
    NamespaceDefinition.addChoices(PackageDefinition, ClassifierDefinition);

    ClassifierDefinition.addChoices(
        ClassDefinition,
        ActiveClassDefinition,
        DataTypeDefinition,
        EnumerationDefinition,
        AssociationDefinition,
        SignalDefinition,
        ActivityDefinition);

    ClassifierDeclaration.addChoices(
        ClassDeclaration,
        ActiveClassDeclaration,
        DataTypeDeclaration,
        EnumerationDeclaration,
        AssociationDeclaration,
        SignalDeclaration,
        ActivityDeclaration);
  }
Beispiel #4
0
 {
   Statement.addChoices(
       AnnotatedStatement,
       InLineStatement,
       BlockStatement,
       EmptyStatement,
       LocalNameDeclarationStatement,
       ExpressionStatement,
       IfStatement,
       SwitchStatement,
       WhileStatement,
       DoStatement,
       ForStatement,
       BreakStatement,
       ReturnStatement,
       AcceptStatement,
       ClassifyStatement);
 }
Beispiel #5
0
 {
   ClassificationOrEqualityExpression.addChoices(
       RelationalOrClassificationExpression, EqualityExpression);
 }
Beispiel #6
0
 {
   FeatureDefinition.addChoices(AttributeDefinition, OperationDefinition);
   ActiveFeatureDefinition.addChoices(ReceptionDefinition, SignalReceptionDefinition);
   FeatureStubDeclaration.addChoices(OperationStubDeclaration);
   ActiveFeatureStubDeclaration.addChoices(SignalReceptionStubDeclaration);
 }
Beispiel #7
0
 {
   AcceptStatement.addChoices(SimpleAcceptStatement, CompoundAcceptStatement);
 }
Beispiel #8
0
 {
   InitializationExpression.addChoices(
       Expression, SequenceInitializationExpression, InstanceInitializationExpression);
 }
Beispiel #9
0
 {
   ConditionalExpression.addChoices(
       ConditionalAndOrConditionalOrExpression, ConditionalTestExpression);
 }
Beispiel #10
0
 {
   InclusiveOrOrConditionalAndExpression.addChoices(
       ExclusiveOrOrInclusiveOrExpression, ConditionalAndExpression);
   ConditionalAndOrConditionalOrExpression.addChoices(
       InclusiveOrOrConditionalAndExpression, ConditionalOrExpression);
 }
Beispiel #11
0
  {
    PotentiallyAmbiguousQualifiedName.addChoices(
        ColonQualifiedName, DotQualifiedName, UnqualifiedName);

    QualifiedName.addChoices(ColonQualifiedName, DotQualifiedName, UnqualifiedName);
  }
Beispiel #12
0
 {
   RelationalOrClassificationExpression.addChoices(
       ShiftOrRelationalExpression, ClassificationExpression);
 }
Beispiel #13
0
 {
   ShiftOrRelationalExpression.addChoices(ArithmeticOrShiftExpression, RelationalExpression);
 }
Beispiel #14
0
 {
   ArithmeticOrShiftExpression.addChoices(UnaryOrArithmeticExpression, ShiftExpression);
 }
Beispiel #15
0
 {
   UnaryOrArithmeticExpression.addChoices(
       UnaryExpression, AdditiveExpression, MultiplicativeExpression);
 }
Beispiel #16
0
 {
   SequenceElements.addChoices(SequenceElementList, SequenceRange);
 }
Beispiel #17
0
 {
   InvocationTarget.addChoices(
       BehaviorInvocationTarget, FeatureInvocationTarget, SuperInvocationTarget);
 }
Beispiel #18
0
 {
   EqualityOrAndExpression.addChoices(ClassificationOrEqualityExpression, AndExpression);
   AndOrExclusiveOrExpression.addChoices(EqualityOrAndExpression, ExclusiveOrExpression);
   ExclusiveOrOrInclusiveOrExpression.addChoices(
       AndOrExclusiveOrExpression, InclusiveOrExpression);
 }
Beispiel #19
0
 {
   CommentText.addChoice(seq(zeroOrMore(NotStar), opt(StarCommentText)));
 }