Example #1
0
        public static void Rule(Query lhs, ColonDash colonDash, StatementElement statementElement, AdditionalStatementElements additionalStatementElements)
        {
            var codeCompoundTerms = new List<CodeCompoundTerm> {statementElement.CodeCompoundTerm};
            codeCompoundTerms.AddRange(additionalStatementElements.CodeCompoundTerms);

            lhs.CodeSentence = new CodeSentence(null, null, codeCompoundTerms);
        }
Example #2
0
        public static void Rule(Query lhs, ColonDash colonDash, StatementElement statementElement, AdditionalStatementElements additionalStatementElements)
        {
            List <CodeCompoundTerm> codeCompoundTerms = new List <CodeCompoundTerm>();

            codeCompoundTerms.Add(statementElement.CodeCompoundTerm);
            codeCompoundTerms.AddRange(additionalStatementElements.CodeCompoundTerms);

            lhs.CodeSentence = new CodeSentence(null, null, codeCompoundTerms);
        }
        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;
        }
Example #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;
        }
Example #5
0
 public static void Rule(AdditionalStatementElements lhs, Comma comma, StatementElement statementElement, AdditionalStatementElements additionalStatementElements)
 {
     lhs.CodeCompoundTerms.Add(statementElement.CodeCompoundTerm);
     lhs.CodeCompoundTerms.AddRange(additionalStatementElements.CodeCompoundTerms);
 }
Example #6
0
 public static void Rule(OptionalRuleBody lhs, ColonDash colonDash, StatementElement statementElement, AdditionalStatementElements additionalStatementElements)
 {
     lhs.CodeCompoundTerms = new List <CodeCompoundTerm>();
     lhs.CodeCompoundTerms.Add(statementElement.CodeCompoundTerm);
     lhs.CodeCompoundTerms.AddRange(additionalStatementElements.CodeCompoundTerms);
 }
 public static void Rule(AdditionalStatementElements lhs, Comma comma, StatementElement statementElement, AdditionalStatementElements additionalStatementElements)
 {
     lhs.CodeCompoundTerms.Add(statementElement.CodeCompoundTerm);
     lhs.CodeCompoundTerms.AddRange(additionalStatementElements.CodeCompoundTerms);
 }
Example #8
0
 public static void Rule(StatementElement lhs, Cut cut)
 {
     lhs.CodeCompoundTerm = new CodeCompoundTerm(CodeFunctor.CutFunctor);
 }
 public static void Rule(StatementElement lhs, Cut cut)
 {
     lhs.CodeCompoundTerm = new CodeCompoundTerm(CodeFunctor.CutFunctor);
 }
 public static void Rule(OptionalRuleBody lhs, ColonDash colonDash, StatementElement statementElement, AdditionalStatementElements additionalStatementElements)
 {
     lhs.CodeCompoundTerms = new List<CodeCompoundTerm>();
     lhs.CodeCompoundTerms.Add(statementElement.CodeCompoundTerm);
     lhs.CodeCompoundTerms.AddRange(additionalStatementElements.CodeCompoundTerms);
 }