sdc ~master (2022-04-26T13:08:25Z)
Dub
Repo
TokenRangeImpl
source
lexerutil
Undocumented in source.
mixin template
TokenRangeImpl (
Token
alias
BaseMap
alias
KeywordMap
alias
OperatorMap
) {
Token
t
;
import
source
.
location
;
;
Position
previous
;
Position
base
;
uint
index
;
import
std
.
bitmanip
;
;
import
source
.
context
;
;
Context
context
;
string
content
;
alias
TokenRange
=
typeof
(
this
)
;
alias
TokenType
=
typeof
(
Token
.
init
.
type
)
;
auto
withComments
(bool wc);
bool
decodeStrings
[@property getter];
auto
withStringDecoding
(bool sd);
auto
getLookahead
();
auto
front
[@property getter];
void
popFront
();
void
moveTo
(TokenRange fr);
auto
save
[@property getter];
bool
empty
[@property getter];
}
Members
Aliases
TokenRange
alias
TokenRange
=
typeof
(
this
)
Undocumented in source.
TokenType
alias
TokenType
=
typeof
(
Token
.
init
.
type
)
Undocumented in source.
Functions
getLookahead
auto
getLookahead
()
Return a copy of this lexer that: - skip over comments. - do not decode strings.
moveTo
void
moveTo
(TokenRange fr)
Undocumented in source.
popFront
void
popFront
()
Undocumented in source.
withComments
auto
withComments
(bool wc)
Undocumented in source. Be warned that the author may not have intended to support it.
withStringDecoding
auto
withStringDecoding
(bool sd)
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
decodeStrings
bool
decodeStrings
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool
empty
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
front
auto
front
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
save
auto
save
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
base
Position
base
;
Undocumented in source.
content
string
content
;
Undocumented in source.
context
Context
context
;
Undocumented in source.
index
uint
index
;
Undocumented in source.
previous
Position
previous
;
Undocumented in source.
t
Token
t
;
Undocumented in source.
Meta
Source
See Implementation
source
lexerutil
functions
isIdChar
lexerMixin
popFront
mixin templates
TokenRangeImpl
properties
front