OptimiserSuite: Define NonStepAbbreviations and use it for extra sanity checks

This commit is contained in:
Kamil Śliwak
2020-04-24 17:30:56 +02:00
parent 5a515240ac
commit e2c0e6331c
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -47,6 +47,10 @@ class OptimiserSuite
public:
static constexpr size_t MaxRounds = 12;
/// Special characters that do not represent optimiser steps but are allowed in abbreviation sequences.
/// Some of them (like whitespace) are ignored, others (like brackets) are a part of the syntax.
static constexpr char NonStepAbbreviations[] = " \n[]";
enum class Debug
{
None,