Example #1
0
 private static Expression Sequence(INode node)
 {
     if (node.Count > 1)
     {
         var expressions = node.Children.Select(Expression);
         return(SequenceExpression.From(node, expressions));
     }
     return(Expression(node[0]));
 }
Example #2
0
        private Expression Sequence(INode node)
        {
            Debug.Assert(node.Name == "sequence");

            if (node.Count > 1)
            {
                var prefixes = node.Children.Select(Prefix);

                return(SequenceExpression.From(node, prefixes));
            }

            return(Prefix(node[0]));
        }