Uses of Interface
eu.bandm.tools.lexic.TokenSource
Package
Description
Toolkit for the dynamic construction of lexical analyzers.
-
Uses of TokenSource in eu.bandm.tools.d2d2.parser2
-
Uses of TokenSource in eu.bandm.tools.lexic
Modifier and TypeClassDescriptionclass
TokenFilter<D,
T> Abstract base class for token processors that filter out certain tokens.class
TokenProcessor<D,
T> Abstract base class for secondary token sources that feed on other token sources.Modifier and TypeMethodDescriptiondefault TokenSource<D,
T> LookaheadTokenSource.forgetLookahead()
default TokenSource<D,
T> TokenSource.removeTypes
(Set<T> types) Returns a secondary token source that forwards all tokens from this token source that have none of the given types.default TokenSource<D,
T> TokenSource.removeTypes
(T... types) Returns a secondary token source that forwards all tokens from this token source that have none of the given types.default TokenSource<D,
T> TokenSource.with
(Function<? super TokenSource<D, T>, ? extends TokenProcessor<D, T>> processor) Creates a new token processor by applying a given factory function to this source.Modifier and TypeMethodDescriptionstatic <D,
T> TokenFilter<D, T> TokenFilter.discard
(TokenSource<D, T> input, Predicate<? super Token<D, T>> pred) static <D,
T> TokenFilter<D, T> TokenFilter.removeTypes
(TokenSource<D, T> input, Set<? extends T> types) Modifier and TypeMethodDescriptiondefault TokenSource<D,
T> TokenSource.with
(Function<? super TokenSource<D, T>, ? extends TokenProcessor<D, T>> processor) Creates a new token processor by applying a given factory function to this source.ModifierConstructorDescriptionprotected
TokenFilter
(TokenSource<D, T> input, Predicate<? super Token<D, T>> acceptable) Creates a new instance.protected
TokenProcessor
(TokenSource<D, T> input) Creates a new instance.