極速理解設計模式系列:24.解釋器模式(Interpreter Pattern)

五個角色:場景(Context)、抽象表達式(Component)、終結符表達式(TerminalExpression)、非終結符表達式(NonterminalExpression)、客戶端(Client)          場景(Context):解釋器的全局信息         抽象表達式(Component):定義一個接口來解釋操作         終結符表達式(TerminalExpres
相關文章
相關標籤/搜索