-#define BOL 2 /* 0x02 Match "" at beginning of line. */
-#define MBOL 3 /* 0x03 Same, assuming multiline. */
-#define SBOL 4 /* 0x04 Same, assuming singleline. */
-#define EOS 5 /* 0x05 Match "" at end of string. */
-#define EOL 6 /* 0x06 Match "" at end of line. */
-#define MEOL 7 /* 0x07 Same, assuming multiline. */
-#define SEOL 8 /* 0x08 Same, assuming singleline. */
-#define BOUND 9 /* 0x09 Match "" at any word boundary */
-#define BOUNDL 10 /* 0x0a Match "" at any locale word boundary */
-#define NBOUND 11 /* 0x0b Match "" at any word non-boundary */
-#define NBOUNDL 12 /* 0x0c Match "" at any locale word non-boundary */
-#define GPOS 13 /* 0x0d Matches where last m//g left off. */
-#define REG_ANY 14 /* 0x0e Match any one character (except newline). */
-#define SANY 15 /* 0x0f Match any one character. */
-#define CANY 16 /* 0x10 Match any one byte. */
-#define ANYOF 17 /* 0x11 Match character in (or not in) this class, single char match only */
-#define ANYOFV 18 /* 0x12 Match character in (or not in) this class, can match-multiple chars */
-#define ALNUM 19 /* 0x13 Match any alphanumeric character using native charset semantics for non-utf8 */
-#define ALNUML 20 /* 0x14 Match any alphanumeric char in locale */
-#define ALNUMU 21 /* 0x15 Match any alphanumeric char using Unicode semantics */
-#define NALNUM 22 /* 0x16 Match any non-alphanumeric character using native charset semantics for non-utf8 */
-#define NALNUML 23 /* 0x17 Match any non-alphanumeric char in locale */
-#define NALNUMU 24 /* 0x18 Match any non-alphanumeric char using Unicode semantics */
-#define SPACE 25 /* 0x19 Match any whitespace character using native charset semantics for non-utf8 */
-#define SPACEL 26 /* 0x1a Match any whitespace char in locale */
-#define SPACEU 27 /* 0x1b Match any whitespace char using Unicode semantics */
-#define NSPACE 28 /* 0x1c Match any non-whitespace character using native charset semantics for non-utf8 */
-#define NSPACEL 29 /* 0x1d Match any non-whitespace char in locale */
-#define NSPACEU 30 /* 0x1e Match any non-whitespace char using Unicode semantics */
-#define DIGIT 31 /* 0x1f Match any numeric character using native charset semantics for non-utf8 */
-#define DIGITL 32 /* 0x20 Match any numeric character in locale */
-#define DIGITU 33 /* 0x21 Match any numeric character using Unicode semantics */
-#define NDIGIT 34 /* 0x22 Match any non-numeric character using native charset semantics for non-utf8 */
-#define NDIGITL 35 /* 0x23 Match any non-numeric character in locale */
-#define NDIGITU 36 /* 0x24 Match any non-numeric character using Unicode semantics */
-#define CLUMP 37 /* 0x25 Match any extended grapheme cluster sequence */
-#define BRANCH 38 /* 0x26 Match this alternative, or the next... */
-#define BACK 39 /* 0x27 Match "", "next" ptr points backward. */
-#define EXACT 40 /* 0x28 Match this string (preceded by length). */
-#define EXACTF 41 /* 0x29 Match this string, folded, native charset semantics for non-utf8 (prec. by length). */
-#define EXACTFL 42 /* 0x2a Match this string, folded in locale (w/len). */
-#define EXACTFU 43 /* 0x2b Match this string, folded, Unicode semantics for non-utf8 (prec. by length). */
-#define NOTHING 44 /* 0x2c Match empty string. */
-#define TAIL 45 /* 0x2d Match empty string. Can jump here from outside. */
-#define STAR 46 /* 0x2e Match this (simple) thing 0 or more times. */
-#define PLUS 47 /* 0x2f Match this (simple) thing 1 or more times. */
-#define CURLY 48 /* 0x30 Match this simple thing {n,m} times. */
-#define CURLYN 49 /* 0x31 Capture next-after-this simple thing */
-#define CURLYM 50 /* 0x32 Capture this medium-complex thing {n,m} times. */
-#define CURLYX 51 /* 0x33 Match this complex thing {n,m} times. */
-#define WHILEM 52 /* 0x34 Do curly processing and see if rest matches. */
-#define OPEN 53 /* 0x35 Mark this point in input as start of */
-#define CLOSE 54 /* 0x36 Analogous to OPEN. */
-#define REF 55 /* 0x37 Match some already matched string */
-#define REFF 56 /* 0x38 Match already matched string, folded using native charset semantics for non-utf8 */
-#define REFFL 57 /* 0x39 Match already matched string, folded in loc. */
-#define REFFU 58 /* 0x3a Match already matched string, folded using unicode semantics for non-utf8 */
-#define NREF 59 /* 0x3b Match some already matched string */
-#define NREFF 60 /* 0x3c Match already matched string, folded using native charset semantics for non-utf8 */
-#define NREFFL 61 /* 0x3d Match already matched string, folded in loc. */
-#define NREFFU 62 /* 0x3e Match already matched string, folded using unicode semantics for non-utf8 */
+#define SBOL 2 /* 0x02 Match "" at beginning of line: /^/, /\A/ */
+#define BOL 2 /* 0x02 type alias */
+#define MBOL 3 /* 0x03 Same, assuming multiline: /^/m */
+#define SEOL 4 /* 0x04 Match "" at end of line: /$/ */
+#define EOL 4 /* 0x04 type alias */
+#define MEOL 5 /* 0x05 Same, assuming multiline: /$/m */
+#define EOS 6 /* 0x06 Match "" at end of string: /\z/ */
+#define GPOS 7 /* 0x07 Matches where last m//g left off. */
+#define BOUND 8 /* 0x08 Like BOUNDA for non-utf8, otherwise match "" between any Unicode \w\W or \W\w */
+#define BOUNDL 9 /* 0x09 Like BOUND/BOUNDU, but \w and \W are defined by current locale */
+#define BOUNDU 10 /* 0x0a Match "" at any boundary of a given type using Unicode rules */
+#define BOUNDA 11 /* 0x0b Match "" at any boundary between \w\W or \W\w, where \w is [_a-zA-Z0-9] */
+#define NBOUND 12 /* 0x0c Like NBOUNDA for non-utf8, otherwise match "" between any Unicode \w\w or \W\W */
+#define NBOUNDL 13 /* 0x0d Like NBOUND/NBOUNDU, but \w and \W are defined by current locale */
+#define NBOUNDU 14 /* 0x0e Match "" at any non-boundary of a given type using using Unicode rules */
+#define NBOUNDA 15 /* 0x0f Match "" betweeen any \w\w or \W\W, where \w is [_a-zA-Z0-9] */
+#define REG_ANY 16 /* 0x10 Match any one character (except newline). */
+#define SANY 17 /* 0x11 Match any one character. */
+#define ANYOF 18 /* 0x12 Match character in (or not in) this class, single char match only */
+#define ANYOFD 19 /* 0x13 Like ANYOF, but /d is in effect */
+#define ANYOFL 20 /* 0x14 Like ANYOF, but /l is in effect */
+#define POSIXD 21 /* 0x15 Some [[:class:]] under /d; the FLAGS field gives which one */
+#define POSIXL 22 /* 0x16 Some [[:class:]] under /l; the FLAGS field gives which one */
+#define POSIXU 23 /* 0x17 Some [[:class:]] under /u; the FLAGS field gives which one */
+#define POSIXA 24 /* 0x18 Some [[:class:]] under /a; the FLAGS field gives which one */
+#define NPOSIXD 25 /* 0x19 complement of POSIXD, [[:^class:]] */
+#define NPOSIXL 26 /* 0x1a complement of POSIXL, [[:^class:]] */
+#define NPOSIXU 27 /* 0x1b complement of POSIXU, [[:^class:]] */
+#define NPOSIXA 28 /* 0x1c complement of POSIXA, [[:^class:]] */
+#define CLUMP 29 /* 0x1d Match any extended grapheme cluster sequence */
+#define BRANCH 30 /* 0x1e Match this alternative, or the next... */
+#define EXACT 31 /* 0x1f Match this string (preceded by length). */
+#define EXACTL 32 /* 0x20 Like EXACT, but /l is in effect (used so locale-related warnings can be checked for). */
+#define EXACTF 33 /* 0x21 Match this non-UTF-8 string (not guaranteed to be folded) using /id rules (w/len). */
+#define EXACTFL 34 /* 0x22 Match this string (not guaranteed to be folded) using /il rules (w/len). */
+#define EXACTFU 35 /* 0x23 Match this string (folded iff in UTF-8, length in folding doesn't change if not in UTF-8) using /iu rules (w/len). */
+#define EXACTFA 36 /* 0x24 Match this string (not guaranteed to be folded) using /iaa rules (w/len). */
+#define EXACTFU_SS 37 /* 0x25 Match this string (folded iff in UTF-8, length in folding may change even if not in UTF-8) using /iu rules (w/len). */
+#define EXACTFLU8 38 /* 0x26 Rare cirucmstances: like EXACTFU, but is under /l, UTF-8, folded, and everything in it is above 255. */
+#define EXACTFA_NO_TRIE 39 /* 0x27 Match this string (which is not trie-able; not guaranteed to be folded) using /iaa rules (w/len). */
+#define NOTHING 40 /* 0x28 Match empty string. */
+#define TAIL 41 /* 0x29 Match empty string. Can jump here from outside. */
+#define STAR 42 /* 0x2a Match this (simple) thing 0 or more times. */
+#define PLUS 43 /* 0x2b Match this (simple) thing 1 or more times. */
+#define CURLY 44 /* 0x2c Match this simple thing {n,m} times. */
+#define CURLYN 45 /* 0x2d Capture next-after-this simple thing */
+#define CURLYM 46 /* 0x2e Capture this medium-complex thing {n,m} times. */
+#define CURLYX 47 /* 0x2f Match this complex thing {n,m} times. */
+#define WHILEM 48 /* 0x30 Do curly processing and see if rest matches. */
+#define OPEN 49 /* 0x31 Mark this point in input as start of #n. */
+#define CLOSE 50 /* 0x32 Analogous to OPEN. */
+#define REF 51 /* 0x33 Match some already matched string */
+#define REFF 52 /* 0x34 Match already matched string, folded using native charset rules for non-utf8 */
+#define REFFL 53 /* 0x35 Match already matched string, folded in loc. */
+#define REFFU 54 /* 0x36 Match already matched string, folded using unicode rules for non-utf8 */
+#define REFFA 55 /* 0x37 Match already matched string, folded using unicode rules for non-utf8, no mixing ASCII, non-ASCII */
+#define NREF 56 /* 0x38 Match some already matched string */
+#define NREFF 57 /* 0x39 Match already matched string, folded using native charset rules for non-utf8 */
+#define NREFFL 58 /* 0x3a Match already matched string, folded in loc. */
+#define NREFFU 59 /* 0x3b Match already matched string, folded using unicode rules for non-utf8 */
+#define NREFFA 60 /* 0x3c Match already matched string, folded using unicode rules for non-utf8, no mixing ASCII, non-ASCII */
+#define LONGJMP 61 /* 0x3d Jump far away. */
+#define BRANCHJ 62 /* 0x3e BRANCH with long offset. */