Package | Description |
---|---|
jfun.parsec |
Provides classes and interfaces for parser combinator logic and basic parsers.
|
Modifier and Type | Class and Description |
---|---|
class |
Tuple3<A,B,C>
This is a simple Java Bean for 3 objects.
|
class |
Tuple4<A,B,C,D>
This is a simple Java Bean for 4 objects.
|
class |
Tuple5<A,B,C,D,E>
This is a simple Java Bean for 5 objects.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> Pair<A,B> |
Tuples.pair(A a,
B b)
Create a Pair object.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> Map2<A,B,Pair<A,B>> |
Maps.id2()
Create a Map2 object that stores the two objects into a Pair object.
|
static <A,B> Parser<Pair<A,B>> |
Parsers.pair(Parser<A> p1,
Parser<B> p2)
Sequentially run 2 parser objects and collect the results in a Pair object.
|
static <A,B> Parser<Pair<A,B>> |
Parsers.pair(java.lang.String name,
Parser<A> p1,
Parser<B> p2)
Sequentially run 2 parser objects and collect the results in a Pair object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Pair.equals(Pair other) |