Design Pattern: Interpreter Pattern
Interpreter pattern is used when we need to represent some language expression or syntax in an Object-Oriented way. Like representing some logical operation or SQL syntax.Based on the implementation this design pattern can evaluate a specific language syntax, and provide the desired response.