From 2633767789e4264b13ef91a684accf734fb4e94f Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Wed, 26 Oct 2011 21:55:51 -0700 Subject: Fixing more broken and split doc comments. (bzr r10697) --- src/util/expression-evaluator.cpp | 40 --------------------------------------- 1 file changed, 40 deletions(-) (limited to 'src/util/expression-evaluator.cpp') diff --git a/src/util/expression-evaluator.cpp b/src/util/expression-evaluator.cpp index 87937be9a..37e9d6cc1 100644 --- a/src/util/expression-evaluator.cpp +++ b/src/util/expression-evaluator.cpp @@ -22,46 +22,6 @@ * . */ -/** Introducing eevl eva, the evaluator. A straightforward recursive - * descent parser, no fuss, no new dependencies. The lexer is hand - * coded, tedious, not extremely fast but works. It evaluates the - * expression as it goes along, and does not create a parse tree or - * anything, and will not optimize anything. It uses doubles for - * precision, with the given use case, that's enough to combat any - * rounding errors (as opposed to optimizing the evalutation). - * - * It relies on external unit resolving through a callback and does - * elementary dimensionality constraint check (e.g. "2 mm + 3 px * 4 - * in" is an error, as L + L^2 is a missmatch). It uses g_strtod() for numeric - * conversions and it's non-destructive in terms of the paramters, and - * it's reentrant. - * - * EBNF: - * - * expression ::= term { ('+' | '-') term }* | - * ; - * - * term ::= signed factor { ( '*' | '/' ) signed factor }* ; - * - * signed factor ::= ( '+' | '-' )? factor ; - * - * unit factor ::= factor unit? ; - * - * factor ::= number | '(' expression ')' ; - * - * number ::= ? what g_strtod() consumes ? ; - * - * unit ::= ? what not g_strtod() consumes and not whitespace ? ; - * - * The code should match the EBNF rather closely (except for the - * non-terminal unit factor, which is inlined into factor) for - * maintainability reasons. - * - * It will allow 1++1 and 1+-1 (resulting in 2 and 0, respectively), - * but I figured one might want that, and I don't think it's going to - * throw anyone off. - */ - #include "config.h" #include "util/expression-evaluator.h" -- cgit v1.2.3