1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-01 21:35:19 +00:00

Implement a lexer.

This commit is contained in:
2017-07-24 20:47:25 -07:00
parent 43c3d5f754
commit c86e192d2e
2 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package org.nwapw.abacus.lexing.pattern;
public class Match<T> {
private int from;
private int to;
private T type;
public Match(int from, int to, T type){
this.from = from;
this.to = to;
this.type = type;
}
public int getFrom() {
return from;
}
public int getTo() {
return to;
}
public T getType() {
return type;
}
}