Package | Description |
---|---|
jfun.parsec |
Provides classes and interfaces for parser combinator logic and basic parsers.
|
Modifier and Type | Class and Description |
---|---|
class |
IsToken
Tests if the token is the same token expected.
|
Modifier and Type | Method and Description |
---|---|
static <T,R> FromToken<R> |
Terms.fromTypedToken(T[] types,
FromString<R> f)
Get a FromToken object that only recognizes a token of
certain types.
|
static <T,R> FromToken<R> |
Terms.fromTypedToken(T type,
FromString<R> f)
Get a FromToken object that only recognizes a token of
a certain type.
|
static FromToken<Tok> |
IsToken.instance(java.lang.Object t)
Creates a FromToken instance using the given expected token t.
|
Modifier and Type | Method and Description |
---|---|
static <R> Parser<R> |
Parsers.token(FromToken<R> ft)
Token level parser.
|
static <R> Parser<R> |
Parsers.token(java.lang.String name,
FromToken<R> ft)
Token level parser.
|