Пример #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);
  }
Пример #2
0
  {
    ImportVisibilityIndicator.addChoices(PUBLIC, PRIVATE);

    ActiveClassMemberDefinition.addChoices(
        ClassMemberDefinition, ActiveFeatureDefinition, ActiveFeatureStubDeclaration);

    ClassMemberDefinition.addChoices(
        ClassifierDefinition, ClassifierStubDeclaration, FeatureDefinition, FeatureStubDeclaration);
  }
Пример #3
0
  {
    NamespaceDefinition.addChoices(PackageDefinition, ClassifierDefinition);

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

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

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