c2d.tokutil

Undocumented in source.

Members

Aliases

TokenIterator
alias TokenIterator = DListIterator!(c2d.tokenizer.Token)
Undocumented in source.
TokenList
alias TokenList = DList!(c2d.tokenizer.Token)

///////////////////////////////////////////////////////////////////////////

_wa2
alias _wa2 = object.AssociativeArray!(string, const(TokenList))
Undocumented in source.

Enums

MixinMode
enum MixinMode
Undocumented in source.

Functions

_replaceTokenSequence
int _replaceTokenSequence(TokenList srctoken, string[] search, RTYPE[] replace, bool checkBrackets)
Undocumented in source. Be warned that the author may not have intended to support it.
advanceToClosingBracket
bool advanceToClosingBracket(TokenIterator it, TokenIterator stopIt)

///////////////////////////////////////////////////////////////////////////

advanceToClosingBracket
bool advanceToClosingBracket(TokenIterator it)
Undocumented in source. Be warned that the author may not have intended to support it.
checkOperator
void checkOperator(TokenIterator tokIt)
Undocumented in source. Be warned that the author may not have intended to support it.
checkToken
void checkToken(TokenIterator tokIt, int type, bool skipPP)
Undocumented in source. Be warned that the author may not have intended to support it.
comment_line
void comment_line(TokenIterator tokIt)
Undocumented in source. Be warned that the author may not have intended to support it.
compareTokenList
bool compareTokenList(TokenIterator start1, TokenIterator end1, TokenIterator start2, TokenIterator end2)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTokenList
TokenList copyTokenList(TokenIterator start, TokenIterator end, bool cloneTokens)

///////////////////////////////////////////////////////////////////////////

copyTokenList
TokenList copyTokenList(TokenRange range, bool cloneTokens)
Undocumented in source. Be warned that the author may not have intended to support it.
copyTokenList
TokenList copyTokenList(TokenList tokenList, bool cloneTokens)
Undocumented in source. Be warned that the author may not have intended to support it.
createMixinFunction
string createMixinFunction(TokenList tokList, MixinMode mixinMode)
Undocumented in source. Be warned that the author may not have intended to support it.
createReplacementTokenList
TokenList createReplacementTokenList(RTYPE[] replace, TokenRange match, SubMatch[] submatch)
Undocumented in source. Be warned that the author may not have intended to support it.
createToken
Token createToken(string pretext, string text, int type, int lineno)

///////////////////////////////////////////////////////////////////////////

createToken
Token createToken(Token tok)
Undocumented in source. Be warned that the author may not have intended to support it.
expandDefine
TokenIterator expandDefine(TokenIterator it, TokenList define, void delegate(bool, TokenList) expandList)
Undocumented in source. Be warned that the author may not have intended to support it.
expandPPdefines
void expandPPdefines(TokenList srctokens, TokenList[string] defines, MixinMode mixinMode)
Undocumented in source. Be warned that the author may not have intended to support it.
findSubmatch
int findSubmatch(SubMatch[] submatch, string ident)

////////////////////////////////////////////////////////////////////

findTokenSequence
bool findTokenSequence(TokenIterator it, string[] search, bool checkBracketsSearch, bool checkBracketsMatch, string stopText, TokenRange match, SubMatch[] submatch)

////////////////////////////////////////////////////////////////////

identifierToKeywords
void identifierToKeywords(TokenIterator start, TokenIterator end)
Undocumented in source. Be warned that the author may not have intended to support it.
identifierToKeywords
void identifierToKeywords(TokenList list)
Undocumented in source. Be warned that the author may not have intended to support it.
insertTokenBefore
void insertTokenBefore(TokenIterator it, Token tok, string tokpretext)
Undocumented in source. Be warned that the author may not have intended to support it.
insertTokenList
TokenIterator insertTokenList(TokenIterator insBefore, TokenList tokenList)
Undocumented in source. Be warned that the author may not have intended to support it.
invokeMixin
void invokeMixin(TokenIterator it, MixinMode mixinMode)
Undocumented in source. Be warned that the author may not have intended to support it.
isBracketPair
bool isBracketPair(dchar ch1, dchar ch2)
Undocumented in source. Be warned that the author may not have intended to support it.
isClosingBracket
bool isClosingBracket(int type)

///////////////////////////////////////////////////////////////////////////

isCommentToken
bool isCommentToken(Token tok, bool checkPP)
Undocumented in source. Be warned that the author may not have intended to support it.
isOpeningBracket
bool isOpeningBracket(int type)
Undocumented in source. Be warned that the author may not have intended to support it.
nextToken
void nextToken(TokenIterator tokIt, bool skipPP)
Undocumented in source. Be warned that the author may not have intended to support it.
regexReplacePPdefines
void regexReplacePPdefines(TokenList srctokens, string[string] defines)
Undocumented in source. Be warned that the author may not have intended to support it.
reindentList
void reindentList(TokenIterator start, TokenIterator end, int indent, int tabsize)

///////////////////////////////////////////////////////////////////////////

reindentList
void reindentList(TokenList tokenList, int indent, int tabsize)
Undocumented in source. Be warned that the author may not have intended to support it.
removeFisFis
TokenList removeFisFis(TokenList tokens)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceArgument
void replaceArgument(TokenIterator defIt, TokenList list, void delegate(bool, TokenList) expandList)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceTokenSequence
int replaceTokenSequence(TokenList srctoken, string[] search, string[] replace, bool checkBrackets)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceTokenSequence
int replaceTokenSequence(TokenList srctoken, string search, string replace, bool checkBrackets)
Undocumented in source. Be warned that the author may not have intended to support it.
retreatToOpeningBracket
bool retreatToOpeningBracket(TokenIterator it, TokenIterator stopIt)
Undocumented in source. Be warned that the author may not have intended to support it.
retreatToOpeningBracket
bool retreatToOpeningBracket(TokenIterator it)
Undocumented in source. Be warned that the author may not have intended to support it.
scanArgument
TokenList scanArgument(TokenIterator it)

////////////////////////////////////////////////////////////////////

scanText
TokenList scanText(string text, int lineno, bool combinePP)
Undocumented in source. Be warned that the author may not have intended to support it.
scanTextArray
void scanTextArray(TYPE[] tokens, string text, int lineno, bool combinePP)
Undocumented in source. Be warned that the author may not have intended to support it.
skipComments
void skipComments(TokenIterator tokIt, bool skipPP)
Undocumented in source. Be warned that the author may not have intended to support it.
testDefine
string testDefine(string txt, TokenList[string] defines)

////////////////////////////////////////////////////////////////////

testMixin
string testMixin(string txt, TokenList[string] mixins)

////////////////////////////////////////////////////////////////////

testReplace
string testReplace(string txt, TokenList[string] defines)

////////////////////////////////////////////////////////////////////

tokenListToString
string tokenListToString(TokenIterator start, TokenIterator end, bool checkSpaceBetweenIdentifiers, bool normalizePreText)
Undocumented in source. Be warned that the author may not have intended to support it.
tokenListToString
string tokenListToString(TokenList tokenList, bool checkSpaceBetweenIdentifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
tokensToIdentifier
string tokensToIdentifier(TokenIterator start, TokenIterator end)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

scanAny
void scanAny(TL tokenList, string text, int lineno, bool combinePP)

///////////////////////////////////////////////////////////////////////////

Structs

SubMatch
struct SubMatch
Undocumented in source.
TokenRange
struct TokenRange
Undocumented in source.

Meta