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

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.

主站蜘蛛池模板: 霞浦县| 广丰县| 历史| 从江县| 南川市| 遵义县| 叙永县| 阜南县| 司法| 桑日县| 武邑县| 洱源县| 永昌县| 米林县| 东阿县| 丹阳市| 西盟| 尼玛县| 岑溪市| 公主岭市| 循化| 富裕县| 瓮安县| 武陟县| 梨树县| 连山| 那坡县| 浙江省| 沛县| 正蓝旗| 星子县| 丰台区| 古交市| 龙井市| 平远县| 汶川县| 南召县| 淄博市| 荣成市| 陆川县| 鲁山县|