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
Post a Comment