Search in sources :

Example 1 with Parser

use of com.taobao.weex.el.parse.Parser in project incubator-weex by apache.

the class ParserTest method testOperator.

public void testOperator() {
    Parser parser = new Parser("(1 + 3)/3*3");
    Token block = parser.parse();
    System.out.println(block.execute(null));
    System.out.println(block);
    Parser parser2 = new Parser("1 + +++");
    block = parser2.parse();
    System.out.println(block);
    String[] values = { null, null };
    for (Object value : values) {
        System.out.println(value + "ddd");
    }
}
Also used : Token(com.taobao.weex.el.parse.Token) JSONObject(com.alibaba.fastjson.JSONObject) Parser(com.taobao.weex.el.parse.Parser)

Aggregations

JSONObject (com.alibaba.fastjson.JSONObject)1 Parser (com.taobao.weex.el.parse.Parser)1 Token (com.taobao.weex.el.parse.Token)1