Ignore:
Timestamp:
Dec 2, 2017, 6:39:08 PM (21 months ago)
Author:
cameron
Message:

Fixes for last check-in

File:
1 edited

Legend:

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

    r5753 r5754  
    105105        alt.push_back(parse_seq());
    106106    }
    107     while (mCursor.more() && (*mCursor == '|'));
     107    while (accept_alt_mark());
    108108    return makeAlt(alt.begin(), alt.end());
     109}
     110   
     111bool RE_Parser::accept_alt_mark() {
     112    if (!mCursor.more() || (*mCursor != '|')) return false;
     113    mCursor++;
     114    return true;
    109115}
    110116
Note: See TracChangeset for help on using the changeset viewer.