Example #1
0
 /// <summary>
 /// Creates a symbol parse node with the specified parse ID.
 /// </summary>
 /// <param name="id">A parse ID</param>
 /// <param name="sym">A symbol entry</param>
 public SymbolParseNode(ParseID id, Symbol sym)
     : base(id)
 {
     Symbol = sym;
     Type = sym.Type;
 }
Example #2
0
 /// <summary>
 /// Creates a binary parse node of the specified type.
 /// </summary>
 /// <param name="id">The ID of the operator</param>
 public BinaryOpParseNode(ParseID id)
     : base(id)
 {
 }
Example #3
0
 /// <summary>
 /// Creates a parse node with the specified parse ID.
 /// </summary>
 /// <param name="id">A parse ID</param>
 protected ParseNode(ParseID id)
 {
     ID = id;
 }