We want to build a Dialect for Qt
I one case there is an ACCESS_SPECIFIER: public slots
class ABox : public QWidget
void Print(QString msg);
What is the syntax to identify "public slots" as a ACCESS_SPECIFIER
The following did not work
%ACCESS_SPECIFIER : public slots ;
This topic has been locked.
1 reply Latest Post - 2011-05-03T12:44:45Z by SystemAdmin
Pinned topic Parser configuration - keyword with space
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-05-03T12:44:45Z at 2011-05-03T12:44:45Z by SystemAdmin
SystemAdmin 110000D4XK4 PostsACCEPTED ANSWER
Re: Parser configuration - keyword with space2011-05-03T12:44:45Z in response to Pierre.BentkowskiHi,
This is probably far too late for you Pierre, but in case anyone else is interested this works:
%ACCESS_SPECIFIER : public ;
%COMMENT_MACRO : slots ;
The 1st line is usually already included. Basically the 2nd line says to treat "slots" as a comment. The "public" will still be recognized as an access specifier and will introduce the following declarations.