- All Known Implementing Classes:
TokenFactory
public interface ITokenFactory
Abstract factory to produce tokens
-
Method Summary
-
Method Details
-
makeToken
Creates an instance of an Token from the given name and lexeme values- Parameters:
name
- the name of the tokenlexeme
- the lexeme of the token- Returns:
- the corresponding Token object
-