Uses of Interface
eu.bandm.tools.lexic.LookaheadTokenSource
Packages that use LookaheadTokenSource
Package
Description
Toolkit for the dynamic construction of lexical analyzers.
-
Uses of LookaheadTokenSource in eu.bandm.tools.lexic
Subinterfaces of LookaheadTokenSource in eu.bandm.tools.lexicModifier and TypeInterfaceDescriptioninterface
TokenSource<D,
T> A specialized supplier of tokens.Classes in eu.bandm.tools.lexic that implement LookaheadTokenSourceModifier and TypeClassDescriptionclass
LookaheadTokenFilter<D,
T, L> Abstract base class for token processors that filter out certain tokens.class
LookaheadTokenMultiplexer<K,
D, T, L> A multiplexer between token source channels with internal lookahead buffer, selected by a key.class
LookaheadTokenProcessor<D,
T, L> Abstract base class for secondary token sources that feed on other token sources.class
LookaheadTokenSourceProxy<D,
T, L> 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.Fields in eu.bandm.tools.lexic declared as LookaheadTokenSourceModifier and TypeFieldDescriptionprotected final LookaheadTokenSource
<D, T, L> LookaheadTokenProcessor.input
The input token source.Methods in eu.bandm.tools.lexic that return LookaheadTokenSourceModifier and TypeMethodDescriptionLookaheadTokenMultiplexer.getCurrentChannel()
Returns the currently selected channel.<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.<D> LookaheadTokenSource
<D, T, int[]> Lexer.lex
(CodePointSource input, D documentId, int firstLine, int firstColumn, Token.Factory<D, T, ?> tokenFactory) 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.Methods in eu.bandm.tools.lexic with parameters of type LookaheadTokenSourceModifier 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 only 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.Adds an entry to this multiplexer.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 <D,
T, L> LookaheadTokenFilter <D, T, L> LookaheadTokenFilter.removeTypes
(LookaheadTokenSource<D, T, L> input, T... types) Returns a secondary token source that forwards all tokens from a given token source that have none of the given types.void
static <L> void
LookaheadTokenSource.transferLookahead
(LookaheadTokenSource<?, ?, ? extends L> first, LookaheadTokenSource<?, ?, ? super L> second) Transfers lookahead buffer data between two compatible token sources.Constructors in eu.bandm.tools.lexic with parameters of type LookaheadTokenSourceModifierConstructorDescriptionprotected
LookaheadTokenFilter
(LookaheadTokenSource<D, T, L> input, Predicate<? super Token<D, T>> acceptable) Creates a new instance.LookaheadTokenMultiplexer
(K key, LookaheadTokenSource<D, T, L> channel) Creates a new instance with one entry.protected
LookaheadTokenProcessor
(LookaheadTokenSource<D, T, L> input) Creates a new instance.LookaheadTokenSourceProxy
(@Opt LookaheadTokenSource<D, T, L> source) -
Uses of LookaheadTokenSource in eu.bandm.tools.tpath.parser2
Classes in eu.bandm.tools.tpath.parser2 that implement LookaheadTokenSourceModifier and TypeClassDescriptionclass
Screener<D>
Token processor to recognize context-dependent token types.Methods in eu.bandm.tools.tpath.parser2 that return LookaheadTokenSourceModifier and TypeMethodDescriptionLookaheadTokenSource
<D, TokenType, int[]> Parser.tokenSource
(Reader reader, D sourceIndication) Methods in eu.bandm.tools.tpath.parser2 with parameters of type LookaheadTokenSourceModifier and TypeMethodDescription<R> R
Parser.parse_nonterminal
(Reading<D, TokenType, R> nonterminal, LookaheadTokenSource<D, TokenType, int[]> tokenSource, MessageReceiver<SimpleMessage<D>> msg) Constructors in eu.bandm.tools.tpath.parser2 with parameters of type LookaheadTokenSource