dparsergen v0.1.0 (2023-05-07T14:44:42Z)
Dub
Repo
CharLexer.tokenID
dparsergen
core
charlexer
CharLexer
Gets the internal ID for token with name
tok
.
struct
CharLexer
template
tokenID (
string
tok
) {
static if
(
tok.length == 3 && tok[0] == '\"' && tok[2] == '\"'
)
enum
tokenID
;
static if
(!(
tok.length == 3 && tok[0] == '\"' && tok[2] == '\"'
))
static if
(
tok == "$end"
)
enum
tokenID
;
static if
(!(
tok.length == 3 && tok[0] == '\"' && tok[2] == '\"'
))
static if
(!(
tok == "$end"
))
static if
(
tok == "$flushreduces"
)
enum
tokenID
;
}
Members
Manifest constants
tokenID
enum
tokenID
;
Undocumented in source.
tokenID
enum
tokenID
;
Undocumented in source.
tokenID
enum
tokenID
;
Undocumented in source.
Meta
Source
See Implementation
dparsergen
core
charlexer
CharLexer
constructors
this
functions
popFront
tokenName
structs
Front
templates
tokenID
variables
empty
front
input
Gets the internal ID for token with name tok.