/// <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; }
/// <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) { }
/// <summary> /// Creates a parse node with the specified parse ID. /// </summary> /// <param name="id">A parse ID</param> protected ParseNode(ParseID id) { ID = id; }