|
From: Michalis K. <mic...@gm...> - 2009-01-15 18:27:12
|
Hans-Peter Diettrich wrote: > SourceForge.net schrieb: > >> In Delphi 2009, Generics where introduced using a syntax like >> >> type TMyList = TObjectList<MyClass> >> >> This creates an TObjectList descendant using Items of MyClass. >> >> Also you may inherit like >> >> type TMyList = class(TObjectList<MyClass>) {...} end; >> >> Unfortunately, PasDoc ist not able to parse these files because of >> the "<" and ">". Therefore, the whole file is not included in the >> documentation. All that is needed is to treat "<" and ">" as part of >> the class-name. > > You're welcome to provide the according grammar, so that the parser can > be updated accordingly. Then we should agree about the usage of the new > items, so that the generators can be updated. > >> Hopefully, this will be fixed soon. > > This depends... > > D2009 has more extensions to the grammar (local types...), for which a > grammar is required. PasDoc2 already has provisions to handle such > extensions, but any implementation deserves a grammar in the first > place, followed by a decision about the representation of the added > elements. > > DoDi > Indeed, contributions to Delphi 2009 syntax are welcome. I don't own any Delphi now, so I can only offer applying the patch if someone will submit one :) For starters, just to make it basically parsed, I would even accept a patch that parses it dumbly and places class name = "TObjectList<MyClass>". That is, the simplest approach to just treat whole "TObjectList<MyClass>" as a single identifier, without linking it to the generic TObjectList. Of course, a better patch would be most welcome ---I'm just saying that any crude solution will be accepted in the meantime (as long as it doesn't break any normal parsing of course). DoDi: remember that bug submitters do not have to be subscribed to mailing list, so it's best to answer by adding a comment to the bug. (In this case Thomas is subscribed, just mentioning...). Michalis |