source: icGREP/icgrep-devel/icgrep/re/re_parser_ere.h @ 5787

Last change on this file since 5787 was 5787, checked in by cameron, 9 months ago

RE parser restructuring; parsing symbolic ranges, collation and equivalence exprs

File size: 752 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_ERE_H
8#define ICGREP_RE_PARSER_ERE_H
9
10#include <re/re_parser.h>
11
12namespace re {
13    class RE_Parser_ERE : public RE_Parser  {
14    public:
15        RE_Parser_ERE(const std::string & regular_expression) : RE_Parser(regular_expression) {
16            mReSyntax = RE_Syntax::ERE;
17        }
18
19    protected:
20       virtual RE * parse_next_item() override;
21
22       virtual RE * parse_group() override;
23
24       virtual RE * parse_escaped() override;
25       
26       RE * parse_bracket_expr();
27
28       
29    };
30}
31
32
33#endif //ICGREP_RE_PARSER_ERE_H
Note: See TracBrowser for help on using the repository browser.