Expression parser library for Android.

Posted by Malx on Stack Overflow See other posts from Stack Overflow or by Malx
Published on 2010-04-15T11:03:22Z Indexed on 2010/04/15 11:13 UTC
Read the original article Hit count: 177

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about android

Related posts about parser