An Expression Parser and Evaluator result in JSON object. Written in Pascal. 表达式的解析和求值是一个应用面非常广的功能。JSON格式因其简明、易于操作,使用面日渐广泛。本项目将表达式分析的结果存放在JS
Features
- Value collection operation. eg: X in ( Null, 1, 2+3, Y-6)
- Mutil sentence divided by ;
- Set value of variable with := eg: X := Y + 1; Y := X * Y
- IF statement. eg: IF(Name is null, 'No Name', 'Name is: '+Name)
- Boolean operators: AND OR XOR
- Math operators: + - * / \ %
- Bit operators: & | ^ ~
- Compare operators: = > < >= <= <>
- String Operators: + Len eg: Len('Hello'+#32+'World!')
- VarHelper can provide custom variable get/set.
- FuncHelper can provide custom function call.
- TraceOnLine will tirgger event at every sentence complete eval.
Categories
LibrariesFollow JSON Expression Parser & Evaluator
You Might Also Like
Rate This Project
Login To Rate This Project
User Reviews
There are no 5 star reviews.