|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ArrayFactory | |
---|---|
jfun.parsec | Provides classes and interfaces for parser combinator logic and basic parsers. |
Uses of ArrayFactory in jfun.parsec |
---|
Methods in jfun.parsec that return ArrayFactory | ||
---|---|---|
static ArrayFactory<java.lang.Object> |
ArrayFactories.defaultFactory()
gets and instance of ArrayFactory that simply create Object[]. |
|
static
|
ArrayFactories.typedFactory(java.lang.Class<E> etype)
gets and instanceof ArrayFactory that creates T[] for a given element type T. |
Methods in jfun.parsec with parameters of type ArrayFactory | ||
---|---|---|
static
|
Parsers.endBy(ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern ended by Parser sep pattern. |
|
static
|
Parsers.endBy(java.lang.String name,
ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern ended by Parser sep pattern. |
|
static
|
Parsers.endBy1(ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern ended by Parser sep pattern. |
|
static
|
Parsers.endBy1(java.lang.String name,
ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern ended by Parser sep pattern. |
|
Parser<Type[]> |
Parser.many(ArrayFactory<Type> af)
p.many(af) is equivalent to p* in EBNF. |
|
Parser<Type[]> |
Parser.many(ArrayFactory<Type> af,
int min)
Runs this parser greedily for at least min times. |
|
static
|
Parsers.many(java.lang.String name,
ArrayFactory<R> af,
int min,
Parser<? extends R> p)
Greedily runs Parser p repeatedly for at least min times and collect the result in an array created by ArrayFactory object. |
|
static
|
Parsers.many(java.lang.String name,
ArrayFactory<R> af,
Parser<? extends R> p)
Greedily runs Parser p repeatedly and collect the result in an array created by ArrayFactory object. |
|
Parser<Type[]> |
Parser.many(java.lang.String name,
ArrayFactory<Type> af)
p.many(name, af) is equivalent to p* in EBNF. |
|
Parser<Type[]> |
Parser.many(java.lang.String name,
ArrayFactory<Type> af,
int min)
Runs this parser greedily for at least min times. |
|
Parser<Type[]> |
Parser.many1(ArrayFactory<Type> af)
p.many1(af) is equivalent to p+ in EBNF. |
|
Parser<Type[]> |
Parser.many1(java.lang.String name,
ArrayFactory<Type> af)
p.many1(name, af) is equivalent to p+ in EBNF. |
|
static
|
Parsers.mapn(ArrayFactory<?> af,
Parser<?>[] ps,
Mapn<R> mn)
Sequencing of an array of Parser objects. |
|
static
|
Parsers.mapn(java.lang.String name,
ArrayFactory<?> af,
Parser<?>[] ps,
Mapn<R> mn)
Sequencing of an array of Parser objects. |
|
Parser<Type[]> |
Parser.repeat(ArrayFactory<Type> af,
int n)
Run Parser 'this' for n times, collect the return values in an array created by the ArrayFactory object. |
|
static
|
Parsers.repeat(java.lang.String name,
ArrayFactory<R> af,
int n,
Parser<? extends R> p)
Runs Parser p for n times, collect the return values in an array created by the ArrayFactory object. |
|
Parser<Type[]> |
Parser.repeat(java.lang.String name,
ArrayFactory<Type> af,
int n)
Run Parser 'this' for n times, collect the return values in an array created by the ArrayFactory object. |
|
static
|
Parsers.sepBy(ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern that is seperated by Parser sep pattern. |
|
static
|
Parsers.sepBy(java.lang.String name,
ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern that is seperated by Parser sep pattern. |
|
static
|
Parsers.sepBy1(ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern that is seperated by Parser sep pattern. |
|
static
|
Parsers.sepBy1(java.lang.String name,
ArrayFactory<R> af,
Parser<?> sep,
Parser<A> p)
run a series of Parser p pattern that is seperated by Parser sep pattern. |
|
static
|
Parsers.sepEndBy(ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern that is seperated and optionally ended by Parser sep pattern. |
|
static
|
Parsers.sepEndBy(java.lang.String name,
ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern that is seperated and optionally ended by Parser sep pattern. |
|
static
|
Parsers.sepEndBy1(ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern that is seperated and optionally ended by Parser sep pattern. |
|
static
|
Parsers.sepEndBy1(java.lang.String name,
ArrayFactory<R> af,
Parser<?> sep,
Parser<? extends R> p)
run a series of Parser p pattern that is seperated and optionally ended by Parser sep pattern. |
|
Parser<Type[]> |
Parser.some(ArrayFactory<Type> af,
int max)
Runs this for up to max times. |
|
Parser<Type[]> |
Parser.some(ArrayFactory<Type> af,
int min,
int max)
Runs this for at least min times and at most max times. |
|
static
|
Parsers.some(java.lang.String name,
ArrayFactory<R> af,
int min,
int max,
Parser<? extends R> p)
Greedily runs Parser p repeatedly for at least min times and at most max time. |
|
static
|
Parsers.some(java.lang.String name,
ArrayFactory<R> af,
int max,
Parser<? extends R> p)
Greedily runs Parser p repeatedly for at most max time. |
|
Parser<Type[]> |
Parser.some(java.lang.String name,
ArrayFactory<Type> af,
int max)
Runs this for up to max times. |
|
Parser<Type[]> |
Parser.some(java.lang.String name,
ArrayFactory<Type> af,
int min,
int max)
Runs this for at least min times and at most max times. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |