Uses of Class
eu.bandm.tools.lexic.TokenFragment
Package
Description
Toolkit for the dynamic construction of lexical analyzers.
-
Uses of TokenFragment in eu.bandm.tools.lexic
Modifier and TypeMethodDescriptionTokenFragment.andThen
(TokenFragment other) Returns a token fragment that matches input matched by this fragment followed by the given other fragment.TokenFragment.andThenUntil
(TokenFragment delimiter) Returns a token fragment that matches input matched by this fragment followed by any input finally matched once by the given delimiter fragment.TokenFragment.andThenUntil
(TokenFragment body, TokenFragment delimiter) Returns a token fragment that matches input matched by this fragment followed by input matched by the given body fragment and finally matched once by the given delimiter fragment.TokenFragment.andThenWithout
(TokenFragment delimiter) TokenFragment.andThenWithout
(TokenFragment body, TokenFragment delimiter) static TokenFragment
TokenFragment.any()
Returns a token fragment that matches any input code point.static TokenFragment
TokenFragment.anyOf
(int... codePoints) Returns a token fragment that matches any one of the given input code points.static TokenFragment
Returns a token fragment that matches any of the input code point sequences specified by the given strings.TokenFragment.butNot
(TokenFragment other) Returns a token fragment that matches input matched by this fragment but not by the given other fragment.TokenFragment.butOnly
(TokenFragment other) Returns a token fragment that matches input matched by both this fragment and also the given other fragment.TokenFragment.contained()
Returns a token fragment that matches any input which contains a contiguous section matched by this fragment.static TokenFragment
TokenFragment.epsilon()
Returns a token fragment that matches zero code points of input.static TokenFragment
TokenFragment.except
(int... codePoints) Returns a token fragment that matches any input code point except for the given ones.static TokenFragment
TokenFragment.fail()
Returns a token fragment that does not match any input.TokenFragment.normalize()
Returns a token fragment that matches the same inputs as this fragment, but with a simple implementation.static TokenFragment
TokenFragment.of
(int codePoint) Returns a token fragment that matches the given input code point.static TokenFragment
Returns a token fragment that matches the input code point sequence specified by the given string.TokenFragment.optional()
Returns a token fragment that matches input matched by this fragment, or alternatively zero code points.TokenFragment.orElse
(TokenFragment other) Returns a token fragment that matches input either matched by this fragment or by the given other fragment, or both.TokenFragment.plus()
Returns a token fragment that matches input matched by one or more repetitions of this fragment.static TokenFragment
TokenFragment.range
(int from, int to) Returns a token fragment that matches any input code point in the given interval.TokenFragment.star()
Returns a token fragment that matches input matched by zero or more repetitions of this fragment.Modifier and TypeMethodDescriptionTokenFragment.andThen
(TokenFragment other) Returns a token fragment that matches input matched by this fragment followed by the given other fragment.TokenFragment.andThenUntil
(TokenFragment delimiter) Returns a token fragment that matches input matched by this fragment followed by any input finally matched once by the given delimiter fragment.TokenFragment.andThenUntil
(TokenFragment body, TokenFragment delimiter) Returns a token fragment that matches input matched by this fragment followed by input matched by the given body fragment and finally matched once by the given delimiter fragment.TokenFragment.andThenWithout
(TokenFragment delimiter) TokenFragment.andThenWithout
(TokenFragment body, TokenFragment delimiter) TokenFragment.butNot
(TokenFragment other) Returns a token fragment that matches input matched by this fragment but not by the given other fragment.TokenFragment.butOnly
(TokenFragment other) Returns a token fragment that matches input matched by both this fragment and also the given other fragment.TokenFragment.orElse
(TokenFragment other) Returns a token fragment that matches input either matched by this fragment or by the given other fragment, or both. -
Uses of TokenFragment in eu.bandm.tools.lexic.lib
Modifier and TypeFieldDescription(package private) static final TokenFragment
XML_1_0.forbidden1
(package private) static final TokenFragment
XML_1_0.forbidden2
static final TokenFragment
JavaLike.multilineComment
static final TokenFragment
XML_1_0.name
See [XML 1.0 section 2.3 rule 5].static final TokenFragment
XML_1_0.nameChar
static final TokenFragment
XML_1_0.nameStartChar
static final TokenFragment
XML_1_0.ncname
Accepts aXML_1_0.name
which does not contain a colon »:
«.static final TokenFragment
XML_1_0.nmtoken
See [XML 1.0 section 2.3 rule 7].static final TokenFragment
XML_1_0.qname
Accepts oneXML_1_0.ncname
, or two of them connected by a single colon »:
«.Modifier and TypeMethodDescriptionstatic TokenFragment
JavaLike.singlelineComment
(TokenFragment newline) Modifier and TypeMethodDescriptionstatic TokenFragment
JavaLike.singlelineComment
(TokenFragment newline)