Ignore:
Timestamp:
Nov 22, 2016, 9:02:01 PM (3 years ago)
Author:
xuedongx
Message:

Add parser for PROSITE protein patterns

Location:
icGREP/icgrep-devel/icgrep/re
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r5206 r5218  
    1010#include <re/re_parser_ere.h>
    1111#include <re/re_parser_bre.h>
     12#include <re/re_parser_prosite.h>
    1213#include <re/re_name.h>
    1314#include <re/re_alt.h>
     
    4344            parser = llvm::make_unique<RE_Parser_BRE>(regular_expression);
    4445            break;
     46        case RE_Syntax ::PROSITE:
     47            parser = llvm::make_unique<RE_Parser_PROSITE>(regular_expression);
     48            break;
    4549        default:
    4650            //TODO handle FixString
  • icGREP/icgrep-devel/icgrep/re/re_parser.h

    r5206 r5218  
    2121namespace re {
    2222
    23 enum RE_Syntax {FixedStrings, BRE, ERE, PCRE};
     23enum RE_Syntax {FixedStrings, BRE, ERE, PCRE, PROSITE};
    2424enum CharsetOperatorKind
    2525    {intersectOp, setDiffOp, ampChar, hyphenChar, rangeHyphen, posixPropertyOpener, setOpener, setCloser, backSlash, emptyOperator};
     
    119119    virtual RE * parse_RE();
    120120
    121     RE * parse_alt();
     121    virtual RE * parse_alt();
    122122
    123123    virtual RE * parse_alt_with_intersect(RE* reToBeIntersected);
    124124
    125     RE * parse_seq();
     125    virtual RE * parse_seq();
    126126
    127127    RE * parse_seq_with_intersect(RE* reToBeIntersected);
Note: See TracChangeset for help on using the changeset viewer.