上传者: toudebanrixian
|
上传时间: 2022-03-13 12:32:55
|
文件大小: 48KB
|
文件类型: -
编译词法分析器,用java编写的
public class analyetest
{
public ArrayList bracket;
public ArrayList keyword;
public ArrayList symbol;
public ArrayList semicolon;
public ArrayList operator;
static HashMap BRACKET;
static HashMap KEYWORD;
static HashMap SEMICOLON;
static HashMap OPERATOR;
public analyetest()
{
this.KEYWORD = new HashMap();
this.BRACKET = new HashMap();
this.SEMICOLON = new HashMap();
this.OPERATOR = new HashMap();
this.bracket = new ArrayList();
this.keyword = new ArrayList();
this.symbol = new ArrayList();
this.semicolon = new ArrayList();
this.operator = new ArrayList();
}