官术网_书友最值得收藏!

The interpreter pattern

Computers are supposed to interpret sentences or evaluate expressions. If we have to write a sequence of code that is supposed to deal with such a requirement, first of all, we need to know the structure; we need to have an internal representation of the expression or the sentence. In many situations, the most appropriate structure to use is a composite one based on the composite pattern. We will further discuss the composite pattern in Chapter 4Structural Patterns, for now, we can think of composite representation as grouping objects of a similar nature together.

主站蜘蛛池模板: 休宁县| 双桥区| 浠水县| 合水县| 渭南市| 皮山县| 麻栗坡县| 和静县| 浦北县| 周口市| 溧水县| 宁海县| 延吉市| 永年县| 昌乐县| 当阳市| 清镇市| 大庆市| 高州市| 九台市| 钟祥市| 华坪县| 满洲里市| 佛冈县| 本溪| 奉节县| 渭源县| 镇安县| 化隆| 澎湖县| 巧家县| 成都市| 汝南县| 东宁县| 和龙市| 桃园市| 沽源县| 页游| 黄大仙区| 台南县| 越西县|