2002-08-06 23:08:54 +00:00
|
|
|
%{
|
|
|
|
#include <stdio.h>
|
2002-08-07 01:45:13 +00:00
|
|
|
#include <string.h>
|
2002-08-06 23:08:54 +00:00
|
|
|
#include "yacc_parser.hh"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%%
|
|
|
|
|
|
|
|
\{ return OBRACE;
|
|
|
|
\} return EBRACE;
|
|
|
|
; return SEMICOLON;
|
|
|
|
- return DASH;
|
|
|
|
noaction |
|
|
|
|
execute |
|
|
|
|
iconify |
|
|
|
|
raise |
|
|
|
|
lower |
|
|
|
|
close |
|
|
|
|
toggleshade |
|
|
|
|
toggleomnipresent |
|
|
|
|
moveWindowUp |
|
|
|
|
moveWindowDown |
|
|
|
|
moveWindowLeft |
|
|
|
|
moveWindowRight |
|
|
|
|
resizeWindowWidth |
|
|
|
|
resizeWindowHeight |
|
|
|
|
toggleMaximizeFull |
|
|
|
|
toggleMaximizeVertical |
|
|
|
|
toggleMaximizeHorizontal |
|
|
|
|
sendToWorkspace |
|
|
|
|
nextWindow |
|
|
|
|
prevWindow |
|
|
|
|
nextWindowOnAllWorkspaces |
|
|
|
|
prevWindowOnAllWorkspaces |
|
|
|
|
nextWindowOnAllScreens |
|
|
|
|
prevWindowOnAllScreens |
|
|
|
|
nextWindowOfClass |
|
|
|
|
prevWindowOfClass |
|
|
|
|
nextWindowOfClassOnAllWorkspaces |
|
|
|
|
prevWindowOfClassOnAllWorkspaces |
|
|
|
|
changeWorkspace |
|
|
|
|
nextWorkspace |
|
|
|
|
prevWorkspace |
|
|
|
|
nextScreen |
|
|
|
|
prevScreen |
|
|
|
|
showRootMenu |
|
|
|
|
showWorkspaceMenu |
|
|
|
|
stringChain |
|
|
|
|
keyChain |
|
|
|
|
numberChain |
|
2002-08-07 01:45:13 +00:00
|
|
|
cancel yylval = (int) strdup(yytext); return ACTION;
|
2002-08-06 23:08:54 +00:00
|
|
|
Mod1 |
|
|
|
|
Mod2 |
|
|
|
|
Mod3 |
|
|
|
|
Mod4 |
|
|
|
|
Control |
|
2002-08-07 01:45:13 +00:00
|
|
|
Shift yylval = (int) strdup(yytext); return BINDING;
|
|
|
|
[0-9]+ yylval = (int) strdup(yytext); return NUMBER;
|
|
|
|
\".+\" yylval = (int) strdup(yytext); return QUOTES;
|
|
|
|
[a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD;
|
2002-08-06 23:08:54 +00:00
|
|
|
#.+\n /* ignore */
|
|
|
|
\n /* ignore */
|
|
|
|
[ \t]+ /* */
|
|
|
|
%%
|
|
|
|
|