public static void Rule(BinaryElementExpression700 lhs, BinaryElementExpression700 binaryElementExpression700, BinaryOp700 binaryOp700, BinaryElementExpression500 binaryElementExpression500)
 {
     lhs.CodeTerm =
         new CodeCompoundTerm(
             binaryOp700.CodeFunctor,
             new CodeTerm[] { binaryElementExpression700.CodeTerm, binaryElementExpression500.CodeTerm });
 }
示例#2
0
 public static void Rule(BinaryElementExpression700 lhs, BinaryElementExpression700 binaryElementExpression700, BinaryOp700 binaryOp700, BinaryElementExpression500 binaryElementExpression500)
 {
     lhs.CodeTerm =
         new CodeCompoundTerm(
             binaryOp700.CodeFunctor,
             new[] { binaryElementExpression700.CodeTerm, binaryElementExpression500.CodeTerm });
 }
        public static void Rule(StatementElement lhs, BinaryElementExpression700 binaryTermExpression)
        {
            CodeCompoundTerm codeCompoundTerm =  binaryTermExpression.CodeTerm as CodeCompoundTerm;
            if (codeCompoundTerm == null)
            {
                throw new InvalidOperationException("Non-term expression specified.");
            }

            lhs.CodeCompoundTerm = codeCompoundTerm;
        }
示例#4
0
        public static void Rule(StatementElement lhs, BinaryElementExpression700 binaryTermExpression)
        {
            var codeCompoundTerm = binaryTermExpression.CodeTerm as CodeCompoundTerm;

            if (codeCompoundTerm == null)
            {
                throw new InvalidOperationException("Non-term expression specified.");
            }

            lhs.CodeCompoundTerm = codeCompoundTerm;
        }
示例#5
0
 public static void Rule(BinaryElementExpression700 lhs, BinaryElementExpression500 binaryElementExpression500)
 {
     lhs.CodeTerm = binaryElementExpression500.CodeTerm;
 }
示例#6
0
 public static void Rule(Element lhs, OpenBrace openBrace, BinaryElementExpression700 binaryElementExpression, CloseBrace closeBrace)
 {
     lhs.CodeTerm = new CodeCompoundTerm(new CodeFunctor("eval", 1), new CodeTerm[] { binaryElementExpression.CodeTerm });
 }
示例#7
0
 public static void Rule(Element lhs, OpenParenthesis openParenthesis, BinaryElementExpression700 binaryElementExpression, CloseParenthesis closeParenthesis)
 {
     lhs.CodeTerm = binaryElementExpression.CodeTerm;
 }
 public static void Rule(CompoundTermMember lhs, BinaryElementExpression700 binaryElementExpression)
 {
     lhs.CodeTerm = binaryElementExpression.CodeTerm;
 }
示例#9
0
 public static void Rule(Element lhs, OpenBrace openBrace, BinaryElementExpression700 binaryElementExpression, CloseBrace closeBrace)
 {
     lhs.CodeTerm = new CodeCompoundTerm(new CodeFunctor("eval", 1), new CodeTerm[] { binaryElementExpression.CodeTerm });
 }
示例#10
0
 public static void Rule(Element lhs, OpenParenthesis openParenthesis, BinaryElementExpression700 binaryElementExpression, CloseParenthesis closeParenthesis)
 {
     lhs.CodeTerm = binaryElementExpression.CodeTerm;
 }
示例#11
0
 public static void Rule(CompoundTermMember lhs, BinaryElementExpression700 binaryElementExpression)
 {
     lhs.CodeTerm = binaryElementExpression.CodeTerm;
 }
 public static void Rule(BinaryElementExpression700 lhs, BinaryElementExpression500 binaryElementExpression500)
 {
     lhs.CodeTerm = binaryElementExpression500.CodeTerm;
 }