|
From: Hans-Peter D. <DrD...@ao...> - 2009-01-15 23:08:55
|
Michalis Kamburelis schrieb: >> 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 :) We also can wait for the FPC parser/grammar, compatible with D2009. I'd prefer to use the FPC parser immediately, as seems to be done in FPDoc, but I'm not sure where that parser resides, and how it can be used outside of FPC. > 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). More extensions to the parser are required, new keywords like "generic" and the related syntax, etc. > 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...). Thanks for the hint :-) DoDi |