• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Any good example on Interpreter

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Does anyone has any link to any good article or example on Interpreter pattern?
I'd greatly apprecitate any link on this.
I'm reading the explanation on "Java Design Pattern" and don't understand a single thing.
My problem with understanding it is also due to the problem that he has incorporated Chain and Command into the Interpreter which complicate it to an extend I can't understand.
Hope to have some simpiler explanation on it.
Thanks.

Han Ming
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Years ago I wrote an article giving a better example of the use of Interpreter -- but it was for Smalltalk. Now, it's not hard to understand the idea, but the code may be a bit odd looking if you've never seen Smalltalk.
Nonetheless, here's the reference:
http://members.aol.com/ann1001001/interpreter.pdf
Kyle
[ April 18, 2002: Message edited by: Kyle Brown ]
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kyle,
Thanks for your advice.
I'll take a look at the document.
Maybe if I manage to figure something out of it, I'll post a java example here.
Thanks and cheers.

Han Ming
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I love Bruce ECKEL's book, in which he begins to use design patters :
  • Thinking in Java
  • Thinking in C++
  • Thinking in Python
  • Thinking in Pattern (with Bill VENNER @ www.artima.com)

  • Though they don't seem directly related to your question ... spending some time reading these will definitively help you !

  • Master site for all the books
  • Pattern Depot's site
  • Patterns homepage
  • Wiki in wiki's own style
  • Finaly, Google's own response


  • [ April 20, 2002: Message edited by: Thomas SMETS ]
     
    reply
      Bookmark Topic Watch Topic
    • New Topic