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

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.

主站蜘蛛池模板: 克什克腾旗| 大城县| 区。| 乌恰县| 平度市| 广南县| 酒泉市| 黄骅市| 广州市| 轮台县| 新晃| 新晃| 陆良县| 秦皇岛市| 丽江市| 怀仁县| 无锡市| 沈丘县| 阳山县| 克东县| 镇江市| 库车县| 册亨县| 韶山市| 永吉县| 丰宁| 宾川县| 吉林省| 南郑县| 宁安市| 唐海县| 尼木县| 翁牛特旗| 工布江达县| 绥德县| 溧阳市| 嘉鱼县| 恭城| 寿光市| 孝义市| 肥东县|