dparsergen v0.1.0 (2023-05-07T14:44:42Z)
Dub
Repo
generateTokenGraph
dparsergen
generator
lexergenerator
Undocumented in source. Be warned that the author may not have intended to support it.
void
generateTokenGraph
(
const
EBNFGrammar
lexerGrammar
,
Graph
!(
DCharToken
,
LexerAction
)
g
,
CodepointSet
*[]
codepointSets
,
Symbol
symbol
,
Graph
!(
DCharToken
,
LexerAction
).
NodeID
start
,
Graph
!(
DCharToken
,
LexerAction
).
NodeID
end
,
EdgeFlags
edgeFlags
=
EdgeFlags.none
)
Meta
Source
See Implementation
dparsergen
generator
lexergenerator
classes
SubAutomaton
functions
codepointSetToCode
codepointSetToStr
createLexerCode
genGraphForNonterminal
generateStateMachine
generateTokenGraph
removeMinimalMatchEdges
restrictToAssumedCodepoints
structs
DCharToken
LexerAction