sergiojunior/formula_dsl — pull request #1 by sergiojunior (2012-03-21 20:17:51+00:00)
Title: Simple grammar

#FormulaParser

##First version of formula grammar.
In this version we support the operations bellow:

Single Expression's
should recognize expression '2 + 1'
should recognize expression '2 - 1
should recognize expression '2 * 1
should recognize expression '2 / 2
Composed expression's
should recognize a function like 'Month(data)'
should recognize the expression 'Month(data) - 1'
should recognize the expression 'Month(data) * 1'
should recognize the expression 'Month(data) / 1'
should recognize expression with 2 functions 'Month(data) + Year(data)'
Expressions with string concatenation
should recognize expression with string concat "A" + "B"'
should recognize expression with string concat '"A" + "B" + "C" '
should recognize expression with string concat 'Month(data) + "/"'
should recognize expression with string concat 'Month(data) + "/" + Year(data)'