Uses of Interface
at.jku.ssw.fp.sect06_3.Parser
-
Packages that use Parser Package Description at.jku.ssw.fp.sect06_3 -
-
Uses of Parser in at.jku.ssw.fp.sect06_3
Fields in at.jku.ssw.fp.sect06_3 declared as Parser Modifier and Type Field Description (package private) static Parser<String>
Demo2_MonadicParser. andTkn
static Parser<String>
Parser. anyToken
A parser parsing any token.(package private) static Parser<String>
Demo2_MonadicParser. notTkn
(package private) static Parser<String>
Demo2_MonadicParser. orTkn
Methods in at.jku.ssw.fp.sect06_3 that return Parser Modifier and Type Method Description static <R> Parser<R>
Parser. alt(Parser<? extends R>... alternatives)
Creates a parser which tries to apply one of the given alternative parsers.static <R> Parser<R>
Parser. alt(Supplier<Parser<? extends R>>... pSuppliers)
Creates a parser which tries to apply one of the alternative parsers.default Parser<E>
Parser. filter(Predicate<? super E> pred)
Creates a new parser from this parser which is only successful if the parse result fulfills the given predicate.default <R> Parser<R>
Parser. flatMap(Function<? super E,? extends Parser<? extends R>> f)
The monadic flatMap operator for parsers.static <R> Parser<FList<R>>
Parser. fmultRec(Parser<R> parser)
Recursive variant ofmult(Parser)
.default <R> Parser<R>
Parser. map(Function<E,R> f)
Creates a new parser from this parser where the parse result is mapped by the given function.static <R> Parser<FList<R>>
Parser. mult(Parser<R> parser)
Creates a parser which applies the given parser as long as it is successful.static <E> Parser<E>
Parser. of(E e)
Creates a parser which parses the given element as success without consuming a token.static <R> Parser<Optional<R>>
Parser. opt(Parser<R> parser)
Creates a parser which optionally applies the given parser.default <S> Parser<Pair<E,S>>
Parser. seq(Parser<S> second)
Creates a new parser which applies this parser and the second parser and combined both results in aPair
.static Parser<String>
Parser. token(String tkn)
A parser parsing a token if it is equal to the given string.Methods in at.jku.ssw.fp.sect06_3 with parameters of type Parser Modifier and Type Method Description static <R> Parser<R>
Parser. alt(Parser<? extends R>... alternatives)
Creates a parser which tries to apply one of the given alternative parsers.static <R> Parser<FList<R>>
Parser. fmultRec(Parser<R> parser)
Recursive variant ofmult(Parser)
.static <R> Parser<FList<R>>
Parser. mult(Parser<R> parser)
Creates a parser which applies the given parser as long as it is successful.static <R> Parser<Optional<R>>
Parser. opt(Parser<R> parser)
Creates a parser which optionally applies the given parser.default <S> Parser<Pair<E,S>>
Parser. seq(Parser<S> second)
Creates a new parser which applies this parser and the second parser and combined both results in aPair
.Method parameters in at.jku.ssw.fp.sect06_3 with type arguments of type Parser Modifier and Type Method Description default <R> Parser<R>
Parser. flatMap(Function<? super E,? extends Parser<? extends R>> f)
The monadic flatMap operator for parsers.
-