執行運算式評估工具Implement an expression evaluator

重要

在 Visual Studio 2015 中,這種執行運算式評估工具的方法已被取代。In Visual Studio 2015, this way of implementing expression evaluators is deprecated. 如需有關執行 CLR 運算式評估工具的詳細資訊,請參閱 clr 運算式評估 工具和 Managed 運算式評估工具範例For information about implementing CLR expression evaluators, see CLR expression evaluators and Managed expression evaluator sample.

評估運算式是偵錯工具引擎 (DE) 、符號提供者 (SP) 、系結器物件,以及運算式評估工具 (EE) 之間的複雜相互作用。Evaluating an expression is a complex interplay among the debug engine (DE), the symbol provider (SP), the binder object, and the expression evaluator (EE). 這四個元件是由一個元件所執行並由另一個元件所使用的介面所連接。These four components are connected by interfaces that are implemented by one component and consumed by another.

EE 會採用字串形式的 DE 運算式,並加以剖析或評估。The EE takes an expression from the DE in the form of a string and parses or evaluates it. 此 EE 會執行下列介面,這些介面會由 DE 所耗用:The EE runs the following interfaces, which are consumed by the DE:

本節內容In this section

運算式評估工具執行策略 定義運算式評估工具 (EE) 實行策略的三步驟處理。Expression evaluator implementation strategy Defines a three-step process for the expression evaluator (EE) implementation strategy.

另請參閱See also