The Intepreter Pattern

subject Type Homework Help
subject Pages 2
subject Words 580
subject School N/A
subject Course N/A

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Colin Moran
CSC285
The Interpreter Design Pattern
The interpreter design pattern is a behavioral design pattern. It is one of the twenty-three well
known Gang of Four patterns, but it is one of the lesser used patterns. The interpreter pattern is
exactly what it sounds like, it specifies how to evaluate sentences in a language. It essentially
takes one representation of data and turns it into another representation of data. Google translator
is a good example of what this pattern accomplishes, it takes a phrase that means something in
one language and turns it into a phrase that means the same thing in a different language. For my
project, I decided to take on the problem of converting measurements. The interpreter pattern is
page-pf2

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.