Project

de

0.0
No commit activity in last 3 years
No release in over 3 years
De (Dynamic Expression) module provides means to build and evaluate dynamic expression of arbitrary complecity and operands/operators nature
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2.3.10
~> 0.8.1
 Project Readme
De (Dynamic Expression) module provides means to build and evaluate
dynamic expression of arbitrary complecity and operands/operators nature.

Expression is considered as tree consisted of operands and operators.
Operater must have child nodes. Operand is terminal node.

Tree example:
   (a + b) * c + d

   - +
   --- *
   ----- +
   ------- a
   ------- b
   ----- c
   --- d

   Here "+" and "*" are operators,
   "a", "b", "c" and "d" are operands

Expression tree structure is built with the help of <rubytree> gem
(https://rubygems.org/gems/rubytree)

In addition to basic classes of Expression, Operand and Operator
module provides some extensions for different nature expressions:
  - Boolean expressions
  - Sunspot Solr search expressions