Parcourir la source

[4313] Added a comment about Token subtype order

Francis Dupont il y a 9 ans
Parent
commit
7e9d1821b3
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  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