internal VectorExpression( SymbolTable symbols, YacqList elements ) : base(symbols, elements) { }
/// <summary> /// Creates a <see cref="LambdaListExpression"/> that represents the lambda list to be <see cref="AmbiguousLambdaExpression"/>. /// </summary> /// <param name="symbols">The symbol table for the expression.</param> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="LambdaListExpression"/> that has specified elements.</returns> public static LambdaListExpression LambdaList( SymbolTable symbols, YacqList elements ) { return(new LambdaListExpression(symbols, elements)); }
internal LambdaListExpression( SymbolTable symbols, YacqList elements ) : base(symbols, elements) { }
/// <summary> /// Creates a <see cref="LambdaListExpression"/> that represents the lambda list to be <see cref="AmbiguousLambdaExpression"/>. /// </summary> /// <param name="symbols">The symbol table for the expression.</param> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="LambdaListExpression"/> that has specified elements.</returns> public static LambdaListExpression LambdaList( SymbolTable symbols, IEnumerable <Expression> elements ) { return(LambdaList( symbols, YacqList.Create(elements) )); }
/// <summary> /// Creates a <see cref="VectorExpression"/> that represents the vector. /// </summary> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="VectorExpression"/> that has specified elements.</returns> public static VectorExpression Vector(YacqList elements) { return Vector(null, elements); }
/// <summary> /// Creates a <see cref="VectorExpression"/> that represents the vector. /// </summary> /// <param name="symbols">The symbol table for the expression.</param> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="VectorExpression"/> that has specified elements.</returns> public static VectorExpression Vector(SymbolTable symbols, YacqList elements) { return new VectorExpression(symbols, elements); }
/// <summary> /// Creates a <see cref="ListExpression"/> that represents the list. /// </summary> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="ListExpression"/> that has specified elements.</returns> public static ListExpression List(YacqList elements) { return List(null, elements); }
/// <summary> /// Creates a <see cref="ListExpression"/> that represents the list. /// </summary> /// <param name="symbols">The symbol table for the expression.</param> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="ListExpression"/> that has specified elements.</returns> public static ListExpression List(SymbolTable symbols, YacqList elements) { return new ListExpression(symbols, elements); }
/// <summary> /// Creates a <see cref="VectorExpression"/> that represents the vector. /// </summary> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="VectorExpression"/> that has specified elements.</returns> public static VectorExpression Vector(YacqList elements) { return(Vector(null, elements)); }
/// <summary> /// Creates a <see cref="VectorExpression"/> that represents the vector. /// </summary> /// <param name="symbols">The symbol table for the expression.</param> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="VectorExpression"/> that has specified elements.</returns> public static VectorExpression Vector(SymbolTable symbols, IEnumerable <Expression> elements) { return(Vector(symbols, YacqList.Create(elements))); }
/// <summary> /// Creates a <see cref="VectorExpression"/> that represents the vector. /// </summary> /// <param name="symbols">The symbol table for the expression.</param> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="VectorExpression"/> that has specified elements.</returns> public static VectorExpression Vector(SymbolTable symbols, YacqList elements) { return(new VectorExpression(symbols, elements)); }
/// <summary> /// Creates a <see cref="ListExpression"/> that represents the list. /// </summary> /// <param name="elements">A sequence of <see cref="Expression"/> objects that represents the elements of the expression.</param> /// <returns>A <see cref="ListExpression"/> that has specified elements.</returns> public static ListExpression List(YacqList elements) { return(List(null, elements)); }
/// <summary> /// Constructs a new instance of <see cref="YacqSequenceExpression"/>. /// </summary> /// <param name="symbols">The symbol table linked with this expression.</param> /// <param name="elements">A <see cref="YacqList"/> object that represents the elements of the expression.</param> protected YacqSequenceExpression(SymbolTable symbols, YacqList elements) : base(symbols) { this.Elements = elements ?? YacqList.Empty; this.SetPosition(this.Elements); }