2 // This software is now distributed according to
\r
3 // the Lesser Gnu Public License. Please see
\r
4 // http://www.gnu.org/copyleft/lesser.txt for
\r
6 // -- Happy Computing!
\r
8 package com.stevesoft.pat;
\r
10 /** OrMark and SubMark together implement ( ... ) */
\r
11 class SubMark extends Pattern {
\r
12 int end_pos,start_pos;
\r
14 public String toString() { return ""; }
\r
15 public int matchInternal(int i,Pthings pt) {
\r
16 pt.marks[om.id+pt.nMarks] = i;
\r
17 int ret=nextMatch(i,pt);
\r
19 pt.marks[om.id+pt.nMarks] = -1;
\r