java - Write a simple interpreter, or find one I can use? -


i need simple interpreter written in java. language going simple.

i need string operators, "contains , equals". need logically and, or. along parenthesis.

"some string" contains "ring" , ("some string" equals "input" or "some other string" contains "other")

this needs evaluate true or false.

are there open source intrepetors evaluate language similar this? better off writing own?

may overkill, use javacc generate parser language, traverse generated syntax tree input in order evaluate expression.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -