source: icGREP/icgrep-devel/icgrep/re/re_parser_helper.h

Last change on this file was 5180, checked in by xwa163, 12 months ago

Support BRE and ERE for regex syntax.

File size: 702 bytes
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef ICGREP_RE_PARSER_HELPER_H
8#define ICGREP_RE_PARSER_HELPER_H
9
10#define bit3C(x) (1ULL << ((x) - 0x3C))
11
12
13// It would probably be best to enforce that {}, [], () must always
14// be balanced.   But legacy syntax allows } and ] to occur as literals
15// in certain contexts (no opening { or [, or immediately after [ or [^ ).
16// Perhaps this define should become a parameter.
17#define LEGACY_UNESCAPED_RBRAK_RBRACE_ALLOWED true
18#define LEGACY_UNESCAPED_HYPHEN_ALLOWED true
19
20
21#endif //ICGREP_RE_PARSER_HELPER_H
Note: See TracBrowser for help on using the repository browser.