Interpreter

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
The interpreter pattern is specific implimentation of the [[Composite|composite pattern]] generally used for language parsing. In the interpreter pattern a class is produced for each symbol in the language. A statement can then be broken down into a syntax tree of these classes which can in turn be used to interpret the statement.
 +
 +
 +
== See also ==
 +
* [[Composite]]
 +
 
[[Category:Design Patterns]]
 
[[Category:Design Patterns]]
 
[[Category:Behavioural Patterns]]
 
[[Category:Behavioural Patterns]]
  
 
{{design patterns}}
 
{{design patterns}}

Revision as of 04:42, 23 July 2009

The interpreter pattern is specific implimentation of the composite pattern generally used for language parsing. In the interpreter pattern a class is produced for each symbol in the language. A statement can then be broken down into a syntax tree of these classes which can in turn be used to interpret the statement.


See also


Personal tools