前言 在上一篇中我们学习了行为型模式的责任链模式(Chain of Responsibility Pattern)和命令模式(Command Pattern)。本篇则来学习下行为型模式的两个模式, 解释器模式(Inter…
分类:解释器模式
设计模式之解释器模式
属于行为型模式。 解释器模式的定义 Given a language, define a representation for its grammar along with an interpreter that use…
前言 在上一篇中我们学习了行为型模式的责任链模式(Chain of Responsibility Pattern)和命令模式(Command Pattern)。本篇则来学习下行为型模式的两个模式, 解释器模式(Inter…
属于行为型模式。 解释器模式的定义 Given a language, define a representation for its grammar along with an interpreter that use…