Expression parser library for Android.
- by Malx
What is the best way to evaluate simple conditional statements like:
"a>b" ?
"x-4<10+y & y>x" ?
Expressions are loaded from external file. Variables are set in application.
Syntax used is not essential. It may be "&" or "and" or any other supported with language/library.
I need to take different action depending on result of evaluation - is it true or false.
Could I use any parser already included with Andorid?
Is there some way to use JS "eval" from browser component?
Is it possible to use sqlite expressions to get true/false result without selecting anything?
Those libraries are implemented in native code. Will it be faster and less battery expensive?