Commit Graph

24 Commits

Author SHA1 Message Date
Daniel Marjamäki 0a73591c5c Refactoring : Removed the function 'findtoken' 2008-12-20 16:33:14 +00:00
Reijo Tomperi e272630604 Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
Nicolas Le Cam a5fa323a0b Formatting: uniformize end of lines. 2008-12-18 21:28:57 +00:00
Daniel Marjamäki dd853f0d59 token : fixed so that TOKEN::_previous is updated when deleting tokens 2008-12-17 19:20:11 +00:00
Daniel Marjamäki e853f28912 token : minor refactoring to TOKEN::insertToken. Give the linenr and fileIndex the same values as this token. It's better than nothing 2008-12-16 17:05:43 +00:00
Nicolas Le Cam 661068bcd4 Formatting: uniformize end of lines. 2008-12-13 11:39:36 +00:00
Reijo Tomperi 4e8e35f666 TOKEN: Patterns like "if ; !!else" are now possible 2008-12-12 21:00:25 +00:00
Reijo Tomperi cf2262aaf0 Project file updated (testtoken.cpp was missing), added TOKEN::printOut() function to help with debugging. 2008-12-09 22:03:05 +00:00
Reijo Tomperi 2ef955eb65 Refactoring: Moved token creation and token deletion into TOKEN class. Added previous() (not tested yet) 2008-12-09 17:31:04 +00:00
Daniel Marjamäki f839b11c11 token : Updated the "Match" function so it can check the variable id 2008-12-09 07:25:44 +00:00
Nicolas Le Cam aaabacfe87 Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
Nicolas Le Cam eb80c9786f Revert revisions 627 and 628 2008-12-08 23:41:34 +00:00
Nicolas Le Cam e8d2c7cfb3 Formatting: uniformize end of lines (part 2) 2008-12-08 23:10:13 +00:00
Nicolas Le Cam 625b77ec33 Formatting: uniformize end of lines. 2008-12-08 23:06:19 +00:00
Reijo Tomperi 440203bd5c Refactoring: Rest of the public variables in TOKEN moved to private area. 2008-12-08 22:02:37 +00:00
Reijo Tomperi 51024235a3 Refactoring: TOKEN::next renamed to _next, getter and setter functions for it added next() and next(TOKEN*). 2008-12-08 21:49:05 +00:00
Reijo Tomperi 25847fdec4 Refactoring: TOKEN::varId was moved from public to private 2008-12-08 17:45:55 +00:00
Daniel Marjamäki 3619552e38 Variable Id : First simple implementation 2008-12-08 17:28:44 +00:00
Reijo Tomperi c958482196 TOKEN: Match() function improved, %any% and const|volatile kind of patterns are now accepted. Simplified comparing on tokenize.cpp. 2008-12-04 21:48:15 +00:00
Daniel Marjamäki b179083788 token: refactoring the 'isStandardType' a little 2008-11-26 07:22:34 +00:00
Daniel Marjamäki bc267bbca5 TOKEN: Refactoring the 'str' member variable 2008-11-24 19:38:08 +00:00
Reijo Tomperi a6ad4045d4 Refactoring: IsName() and IsNumber() are no longer static and they don't take a parameter. 2008-11-23 12:21:40 +00:00
Reijo Tomperi 0b2e7a0ef3 Refactoring: at() changed to tokAt() and getstr() changed to strAt() 2008-11-23 10:09:16 +00:00
Reijo Tomperi 3ba83b6620 Refactoring: token.* files added, Some functions from Tokenizer moved under TOKEN. Renamed few functions, like gettok() -> at(), combineWithNext() and deleteNext() are also new
names for old functions. Usage was gettok( tok, 2 ), but now it is tok->at( 2 ).
2008-11-22 22:49:14 +00:00