added some code for integrating TRE into awk
This commit is contained in:
@ -1243,7 +1243,8 @@ enum qse_awk_errnum_t
|
||||
QSE_AWK_EOFMTCHR, /**< invalid character in OFMT */
|
||||
|
||||
/* regular expression error */
|
||||
QSE_AWK_EREXNOCOMP, /**< no regular expression compiled */
|
||||
QSE_AWK_EREXBL, /**< failed to build regular expression */
|
||||
QSE_AWK_EREXMA, /**< failed to match regular expression */
|
||||
QSE_AWK_EREXRECUR, /**< recursion too deep */
|
||||
QSE_AWK_EREXRPAREN, /**< a right parenthesis is expected */
|
||||
QSE_AWK_EREXRBRACK, /**< a right bracket is expected */
|
||||
|
@ -79,12 +79,17 @@ enum qse_tre_cflag_t
|
||||
QSE_TRE_RIGHTASSOC = (1 << 5),
|
||||
QSE_TRE_UNGREEDY = (1 << 6),
|
||||
|
||||
/* Disable {n,m} occrrence specifier
|
||||
* in the QSE_TRE_EXTENDED mode.
|
||||
* it doesn't affect the BRE's \{\}. */
|
||||
QSE_TRE_NOBOUND = (1 << 7),
|
||||
|
||||
/* Enable non-standard extensions:
|
||||
* - Enable (?:text) for no submatch backreference.
|
||||
* - Enable perl-like (?...) extensions like (?i)
|
||||
* if QSE_TRE_EXTENDED is also set.
|
||||
*/
|
||||
QSE_TRE_NONSTDEXT = (1 << 7)
|
||||
QSE_TRE_NONSTDEXT = (1 << 8)
|
||||
};
|
||||
|
||||
enum qse_tre_eflag_t
|
||||
|
Reference in New Issue
Block a user