Package com.io7m.jsx.api.tokens
Interface TokenMatcherType<A,E extends Exception>
- Type Parameters:
A- The type of returned valuesE- The type of raised exceptions
public interface TokenMatcherType<A,E extends Exception>
The type of token matchers.
-
Method Summary
Modifier and TypeMethodDescriptionMatch a token.Match a token.Match a token.Match a token.Match a token.Match a token.Match a token.Match a token.
-
Method Details
-
eof
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-
leftParen
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-
leftSquare
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-
quotedString
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-
rightParen
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-
rightSquare
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-
symbol
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-
comment
Match a token.- Parameters:
t- The token- Returns:
- A value of
A - Throws:
E- If required
-