Browse Source

[4313] Added a comment about Token subtype order

Francis Dupont 9 years ago
parent
commit
7e9d1821b3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/lib/eval/token.h

+ 8 - 0
src/lib/eval/token.h

@@ -99,6 +99,14 @@ public:
     }
 };
 
+/// The order where Token subtypes are declared should be:
+///  - literal terminals
+///  - option & co
+///  - pkt & co
+///  - ==
+///  - substring & co
+///  - not, and, or
+
 /// @brief Token representing a constant string
 ///
 /// This token holds value of a constant string, e.g. it represents