Beispiel #1
0
 /// <summary>
 /// Instantiates this template.
 /// </summary>
 /// <param name="Arguments"></param>
 /// <returns></returns>
 public abstract LNode Instantiate(ReaderState State, IEnumerable<LNode> Arguments);
Beispiel #2
0
 /// <summary>
 /// Instantiates this template.
 /// </summary>
 /// <param name="Arguments"></param>
 /// <returns></returns>
 public abstract LNode Instantiate(ReaderState State, IEnumerable <LNode> Arguments);
Beispiel #3
0
 public override LNode Instantiate(ReaderState State, IEnumerable<LNode> Arguments)
 {
     return State.NodeFactory.Call(State.SymbolTable[TargetSymbolIndex], Arguments);
 }
Beispiel #4
0
 public override LNode Instantiate(ReaderState State, IEnumerable<LNode> Arguments)
 {
     return State.NodeFactory.Call(Arguments.First(), Arguments.Skip(1));
 }
 public override LNode Instantiate(ReaderState State, IEnumerable <LNode> Arguments)
 {
     return(Arguments.First().WithAttrs(Arguments.Skip(1).ToArray()));
 }
Beispiel #6
0
 /// <summary>
 /// Reads a reference to a symbol.
 /// </summary>
 /// <param name="State"></param>
 /// <returns></returns>
 public Symbol ReadSymbolReference(ReaderState State)
 {
     return(State.SymbolPool.GetGlobalOrCreateHere(ReadStringReference(State)));
 }
Beispiel #7
0
 public override LNode Instantiate(ReaderState State, IEnumerable <LNode> Arguments)
 {
     return(State.NodeFactory.Call(Arguments.First(), Arguments.Skip(1)));
 }
 public override LNode Instantiate(ReaderState State, IEnumerable<LNode> Arguments)
 {
     return Arguments.First().WithAttrs(Arguments.Skip(1).ToArray());
 }