From: Eric M. L. <er...@si...> - 2002-01-12 16:19:23
|
Hi, Thanks for the example. I also found the dilemma with the label possibly throwing an error which I was able to fix. My concern with adding support for SLOT, is that it is a QT keyword. As I described below, it could really mess up other programs. As for making it an optional item, I'll have to see if it can be done without messing up other programs. Eric >>> Pieter Swinkels <pc...@ia...> seems to think that: >Hi, > >On my first post about the Qt slot keyword I got a reply from Eric Ludlam, >which he also sent to the mailing list. This mail was sent to him in reply. > >> I fixed a similarly thrown error in Semantic 1.4beta13. In what >> version of semantic did you find this? > >Hi, > >I am using the latest beta, ie, 1.4 beta 13. > >> As for dealing with the `slot' keyword, the parser is in c.bnf. > >The last few hours I delved a little bit deeper in the functionality that >Semantic provides. The documentation lead me to the c.bnf file. After some >hacking I seem to have circumvented the error message, however I cannot get >Semantic to recognize a protected slot member function as an ordinary >protected member function. Semantic takes some getting used to ... > >> Adding slot to the master language definition would mess up any >> attempt for a user to use the `slot' name in other situations, such >> as a variable name, function argument name, type, or what not. > >I tried to let Semantic recognize "protected slots" as "protected" but for >some reason or another it always evaluates different rules in the .bnf file >than I expect :) > >> Could you send me a short example C++ file that throws the below >> error? I'll fix the error at a minimum, and see about supporting >> an arbitrary keyword where you describe. >> >> Eric > >The attachment contains a small example header file that shows the error. > >Thanks! > >-- >With kind regards, > >Pieter. > >'When you're my age, you must look back and regret the things you did and not >the things you didn't do.' Michael Caine (1934 - ), actor. > >> >>> Pieter Swinkels seems to think that: >> >> > ECB or rather Semantic has problems parsing Qt C++ class definitions - Qt >> > is a C++ cross platform GUI toolkit. Qt defines a new keyword, viz. >> > "slot", that can be placed after the "public", "protected" or "private" >> > keyword in a class definition. When I try to load a header file with such >> > a class definition I get a >> > >> > "Wrong type argument: sequencep, label" >> > >> > error. The header file is loaded, but the ECB methods window is not >> > updated.< _______________________________________________ Ecb-list mailing list Ecb...@li... https://lists.sourceforge.net/lists/listinfo/ecb-list -- Eric Ludlam: za...@gn..., er...@si... Home: www.ultranet.com/~zappo Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |