Uses of Class
eu.bandm.tools.ramus.ogma.Predictor
Packages that use Predictor
Package
Description
Dynamic building blocks for recursive-descent parsers.
-
Uses of Predictor in eu.bandm.tools.ramus.ogma
Methods in eu.bandm.tools.ramus.ogma that return PredictorModifier and TypeMethodDescriptionCombines this and another predictor sequentially.Predictor.butConsuming()static <T> Predictor<T> Predictor.epsilon()Returns a predictor that represents the acceptance of no token types but optional consumption.static <T> Predictor<T> Predictor.fail()Returns a predictor that represents the acceptance of no token types but mandatory consumption.Parser.getPredictor()Returns the predictor for this parser.Parser.initializePredictor()Creates the predictor for this parser.static <T> Predictor<T> Combines several predictors in a switch-like way.static <T> Predictor<T> Predictor.of(Collection<? extends T> whitelist) Returns a predictor that represents mandatory consumption of a token of one of the given whitelist of acceptable types.static <T> Predictor<T> Predictor.of(Collection<? extends T> whitelist, boolean optional) Returns a predictor that represents consumption of a token of one of the given whitelist of acceptable types.static <T> Predictor<T> Predictor.of(T... whitelist) Returns a predictor that represents mandatory consumption of a token of one of the given whitelist of acceptable types.static <T> Predictor<T> Predictor.optional(Collection<? extends T> whitelist) Returns a predictor that represents optional consumption of a token of one of the given whitelist of acceptable types.static <T> Predictor<T> Predictor.optional(T... whitelist) Returns a predictor that represents optional consumption of a token of one of the given whitelist of acceptable types.Combines this and another predictor disjunctively.static <T> Predictor<T> Predictor.plus()Returns a predictor that represents the acceptance of all token types and mandatory consumption.static <T> Predictor<T> Predictor.star()Returns a predictor that represents the acceptance of all token types and optional consumption.static <T> Predictor<T> Predictor.union(Collection<? extends Predictor<T>> alts) Combines several predictors disjunctively.Methods in eu.bandm.tools.ramus.ogma with parameters of type PredictorModifier and TypeMethodDescriptionCombines this and another predictor sequentially.static <T> Predictor<T> Combines several predictors in a switch-like way.Predictor.notSharedWith(Predictor<T> other) Returns the subset of the whitelist of this predictor that is not shared with a given predictor.Combines this and another predictor disjunctively.booleanPredictor.sharedWith(Predictor<T> other) Returns the subset of the whitelist of this predictor that is shared with a given predictor.Parser.whenFollowedBy(Predictor<T> following, Rewriting<Parser<D, T>, Predictor<T>, Parser.Pragma[]>.Context context) Parser.whenFollowedBy(Predictor<T> following, Parser.Pragma... pragmas) Returns a parser that behaves like this parser if consumed input is followed by the specified token types.Method parameters in eu.bandm.tools.ramus.ogma with type arguments of type PredictorModifier and TypeMethodDescriptionstatic <T> Predictor<T> Combines several predictors in a switch-like way.static <T> Predictor<T> Predictor.union(Collection<? extends Predictor<T>> alts) Combines several predictors disjunctively.