dparsergen v0.1.0 (2023-05-07T14:44:42Z)
Dub
Repo
Lexer
dparsergen
generator
grammarebnf_lexer
Undocumented in source.
struct
Lexer (
Location
bool
includeIgnoredTokens
= false
) {
alias
LocationDiff
=
typeof
(
Location
.
init
-
Location
.
init
)
;
string
input
;
this
(string input, Location startLocation);
eponymoustemplate
tokenID
(string tok)
;
string
tokenName
(size_t id);
struct
Front
;
Front
front
;
bool
empty
;
void
popFront
();
void
popFrontImpl
();
SingleParseException
!
Location
lexerException
(string errorText, string expected, size_t len, string file, size_t line);
}
Constructors
this
this
(string input, Location startLocation)
Undocumented in source.
Members
Aliases
LocationDiff
alias
LocationDiff
=
typeof
(
Location
.
init
-
Location
.
init
)
Undocumented in source.
Enums
tokenID
eponymoustemplate
tokenID
(string tok)
Undocumented in source.
Functions
lexerException
SingleParseException
!
Location
lexerException
(string errorText, string expected, size_t len, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
void
popFront
()
Undocumented in source. Be warned that the author may not have intended to support it.
popFrontImpl
void
popFrontImpl
()
Undocumented in source. Be warned that the author may not have intended to support it.
tokenName
string
tokenName
(size_t id)
Undocumented in source. Be warned that the author may not have intended to support it.
Structs
Front
struct
Front
Undocumented in source.
Variables
empty
bool
empty
;
Undocumented in source.
front
Front
front
;
Undocumented in source.
input
string
input
;
Undocumented in source.
Meta
Source
See Implementation
dparsergen
generator
grammarebnf_lexer
functions
getTokenID
structs
Lexer
variables
allNonterminalTokens
endTokenID
startTokenID