- Design Patterns and Best Practices in Java
- Kamalmeet Singh Adrian Ianculescu LUCIAN PAUL TORJE
- 100字
- 2021-06-25 20:52:37
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 4, Structural Patterns, for now, we can think of composite representation as grouping objects of a similar nature together.
推薦閱讀
- ThinkPHP 5實戰(zhàn)
- 移動UI設(shè)計(微課版)
- CentOS 7 Server Deployment Cookbook
- 碼上行動:零基礎(chǔ)學會Python編程(ChatGPT版)
- Java面向?qū)ο蟪绦蜷_發(fā)及實戰(zhàn)
- The DevOps 2.4 Toolkit
- Flux Architecture
- SharePoint Development with the SharePoint Framework
- Android底層接口與驅(qū)動開發(fā)技術(shù)詳解
- Instant Nancy Web Development
- Mastering React
- Arduino可穿戴設(shè)備開發(fā)
- OpenCV with Python Blueprints
- Python預測之美:數(shù)據(jù)分析與算法實戰(zhàn)(雙色)
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)