Answer to Question #52026 in Java | JSP | JSF for iva

Question #52026
Using Interpreter pattern how to read a text file and represent it as abstract syntax tree which we can execute in java.
1
Expert's answer
2015-06-05T04:26:57-0400
Answer. The Interpreter pattern is a design pattern thatdetermines how sentence should be evaluated in a language. The main idea of
this pattern is to have a class for each symbol
(terminal or nonterminal) in computer language. The syntax
tree of a sentence is used to evaluate (interpret) the sentence for a
client. Some example of such pattern you may find in Wikipedia https://en.wikipedia.org/wiki/Interpreter_pattern.The code depends of your computer language.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS