libdparse v0.22.0 (2023-02-14T12:55:31Z)
Dub
Repo
byToken
dparse
lexer
Creates a token range from the given source code. Uses the given string cache.
auto
byToken
(R range)
auto
byToken
(R range, StringCache* cache)
public
auto
byToken
(
R
)
(
R
range
,
StringCache
*
cache
)
if
(
is
(
Unqual
!(
ElementEncodingType
!
R
) :
ubyte
) &&
isDynamicArray
!
R
)
auto
byToken
(R range, LexerConfig config, StringCache* cache)
Meta
Source
See Implementation
dparse
lexer
aliases
BasicTypes
IdType
IntegerLiterals
Keywords
Literals
NumberLiterals
Operators
Protections
SpecialTokens
StringLiterals
Token
str
enums
CommentBehavior
WhitespaceBehavior
functions
byToken
getTokensForParser
isBasicType
isIntegerLiteral
isKeyword
isLiteral
isNumberLiteral
isOperator
isProtection
isSpecialToken
isStringLiteral
optimalBucketCount
rangeMatch
skip
mixin templates
TokenTriviaFields
structs
DLexer
LexerConfig
StringBehavior
StringCache
templates
ByteCombine
tok
Creates a token range from the given source code. Uses the given string cache.