Reworking of DoxygenTranslator with the Tokenizer, more Doxygen commands
implemented, beginning of the javaDoc convertor git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10670 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
da4e3cd374
commit
cc6db6eab6
1 changed files with 671 additions and 877 deletions
|
|
@ -67,11 +67,8 @@ TokenList::TokenList(string doxygenString){
|
|||
}
|
||||
|
||||
Token TokenList::peek(){
|
||||
list<Token>::iterator p = tokenList.begin();
|
||||
if(p != tokenList.end()){
|
||||
p++;
|
||||
Token returnedToken = (*p);
|
||||
p--;
|
||||
if(tokenListIterator!= tokenList.end()){
|
||||
Token returnedToken = (*tokenListIterator);
|
||||
return returnedToken;
|
||||
}
|
||||
else
|
||||
|
|
@ -79,15 +76,22 @@ Token TokenList::peek(){
|
|||
}
|
||||
|
||||
Token TokenList::next(){
|
||||
list<Token>::iterator p = tokenList.begin();
|
||||
if(p != tokenList.end()){
|
||||
p++;
|
||||
return (*p);
|
||||
if(tokenListIterator != tokenList.end()){
|
||||
Token returnedToken = (*tokenListIterator);
|
||||
tokenListIterator++;
|
||||
return (returnedToken);
|
||||
}
|
||||
else
|
||||
return Token(0, "");
|
||||
}
|
||||
|
||||
list<Token>::iterator TokenList::end(){
|
||||
return tokenList.end();
|
||||
}
|
||||
|
||||
list<Token>::iterator TokenList::current(){
|
||||
return tokenListIterator;
|
||||
}
|
||||
void TokenList::printList(){
|
||||
list<Token>::iterator p = tokenList.begin();
|
||||
int i = 1;
|
||||
|
|
@ -100,4 +104,11 @@ void TokenList::printList(){
|
|||
}
|
||||
}
|
||||
|
||||
TokenList:: ~TokenList(){}
|
||||
list<Token>::iterator TokenList::iteratorCopy(){
|
||||
list<Token>::iterator p = tokenListIterator;
|
||||
return p;
|
||||
}
|
||||
void TokenList::setIterator(list<Token>::iterator newPosition){
|
||||
tokenListIterator = newPosition;
|
||||
}
|
||||
TokenList:: ~TokenList(){}
|
||||
|
|
|
|||
Loading…
Reference in a new issue