派生自 projectDept/qhighschool

胡仁荣
2022-11-24 06d6372b451b964738cbfe2adb37e1da85d856ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.qxueyou.scc.exercise.service.impl;
 
import java.util.regex.Matcher;
 
public abstract class Parser {
    
    public abstract ParseResult parse(Node node,String str);
    
    protected boolean matchBegin(Matcher match){
        boolean result =  match.find()&&match.start()==0;
        match.reset();
        return result;
    }
    
}