mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-28 01:25:19 +00:00
Move the source files into a new default directory.
This commit is contained in:
18
src/main/java/org/nwapw/abacus/parsing/Tokenizer.java
Normal file
18
src/main/java/org/nwapw/abacus/parsing/Tokenizer.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package org.nwapw.abacus.parsing;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Interface that provides the ability to convert a string into a list of tokens.
|
||||
* @param <T> the type of the tokens produced.
|
||||
*/
|
||||
public interface Tokenizer<T> {
|
||||
|
||||
/**
|
||||
* Converts a string into tokens.
|
||||
* @param string the string to convert.
|
||||
* @return the list of tokens, or null on error.
|
||||
*/
|
||||
public List<T> tokenizeString(String string);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user