Uses of Interface
eu.bandm.tools.lexic.LookaheadTokenSource
Package
Description
Toolkit for the dynamic construction of lexical analyzers.
-
Uses of LookaheadTokenSource in eu.bandm.tools.lexic
Modifier and TypeInterfaceDescriptioninterface
TokenSource<D,
T> A specialized supplier of tokens.Modifier and TypeClassDescriptionclass
LookaheadTokenFilter<D,
T, L> Abstract base class for token processors that filter out certain tokens.class
LookaheadTokenMultiplexer<K,
D, T, L> class
LookaheadTokenProcessor<D,
T, L> Abstract base class for secondary token sources that feed on other token sources.class
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 TypeFieldDescriptionprotected final LookaheadTokenSource<D,
T, L> LookaheadTokenProcessor.input
The input token source.Modifier and TypeMethodDescriptionLookaheadTokenMultiplexer.getCurrentChannel()
<D> LookaheadTokenSource<D,
T, int[]> Lexer.lex
(CodePointSource input) Returns a token source that produces tokens from the given input source.<D> LookaheadTokenSource<D,
T, int[]> Lexer.lex
(CodePointSource input, D documentId, int firstLine, int firstColumn) Returns a token source that produces tokens from the given input source.default LookaheadTokenSource<D,
T, L> LookaheadTokenSource.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 LookaheadTokenSource<D,
T, L> LookaheadTokenSource.removeTypes
(T... types) Returns a secondary token source that forwards all tokens from this token source that have none of the given types.Modifier and TypeMethodDescriptionstatic <D,
T, L> LookaheadTokenFilter<D, T, L> LookaheadTokenFilter.discard
(LookaheadTokenSource<D, T, L> input, Predicate<? super Token<D, T>> pred) Returns a token filter that forwards those tokens from a given input source that do not match a given predicate.static <D,
T, L> LookaheadTokenFilter<D, T, L> LookaheadTokenFilter.forward
(LookaheadTokenSource<D, T, L> input, Predicate<? super Token<D, T>> pred) Returns a token filter that forwards those tokens from a given input source that match a given predicate.static <D,
T, L> LookaheadTokenFilter<D, T, L> LookaheadTokenFilter.removeTypes
(LookaheadTokenSource<D, T, L> input, Set<? extends T> types) Returns a secondary token source that forwards all tokens from a given token source that have none of the given types.static <A> void
LookaheadTokenSource.transferLookahead
(LookaheadTokenSource<?, ?, ? extends A> first, LookaheadTokenSource<?, ?, ? super A> second) ModifierConstructorDescriptionprotected
LookaheadTokenFilter
(LookaheadTokenSource<D, T, L> input, Predicate<? super Token<D, T>> acceptable) Creates a new instance.LookaheadTokenMultiplexer
(K key, LookaheadTokenSource<D, T, L> channel) protected
LookaheadTokenProcessor
(LookaheadTokenSource<D, T, L> input) Creates a new instance. -
Uses of LookaheadTokenSource in eu.bandm.tools.tpath.parser2
Modifier and TypeClassDescriptionclass
Screener<D>
Token processor to recognize context-dependent token types.Modifier and TypeMethodDescriptionLookaheadTokenSource<D,
TokenType, int[]> Parser.tokenSource
(Reader reader, D sourceIndication) Modifier and TypeMethodDescription<R> R
Parser.parse_nonterminal
(Expression<D, TokenType, R> nonterminal, LookaheadTokenSource<D, TokenType, int[]> tokenSource, MessageReceiver<SimpleMessage<D>> msg)