Commit graph

73 commits

Author SHA1 Message Date
Rosen Penev
897759e4dc [clang-tidy] Replace push_back with emplace_back
Found with modernize-use-emplace

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
a468537c1b [clang-tidy] Use new range based loops
Found with modernize-loop-convert

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
a331cceded [clang-tidy] Use .empty instead of comparing size
Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Tomas Babej
a09f9d48ab Update copyright to 2020 2020-11-21 12:27:05 -05:00
Tomas Babej
8066e4e6e2 meta: Update copyright year 2019-01-01 08:46:21 -05:00
Simon Ruderich
e817dfc800 Always use https:// link for opensource.org
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Paul Beckingham
51ae097388 Eval: Eliminated string def 2018-02-03 14:06:53 +01:00
Mark Scannell
7af6db4c17 Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
cff755aba1 l10n: Eliminated STRING_EVAL_* 2018-01-15 13:28:43 -05:00
Paul Beckingham
0de169bb10 Copyright 2018 2017-12-31 19:22:07 -05:00
Paul Beckingham
0a137a852e Cleanup: Formatting 2017-03-19 09:59:20 -04:00
Paul Beckingham
a50e65a134 Copyright update 2017-01-01 12:30:04 -05:00
Paul Beckingham
355620c640 libhsared: migrating from local to libshared 2016-12-06 07:20:45 -05:00
Paul Beckingham
2720ea5a30 TW-1806: project:ide is not allowed
- Thanks to Slaven ʙanovic.
2016-05-20 11:13:46 -05:00
Paul Beckingham
197b440cc2 Eval: C++11 2016-02-03 20:30:57 -05:00
Paul Beckingham
54fac39f85 Eval: Removed obsolete method 2016-01-09 22:36:13 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
5c8b7148b4 Task: Moved include to top of list, per flint++ recommendation 2015-11-01 19:59:10 -05:00
Paul Beckingham
b7bbd96b62 Eval: Removed unused ::compileExpression override 2015-10-28 20:54:03 -04:00
Paul Beckingham
249a4b0f64 Eval: Removed useless comment 2015-09-07 12:36:23 -04:00
Paul Beckingham
6276241ef0 Eval: Removed ::ambiguity 2015-07-01 17:54:36 -04:00
Paul Beckingham
b090c6bccf Lexer: Removed unnecessary ::ambiguity method 2015-07-01 16:18:28 -04:00
Paul Beckingham
9db73962da Eval: Added method for providing a precompiled expression 2015-06-22 00:20:03 -04:00
Paul Beckingham
e74c6963a9 C++11: Cleaned up program framework with range-based for 2015-05-11 17:50:53 -04:00
Paul Beckingham
935b2993f3 C++11: Took advantage of N1757. 2015-04-06 15:30:39 -04:00
Wilhelm Schuermann
7a64c19641 Resolve most compiler warnings 2015-03-29 22:05:38 +02:00
Paul Beckingham
237d932ff9 Lexer
- Improved ::isIdentifier, ::isUUID and ::isDOM.
2015-03-01 23:54:45 -05:00
Paul Beckingham
745aad0d27 Lexer
- Renamed Lexer2 to Lexer, it looks good enough to assume control.
2015-02-22 18:23:03 -05:00
Paul Beckingham
0cf18f3b16 Lexer2
- Integrated Lexer2 in place of Lexer. Tests fail.
2015-02-22 13:52:14 -05:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
8de2a1030e Eval
- Reduced the verbosity of Eval under rc.debug.parser=3, improving readability.
- Updated unit tests regarding modified debug output.
2014-12-28 12:48:16 -05:00
Paul Beckingham
c0424cedeb Eval
- The _neg_ operator was a copy/paste of the ! operator, and needed to be
  numeric, not boolean.
2014-12-28 09:18:59 -05:00
Paul Beckingham
3279566244 CLI
- Modify ::disqualifyOnlyParenOps to count sugared operators.
- Labelled '(' and ')' as circumflex operators, thanks awwaiid.
2014-11-09 16:52:43 -05:00
Paul Beckingham
125b5464dc Eval
- Do not mark the '(' and ')' operators as binary. I don't know what they are,
  but they are not binary.
2014-11-09 16:12:47 -05:00
Paul Beckingham
d7378d830f Eval
- Implemented ::getBinaryOperators.
2014-11-09 15:18:04 -05:00
Paul Beckingham
959df159fa Eval
- Code cleanup.
2014-10-23 22:42:21 -04:00
Paul Beckingham
8905dd1c32 Eval
- The operator classifier failed to include '!=='.
2014-10-13 21:39:51 -04:00
Paul Beckingham
9e0ea1cb4a Eval
- Better error message for malformed expressions, ie when a binary operator
  expects two values, and sees less then two or when a unary operator sees
  less than one.
2014-09-27 17:08:26 -04:00
Paul Beckingham
071cf55c00 Unit Tests
- Added a default 'hooks=off' to the basetest class, after it was discovered
  that the scan for runnable hooks takes non-trivial time.
2014-09-27 16:49:06 -04:00
Paul Beckingham
a77e50b441 Eval
- Converted from std::cout to Context::debug.  This is in preparation for
  supporting multiple debug levels.
2014-08-31 10:20:18 -04:00
Paul Beckingham
70156d3c3d L10N
- Localized Eval.
2014-07-04 17:40:11 -04:00
Paul Beckingham
d54afc844c Eval
- Improved formatting for diagnostics.
2014-06-28 12:40:27 -04:00
Paul Beckingham
0c4c665653 Eval
- Diagnostics now represent correct stack size.
2014-06-28 12:35:43 -04:00
Paul Beckingham
80c8daff08 Eval
- Removed Eval diagnostics that dispalyed the wrong type.
2014-06-28 12:33:22 -04:00
Paul Beckingham
f72aa7b02c Eval
- Updated Eval runtime diagnostics, so that all stack I/O is shown during
  evaluation.
2014-06-24 22:15:59 -04:00
Paul Beckingham
b7d668fb7d Eval
- Raises an exception if an expression evaluation yields an unexpected
  stack size at the end. This indicates that an expression like 'one two'
  was evaluated. Note that string field updates require evaluation, but
  this case occurs frequently.
2014-06-15 09:32:17 -04:00
Paul Beckingham
9318dced5a Eval
- Eval maps '!==' to Variant::operator!=, '!=' to Variant::operator_nopartial,
  '==' to Variant::operator== and '=' to Variant::operator_partial.
2014-06-14 15:59:31 -04:00
Paul Beckingham
05d4ac16a3 Eval
- Now prints the evaluated form, instead of the input form in debug mode, after
  successful source lookup.
2014-06-09 18:01:45 -04:00
Paul Beckingham
512fe2f6c7 Variant
- ::operator_match and ::operator_nomatch now take a 'const Task&' argument to
  use for description/annotation matching.
- Updated unit tests.
2014-06-03 01:27:02 -04:00
Paul Beckingham
ca6940ba2e Variant
::operator_hastag now uses contextTask for resolution.
2014-06-03 01:10:58 -04:00