Ejemplo n.º 1
0
        public object Translate(TranslationContext context, ASTNode node)
        {
            // Use LogicalConnective
            var result = new CREFModel.LogicalConnective();

            result.Operator          = GetOperator();
            result.OperatorSpecified = true;

            foreach (var child in node.Children)
            {
                var childResult = context.TranslateNode(child);
                result.Items.Add(childResult);
            }

            return(result);
        }
Ejemplo n.º 2
0
        public object Translate(TranslationContext context, ASTNode node)
        {
            // Use LogicalConnective
            var result = new CREFModel.LogicalConnective();

            result.Operator = GetOperator();
            result.OperatorSpecified = true;

            foreach (var child in node.Children)
            {
                var childResult = context.TranslateNode(child);
                result.Items.Add(childResult);
            }

            return result;
        }