Commit graph

14 commits

Author SHA1 Message Date
Paul Beckingham
cdf9f3c04e Eval
- Protection against array overrun.
- Typo in diagnostic output.
2014-05-23 15:49:15 -04:00
Paul Beckingham
42f3419bd3 Eval
- Added range checking to the while loop for the parser, to prevent
  runnig over, which caused some of the problems with segfaults on
  Debian & Ubuntu.
2014-05-22 22:52:23 -04:00
Paul Beckingham
d9e1607f05 Eval
- Attempts named source resolution as part of primitive parsing.
2014-05-19 22:06:58 -04:00
Paul Beckingham
592b3bdcb9 Eval
- Connected operator '=' to Variant::operator_partial.
2014-05-19 20:13:35 -04:00
Paul Beckingham
468e02c73b Eval
- Marked the partial match operator as needing special consideration for
  proejct and UUID.
2014-05-12 00:17:36 -04:00
Paul Beckingham
a97ce45cdf Eval
- Debug mode can now be disabled.
2014-05-11 10:15:10 -04:00
Paul Beckingham
fcb039f801 Eval
- Labeled the (now differentiated) = and == operators.
2014-05-02 23:09:00 -04:00
Paul Beckingham
e3a1789b3f Eval
- Added support for compiled expressions that are compiled once and
  evaluated multiple times in different contexts.
2014-04-27 10:07:11 -07:00
Paul Beckingham
bf30fb3085 Eval
- Added Eval::getOperators to expose suported operator symbols.
2014-04-16 00:38:43 -04:00
Paul Beckingham
05c90b1779 Bug
- Fixed bug in named entity lookup.
- Removed obsolete failing test.
2014-04-12 12:28:48 -04:00
Paul Beckingham
25b8082fbd Diagnostics
- Added diagnostic token dump to 'calc' in debug mode, after token substitution
  so the new tokens can be seen.
- Added unit tests to look for parser syntax errors.
- Added test for '2--3'.
2014-04-06 23:57:15 -04:00
Paul Beckingham
70ba19fd5e Bug TW-1254
- TW-1254 Calc command can segfault on negative numbers (thanks to Renato
          Alves).
- Implemented a recursive descent parser to syntax check the expression,
  and disambiguate unary minus. The syntax checking is not generating any
  diagnostics yet.
2014-04-06 00:29:14 -04:00
Paul Beckingham
f05b01f9fa Eval
- Enabled unary minus operator.
2014-03-14 23:46:14 -04:00
Paul Beckingham
0fd9c495bc Eval
- Merged libexpr Eval support.
2014-01-02 01:25:18 -05:00