コード例 #1
0
ファイル: VectorExpression.cs プロジェクト: takeshik/yacq
 internal VectorExpression(
     SymbolTable symbols,
     YacqList elements
 )
     : base(symbols, elements)
 {
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 internal VectorExpression(
     SymbolTable symbols,
     YacqList elements
     )
     : base(symbols, elements)
 {
 }
コード例 #4
0
 internal LambdaListExpression(
     SymbolTable symbols,
     YacqList elements
     )
     : base(symbols, elements)
 {
 }
コード例 #5
0
ファイル: LambdaListExpression.cs プロジェクト: takeshik/yacq
 internal LambdaListExpression(
     SymbolTable symbols,
     YacqList elements
 )
     : base(symbols, elements)
 {
 }
コード例 #6
0
 /// <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)
                ));
 }
コード例 #7
0
ファイル: VectorExpression.cs プロジェクト: takeshik/yacq
 /// <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);
 }
コード例 #8
0
ファイル: VectorExpression.cs プロジェクト: takeshik/yacq
 /// <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);
 }
コード例 #9
0
ファイル: ListExpression.cs プロジェクト: takeshik/yacq
 /// <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);
 }
コード例 #10
0
ファイル: ListExpression.cs プロジェクト: takeshik/yacq
 /// <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);
 }
コード例 #11
0
 /// <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));
 }
コード例 #12
0
 /// <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)));
 }
コード例 #13
0
 /// <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));
 }
コード例 #14
0
 /// <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));
 }
コード例 #15
0
 /// <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);
 }
コード例 #16
0
 /// <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);
 }