fix: remove wrong namespace

Signed-off-by: stonex <1479765922@qq.com>
1 file changed
tree: 69de51e5f76628bfb2b86d42956b45a1ee2ed0d0
  1. cmake/
  2. cvaluate/
  3. tests/
  4. .gitignore
  5. CMakeLists.txt
  6. Readme.md
Readme.md

Cvaluate

Provides support for evaluating arbitrary C-like artithmetic/string expressions like govaluate.

Development Target

  • Support basic math expression, example "1 + 1 == 2".
  • Support variable in expression, example "a + 1 == 2".
  • Support Accessors, example "a.b == 1".
  • Support Functions in expression, example "foo(a, b)".

Development Plan

  • [x] Parse expression and get tokens.

    • [x] Parse expression.
    • [ ] Check tokens syntax and check balance.
    • [ ] Test parse tokens.
  • [ ] Build expression tree by tokens.

  • [ ] Support basic math expression.

  • [ ] Support variable and accessors.

    • [ ] Support Eval(params), params is a map like name: object in gvaluate .
    • [ ] Basic data type of params is int ,float, string.
    • [ ] Object data of params should reload operator[] and operator for access and compare. Maybe we can accomplish it by define a base object or use template to support accessors.
  • [ ] Add benchmark for Cvaluate.