i3
|
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
#include "all.h"
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | owindow |
union | YYSTYPE |
union | yyalloc |
Defines | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.4.3" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | YYLSP_NEEDED 0 |
#define | yyparse cmdyyparse |
#define | yylex cmdyylex |
#define | yyerror cmdyyerror |
#define | yylval cmdyylval |
#define | yychar cmdyychar |
#define | yydebug cmdyydebug |
#define | yynerrs cmdyynerrs |
#define | HANDLE_EMPTY_MATCH |
When the command did not include match criteria (!), we use the currently focused command. | |
#define | YYDEBUG 1 |
#define | YYERROR_VERBOSE 1 |
#define | YYTOKEN_TABLE 0 |
#define | YYTOKENTYPE |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | yystype YYSTYPE |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSIZE_T unsigned int |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YY_(msgid) msgid |
#define | YYUSE(e) ((void) (e)) |
#define | YYID(n) (n) |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC malloc |
#define | YYFREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY(To, From, Count) |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYFINAL 6 |
#define | YYLAST 99 |
#define | YYNTOKENS 64 |
#define | YYNNTS 41 |
#define | YYNRULES 95 |
#define | YYNSTATES 128 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 311 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -49 |
#define | YYTABLE_NINF -1 |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrorlab |
#define | YYFAIL goto yyerrlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YYLEX yylex (context) |
#define | YYFPRINTF fprintf |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
Typedefs | |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef struct owindow | owindow |
typedef union YYSTYPE | YYSTYPE |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
Enumerations | |
enum | yytokentype { NUMBER = 258, WORD = 259, STR = 260, STR_NG = 261, HEX = 262, OUTPUT = 263, TOKBINDCODE = 264, TOKTERMINAL = 265, TOKCOMMENT = 266, TOKFONT = 267, TOKBINDSYM = 268, MODIFIER = 269, TOKCONTROL = 270, TOKSHIFT = 271, TOKFLOATING_MODIFIER = 272, QUOTEDSTRING = 273, TOKWORKSPACE = 274, TOKOUTPUT = 275, TOKASSIGN = 276, TOKSET = 277, TOKIPCSOCKET = 278, TOKRESTARTSTATE = 279, TOKEXEC = 280, TOKEXEC_ALWAYS = 281, TOKSINGLECOLOR = 282, TOKCOLOR = 283, TOKARROW = 284, TOKMODE = 285, TOK_ORIENTATION = 286, TOK_HORIZ = 287, TOK_VERT = 288, TOK_AUTO = 289, TOK_WORKSPACE_LAYOUT = 290, TOKNEWWINDOW = 291, TOK_NORMAL = 292, TOK_NONE = 293, TOK_1PIXEL = 294, TOKFOCUSFOLLOWSMOUSE = 295, TOK_FORCE_FOCUS_WRAPPING = 296, TOKWORKSPACEBAR = 297, TOK_DEFAULT = 298, TOK_STACKING = 299, TOK_TABBED = 300, TOKSTACKLIMIT = 301, TOK_POPUP_DURING_FULLSCREEN = 302, TOK_IGNORE = 303, TOK_LEAVE_FULLSCREEN = 304, TOK_FOR_WINDOW = 305, TOK_MARK = 306, TOK_CLASS = 307, TOK_ID = 308, TOK_CON_ID = 309, TOK_TITLE = 310, NUMBER = 258, WORD = 259, STR = 260, STR_NG = 261, HEX = 262, OUTPUT = 263, TOKBINDCODE = 264, TOKTERMINAL = 265, TOKCOMMENT = 266, TOKFONT = 267, TOKBINDSYM = 268, MODIFIER = 269, TOKCONTROL = 270, TOKSHIFT = 271, TOKFLOATING_MODIFIER = 272, QUOTEDSTRING = 273, TOKWORKSPACE = 274, TOKOUTPUT = 275, TOKASSIGN = 276, TOKSET = 277, TOKIPCSOCKET = 278, TOKRESTARTSTATE = 279, TOKEXEC = 280, TOKEXEC_ALWAYS = 281, TOKSINGLECOLOR = 282, TOKCOLOR = 283, TOKARROW = 284, TOKMODE = 285, TOK_ORIENTATION = 286, TOK_HORIZ = 287, TOK_VERT = 288, TOK_AUTO = 289, TOK_WORKSPACE_LAYOUT = 290, TOKNEWWINDOW = 291, TOK_NORMAL = 292, TOK_NONE = 293, TOK_1PIXEL = 294, TOKFOCUSFOLLOWSMOUSE = 295, TOK_FORCE_FOCUS_WRAPPING = 296, TOKWORKSPACEBAR = 297, TOK_DEFAULT = 298, TOK_STACKING = 299, TOK_TABBED = 300, TOKSTACKLIMIT = 301, TOK_POPUP_DURING_FULLSCREEN = 302, TOK_IGNORE = 303, TOK_LEAVE_FULLSCREEN = 304, TOK_FOR_WINDOW = 305, TOK_MARK = 306, TOK_CLASS = 307, TOK_ID = 308, TOK_CON_ID = 309, TOK_TITLE = 310, TOK_EXEC = 258, TOK_EXIT = 259, TOK_RELOAD = 260, TOK_RESTART = 261, TOK_KILL = 262, TOK_WINDOW = 263, TOK_CLIENT = 264, TOK_FULLSCREEN = 265, TOK_GLOBAL = 266, TOK_LAYOUT = 267, TOK_DEFAULT = 268, TOK_STACKED = 269, TOK_TABBED = 270, TOK_BORDER = 271, TOK_NORMAL = 272, TOK_NONE = 273, TOK_1PIXEL = 274, TOK_MODE = 275, TOK_TILING = 276, TOK_FLOATING = 277, TOK_MODE_TOGGLE = 278, TOK_ENABLE = 279, TOK_DISABLE = 280, TOK_WORKSPACE = 281, TOK_TOGGLE = 282, TOK_FOCUS = 283, TOK_MOVE = 284, TOK_OPEN = 285, TOK_NEXT = 286, TOK_PREV = 287, TOK_SPLIT = 288, TOK_HORIZONTAL = 289, TOK_VERTICAL = 290, TOK_UP = 291, TOK_DOWN = 292, TOK_LEFT = 293, TOK_RIGHT = 294, TOK_PARENT = 295, TOK_CHILD = 296, TOK_APPEND_LAYOUT = 297, TOK_MARK = 298, TOK_RESIZE = 299, TOK_GROW = 300, TOK_SHRINK = 301, TOK_PX = 302, TOK_OR = 303, TOK_PPT = 304, TOK_NOP = 305, TOK_CLASS = 306, TOK_ID = 307, TOK_CON_ID = 308, TOK_TITLE = 309, STR = 310, NUMBER = 311, TOK_EXEC = 258, TOK_EXIT = 259, TOK_RELOAD = 260, TOK_RESTART = 261, TOK_KILL = 262, TOK_WINDOW = 263, TOK_CLIENT = 264, TOK_FULLSCREEN = 265, TOK_GLOBAL = 266, TOK_LAYOUT = 267, TOK_DEFAULT = 268, TOK_STACKED = 269, TOK_TABBED = 270, TOK_BORDER = 271, TOK_NORMAL = 272, TOK_NONE = 273, TOK_1PIXEL = 274, TOK_MODE = 275, TOK_TILING = 276, TOK_FLOATING = 277, TOK_MODE_TOGGLE = 278, TOK_ENABLE = 279, TOK_DISABLE = 280, TOK_WORKSPACE = 281, TOK_TOGGLE = 282, TOK_FOCUS = 283, TOK_MOVE = 284, TOK_OPEN = 285, TOK_NEXT = 286, TOK_PREV = 287, TOK_SPLIT = 288, TOK_HORIZONTAL = 289, TOK_VERTICAL = 290, TOK_UP = 291, TOK_DOWN = 292, TOK_LEFT = 293, TOK_RIGHT = 294, TOK_PARENT = 295, TOK_CHILD = 296, TOK_APPEND_LAYOUT = 297, TOK_MARK = 298, TOK_RESIZE = 299, TOK_GROW = 300, TOK_SHRINK = 301, TOK_PX = 302, TOK_OR = 303, TOK_PPT = 304, TOK_NOP = 305, TOK_CLASS = 306, TOK_ID = 307, TOK_CON_ID = 308, TOK_TITLE = 309, STR = 310, NUMBER = 311 } |
Functions | |
int | cmdyylex (struct context *context) |
int | cmdyyparse (void) |
int | cmdyylex_destroy (void) |
YY_BUFFER_STATE | cmdyy_scan_string (const char *) |
static | TAILQ_HEAD (owindows_head, owindow) |
int | cmdyywrap () |
char * | parse_cmd (const char *new) |
static void | yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep) |
static void | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep) |
static void | yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
static void | yy_reduce_print (YYSTYPE *yyvsp, int yyrule) |
static YYSIZE_T | yystrlen (char *yystr) const |
static char * | yystpcpy (char *yydest, const char *yysrc) |
static YYSIZE_T | yytnamerr (char *yyres, const char *yystr) |
static YYSIZE_T | yysyntax_error (char *yyresult, int yystate, int yychar) |
static void | yydestruct (char *yymsg, int yytype, YYSTYPE *yyvaluep) const |
int | yyparse () |
Variables | |
FILE * | cmdyyin = (FILE *) 0 |
static struct context * | context |
static Match | current_match |
static const yytype_uint8 | yytranslate [] |
static const yytype_uint8 | yyprhs [] |
static const yytype_int8 | yyrhs [] |
static const yytype_uint16 | yyrline [] |
static const char *const | yytname [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int8 | yydefgoto [] |
static const yytype_int8 | yypact [] |
static const yytype_int8 | yypgoto [] |
static const yytype_uint8 | yytable [] |
static const yytype_uint8 | yycheck [] |
static const yytype_uint8 | yystos [] |
int | yydebug |
int | yychar |
YYSTYPE | yylval |
int | yynerrs |
#define HANDLE_EMPTY_MATCH |
do { \ if (match_is_empty(¤t_match)) { \ owindow *ow = smalloc(sizeof(owindow)); \ ow->con = focused; \ TAILQ_INIT(&owindows); \ TAILQ_INSERT_TAIL(&owindows, ow, owindows); \ } \ } while (0)
When the command did not include match criteria (!), we use the currently focused command.
Do not confuse this case with a command which included criteria but which did not match any windows. This macro has to be called in every command.
Definition at line 103 of file cmdparse.tab.c.
#define YY_ | ( | msgid | ) | msgid |
Definition at line 359 of file cmdparse.tab.c.
Referenced by yysyntax_error().
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
Definition at line 905 of file cmdparse.tab.c.
#define YY_REDUCE_PRINT | ( | Rule | ) |
do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0))
Definition at line 1065 of file cmdparse.tab.c.
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0))
Definition at line 1027 of file cmdparse.tab.c.
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0))
Definition at line 932 of file cmdparse.tab.c.
Referenced by yydestruct().
#define YYABORT goto yyabortlab |
Definition at line 825 of file cmdparse.tab.c.
#define YYACCEPT goto yyacceptlab |
Definition at line 824 of file cmdparse.tab.c.
#define YYBACKUP | ( | Token, | |
Value | |||
) |
do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0))
Definition at line 846 of file cmdparse.tab.c.
#define YYBISON 1 |
Definition at line 45 of file cmdparse.tab.c.
#define YYBISON_VERSION "2.4.3" |
Definition at line 48 of file cmdparse.tab.c.
#define yychar cmdyychar |
Definition at line 70 of file cmdparse.tab.c.
#define yyclearin (yychar = YYEMPTY) |
Definition at line 820 of file cmdparse.tab.c.
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0))
Definition at line 485 of file cmdparse.tab.c.
#define YYDEBUG 1 |
Definition at line 194 of file cmdparse.tab.c.
#define yydebug cmdyydebug |
Definition at line 71 of file cmdparse.tab.c.
#define YYDPRINTF | ( | Args | ) |
Definition at line 926 of file cmdparse.tab.c.
#define YYEMPTY (-2) |
Definition at line 821 of file cmdparse.tab.c.
#define YYEOF 0 |
Definition at line 822 of file cmdparse.tab.c.
#define YYERRCODE 256 |
Definition at line 865 of file cmdparse.tab.c.
#define yyerrok (yyerrstatus = 0) |
Definition at line 819 of file cmdparse.tab.c.
#define yyerror cmdyyerror |
Definition at line 68 of file cmdparse.tab.c.
#define YYERROR goto yyerrorlab |
Definition at line 826 of file cmdparse.tab.c.
#define YYERROR_VERBOSE 1 |
Definition at line 202 of file cmdparse.tab.c.
#define YYFAIL goto yyerrlab |
Definition at line 836 of file cmdparse.tab.c.
#define YYFINAL 6 |
Definition at line 515 of file cmdparse.tab.c.
#define YYFPRINTF fprintf |
Definition at line 923 of file cmdparse.tab.c.
Referenced by yy_reduce_print(), yy_stack_print(), and yy_symbol_print().
#define YYFREE free |
Definition at line 448 of file cmdparse.tab.c.
#define YYID | ( | n | ) | (n) |
Definition at line 372 of file cmdparse.tab.c.
#define YYINITDEPTH 200 |
Definition at line 1084 of file cmdparse.tab.c.
#define YYLAST 99 |
Definition at line 517 of file cmdparse.tab.c.
Referenced by yysyntax_error().
#define yylex cmdyylex |
Definition at line 67 of file cmdparse.tab.c.
#define YYLEX yylex (context) |
Definition at line 915 of file cmdparse.tab.c.
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0))
Definition at line 874 of file cmdparse.tab.c.
#define YYLSP_NEEDED 0 |
Definition at line 63 of file cmdparse.tab.c.
Definition at line 69 of file cmdparse.tab.c.
#define YYMALLOC malloc |
Definition at line 441 of file cmdparse.tab.c.
#define YYMAXDEPTH 10000 |
Definition at line 1095 of file cmdparse.tab.c.
#define YYMAXUTOK 311 |
Definition at line 530 of file cmdparse.tab.c.
#define yynerrs cmdyynerrs |
Definition at line 72 of file cmdparse.tab.c.
#define YYNNTS 41 |
Definition at line 522 of file cmdparse.tab.c.
#define YYNRULES 95 |
Definition at line 524 of file cmdparse.tab.c.
#define YYNSTATES 128 |
Definition at line 526 of file cmdparse.tab.c.
#define YYNTOKENS 64 |
Definition at line 520 of file cmdparse.tab.c.
Referenced by yy_symbol_print(), yy_symbol_value_print(), and yysyntax_error().
#define YYPACT_NINF -49 |
Definition at line 739 of file cmdparse.tab.c.
Referenced by yysyntax_error().
int yyparse cmdyyparse |
Definition at line 66 of file cmdparse.tab.c.
Referenced by parse_file().
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
#define YYPULL 1 |
Definition at line 60 of file cmdparse.tab.c.
#define YYPURE 0 |
Definition at line 54 of file cmdparse.tab.c.
#define YYPUSH 0 |
Definition at line 57 of file cmdparse.tab.c.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 844 of file cmdparse.tab.c.
#define YYRHSLOC | ( | Rhs, | |
K | |||
) | ((Rhs)[K]) |
Definition at line 872 of file cmdparse.tab.c.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 349 of file cmdparse.tab.c.
Referenced by yysyntax_error().
#define YYSIZE_T unsigned int |
Definition at line 345 of file cmdparse.tab.c.
Referenced by yystrlen(), yysyntax_error(), and yytnamerr().
#define YYSKELETON_NAME "yacc.c" |
Definition at line 51 of file cmdparse.tab.c.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 427 of file cmdparse.tab.c.
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 430 of file cmdparse.tab.c.
#define YYSTACK_BYTES | ( | N | ) |
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM)
Definition at line 474 of file cmdparse.tab.c.
#define YYSTACK_FREE YYFREE |
Definition at line 428 of file cmdparse.tab.c.
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 470 of file cmdparse.tab.c.
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0))
Definition at line 501 of file cmdparse.tab.c.
#define yystype YYSTYPE |
Definition at line 293 of file cmdparse.tab.c.
#define YYSTYPE_IS_DECLARED 1 |
Definition at line 294 of file cmdparse.tab.c.
#define YYSTYPE_IS_TRIVIAL 1 |
Definition at line 292 of file cmdparse.tab.c.
#define YYTABLE_NINF -1 |
Definition at line 771 of file cmdparse.tab.c.
#define YYTERROR 1 |
Definition at line 864 of file cmdparse.tab.c.
Referenced by yysyntax_error().
#define YYTOKEN_TABLE 0 |
Definition at line 207 of file cmdparse.tab.c.
#define YYTOKENTYPE |
Definition at line 213 of file cmdparse.tab.c.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 532 of file cmdparse.tab.c.
Referenced by yysyntax_error().
#define YYUNDEFTOK 2 |
Definition at line 529 of file cmdparse.tab.c.
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 365 of file cmdparse.tab.c.
Referenced by yy_symbol_value_print(), and yydestruct().
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 112 of file cmdparse.tab.c.
typedef short int yytype_int16 |
Definition at line 332 of file cmdparse.tab.c.
typedef short int yytype_int8 |
Definition at line 320 of file cmdparse.tab.c.
typedef unsigned short int yytype_uint16 |
Definition at line 326 of file cmdparse.tab.c.
typedef unsigned char yytype_uint8 |
Definition at line 311 of file cmdparse.tab.c.
enum yytokentype |
Definition at line 216 of file cmdparse.tab.c.
YY_BUFFER_STATE cmdyy_scan_string | ( | const char * | ) |
Referenced by parse_cmd().
int cmdyylex | ( | struct context * | context | ) |
int cmdyylex_destroy | ( | void | ) |
Definition at line 2641 of file cmdparse.yy.c.
References cmdyy_delete_buffer(), cmdyyfree(), cmdyypop_buffer_state(), yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_globals(), yy_start_stack, and yy_state_buf.
Referenced by parse_cmd().
int cmdyyparse | ( | void | ) |
Referenced by parse_cmd().
int cmdyywrap | ( | void | ) |
Definition at line 157 of file cmdparse.tab.c.
char* parse_cmd | ( | const char * | new | ) |
Definition at line 161 of file cmdparse.tab.c.
References cmdyy_scan_string(), cmdyylex_destroy(), cmdyyparse(), context::compact_error, context::filename, context::first_column, FREE, context::line_copy, LOG, match_init(), and scalloc().
Referenced by handle_key_press(), IPC_HANDLER(), and run_assignments().
static TAILQ_HEAD | ( | owindows_head | , |
owindow | |||
) | [static] |
Definition at line 131 of file cmdparse.tab.c.
References context::compact_error, ELOG, context::first_column, context::last_column, context::line_copy, and sstrdup().
static void yy_reduce_print | ( | YYSTYPE * | yyvsp, |
int | yyrule | ||
) | [static] |
Definition at line 1044 of file cmdparse.tab.c.
References yy_symbol_print(), YYFPRINTF, yyprhs, yyr2, yyrhs, and yyrline.
static void yy_stack_print | ( | yytype_int16 * | yybottom, |
yytype_int16 * | yytop | ||
) | [static] |
Definition at line 1013 of file cmdparse.tab.c.
References YYFPRINTF.
static void yy_symbol_print | ( | FILE * | yyoutput, |
int | yytype, | ||
YYSTYPE const * const | yyvaluep | ||
) | [static] |
Definition at line 987 of file cmdparse.tab.c.
References yy_symbol_value_print(), YYFPRINTF, YYNTOKENS, and yytname.
Referenced by yy_reduce_print().
static void yy_symbol_value_print | ( | FILE * | yyoutput, |
int | yytype, | ||
YYSTYPE const * const | yyvaluep | ||
) | [static] |
Definition at line 955 of file cmdparse.tab.c.
References YYNTOKENS, and YYUSE.
Referenced by yy_symbol_print().
static void yydestruct | ( | char * | yymsg, |
int | yytype, | ||
YYSTYPE * | yyvaluep | ||
) | const [static] |
Definition at line 1322 of file cmdparse.tab.c.
References YY_SYMBOL_PRINT, and YYUSE.
int yyparse | ( | void | ) |
static char* yystpcpy | ( | char * | yydest, |
const char * | yysrc | ||
) | [static] |
Definition at line 1137 of file cmdparse.tab.c.
Referenced by yysyntax_error(), and yytnamerr().
static YYSIZE_T yystrlen | ( | char * | yystr | ) | const [static] |
Definition at line 1113 of file cmdparse.tab.c.
References YYSIZE_T.
Referenced by yysyntax_error(), and yytnamerr().
static YYSIZE_T yysyntax_error | ( | char * | yyresult, |
int | yystate, | ||
int | yychar | ||
) | [static] |
Definition at line 1209 of file cmdparse.tab.c.
References YY_, yycheck, YYLAST, YYNTOKENS, yypact, YYPACT_NINF, YYSIZE_MAXIMUM, YYSIZE_T, yystpcpy(), yystrlen(), YYTERROR, yytname, yytnamerr(), and YYTRANSLATE.
static YYSIZE_T yytnamerr | ( | char * | yyres, |
const char * | yystr | ||
) | [static] |
Definition at line 1162 of file cmdparse.tab.c.
References YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
FILE * cmdyyin = (FILE *) 0 |
Definition at line 356 of file cmdparse.yy.c.
Referenced by cmdyyget_in(), cmdyyset_in(), and yy_init_globals().
Definition at line 119 of file cmdparse.tab.c.
Match current_match [static] |
Definition at line 120 of file cmdparse.tab.c.
int yychar |
Definition at line 1359 of file cmdparse.tab.c.
const yytype_uint8 yycheck[] [static] |
{ 20, 0, 3, 4, 5, 6, 7, 34, 35, 10, 58, 12, 55, 31, 32, 16, 11, 24, 25, 20, 27, 22, 13, 14, 15, 26, 55, 28, 29, 30, 8, 9, 33, 45, 46, 62, 63, 55, 17, 18, 19, 42, 43, 44, 21, 22, 23, 55, 27, 50, 55, 36, 37, 38, 39, 55, 60, 43, 57, 36, 37, 38, 39, 40, 41, 51, 52, 53, 54, 43, 7, 61, 60, 59, 26, 55, 60, 51, 52, 53, 54, 56, 102, 56, 36, 37, 38, 39, 60, 60, 55, 55, 55, 55, 55, 48, 47, 53, 104, 49 }
Definition at line 786 of file cmdparse.tab.c.
Referenced by yysyntax_error().
int yydebug |
Definition at line 1073 of file cmdparse.tab.c.
const yytype_uint8 yydefact[] [static] |
{ 5, 7, 0, 3, 0, 0, 1, 5, 0, 38, 39, 40, 51, 59, 0, 0, 0, 0, 0, 41, 0, 57, 0, 0, 0, 0, 0, 4, 16, 18, 19, 21, 20, 27, 28, 26, 29, 30, 31, 32, 22, 25, 24, 23, 33, 35, 34, 36, 0, 0, 0, 0, 0, 0, 10, 2, 37, 52, 53, 50, 60, 58, 79, 80, 81, 78, 71, 72, 73, 74, 70, 95, 67, 68, 69, 66, 54, 55, 56, 45, 46, 47, 91, 92, 93, 94, 48, 49, 43, 44, 42, 0, 75, 62, 64, 63, 65, 61, 77, 82, 89, 90, 0, 83, 0, 0, 0, 0, 0, 0, 8, 6, 9, 76, 85, 17, 14, 11, 13, 12, 15, 0, 87, 86, 0, 84, 0, 88 }
Definition at line 710 of file cmdparse.tab.c.
const yytype_int8 yydefgoto[] [static] |
{ -1, 2, 3, 4, 5, 111, 53, 54, 27, 28, 29, 30, 31, 32, 33, 88, 89, 34, 59, 35, 36, 37, 61, 38, 97, 39, 75, 40, 70, 41, 42, 43, 65, 44, 45, 46, 122, 125, 102, 90, 47 }
Definition at line 728 of file cmdparse.tab.c.
Definition at line 1362 of file cmdparse.tab.c.
int yynerrs |
Definition at line 1365 of file cmdparse.tab.c.
const yytype_int8 yypact[] [static] |
{ -48, -49, 1, -49, -1, 26, -49, -48, -43, -49, -49, -49, 22, 5, 9, 21, -29, -7, -18, 23, 48, -49, -27, -8, -5, -12, 0, 10, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -4, 12, 16, 28, 29, 14, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, 20, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, 15, -49, -1, 35, 36, 37, 38, 39, -49, -49, -49, -49, 25, -49, -49, -49, -49, -49, -49, 49, 47, -49, 27, -49, 50, -49 }
Definition at line 740 of file cmdparse.tab.c.
Referenced by yysyntax_error().
const yytype_int8 yypgoto[] [static] |
{ -49, -49, 63, -49, -49, -49, -49, 44, -49, -6, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -49, -20, -49 }
Definition at line 758 of file cmdparse.tab.c.
const yytype_uint8 yyprhs[] [static] |
{ 0, 0, 3, 7, 9, 12, 13, 17, 19, 21, 24, 26, 30, 34, 38, 42, 46, 48, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 93, 95, 97, 99, 101, 104, 107, 110, 112, 114, 116, 118, 120, 123, 124, 126, 128, 131, 134, 137, 139, 142, 143, 145, 148, 150, 152, 154, 156, 159, 161, 163, 165, 168, 170, 172, 174, 176, 179, 183, 186, 189, 191, 193, 195, 198, 201, 207, 208, 211, 212, 216, 218, 220, 222, 224, 226, 228 }
Definition at line 575 of file cmdparse.tab.c.
Referenced by yy_reduce_print().
const yytype_uint8 yyr1[] [static] |
{ 0, 64, 65, 65, 66, 67, 67, 68, 69, 70, 70, 71, 71, 71, 71, 71, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 75, 76, 77, 78, 78, 78, 78, 79, 79, 79, 80, 80, 81, 82, 82, 82, 83, 83, 83, 84, 85, 86, 86, 87, 88, 88, 88, 88, 89, 90, 90, 90, 91, 92, 92, 92, 92, 93, 93, 94, 95, 96, 96, 96, 97, 98, 99, 100, 100, 101, 101, 102, 102, 103, 103, 103, 103, 104 }
Definition at line 678 of file cmdparse.tab.c.
const yytype_uint8 yyr2[] [static] |
{ 0, 2, 3, 1, 2, 0, 3, 1, 1, 2, 1, 3, 3, 3, 3, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 2, 0, 1, 1, 2, 2, 2, 1, 2, 0, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 3, 2, 2, 1, 1, 1, 2, 2, 5, 0, 2, 0, 3, 1, 1, 1, 1, 1, 1, 2 }
Definition at line 693 of file cmdparse.tab.c.
Referenced by yy_reduce_print().
const yytype_int8 yyrhs[] [static] |
{ 65, 0, -1, 65, 57, 66, -1, 66, -1, 67, 72, -1, -1, 68, 70, 69, -1, 58, -1, 59, -1, 70, 71, -1, 71, -1, 51, 60, 55, -1, 53, 60, 55, -1, 52, 60, 55, -1, 43, 60, 55, -1, 54, 60, 55, -1, 73, -1, 72, 61, 73, -1, 74, -1, 75, -1, 77, -1, 76, -1, 91, -1, 95, -1, 94, -1, 93, -1, 83, -1, 78, -1, 81, -1, 84, -1, 85, -1, 87, -1, 89, -1, 97, -1, 99, -1, 98, -1, 104, -1, 3, 55, -1, 4, -1, 5, -1, 6, -1, 28, -1, 28, 103, -1, 28, 79, -1, 28, 80, -1, 21, -1, 22, -1, 23, -1, 40, -1, 41, -1, 7, 82, -1, -1, 8, -1, 9, -1, 26, 31, -1, 26, 32, -1, 26, 55, -1, 30, -1, 10, 86, -1, -1, 11, -1, 33, 88, -1, 34, -1, 62, -1, 35, -1, 63, -1, 22, 90, -1, 24, -1, 25, -1, 27, -1, 16, 92, -1, 17, -1, 18, -1, 19, -1, 27, -1, 29, 103, -1, 29, 26, 55, -1, 42, 55, -1, 12, 96, -1, 13, -1, 14, -1, 15, -1, 43, 55, -1, 50, 55, -1, 44, 102, 103, 100, 101, -1, -1, 56, 47, -1, -1, 48, 56, 49, -1, 45, -1, 46, -1, 36, -1, 37, -1, 38, -1, 39, -1, 20, 55, -1 }
Definition at line 590 of file cmdparse.tab.c.
Referenced by yy_reduce_print().
const yytype_uint16 yyrline[] [static] |
{ 0, 193, 193, 194, 209, 212, 213, 220, 236, 285, 286, 290, 295, 310, 325, 330, 338, 339, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 365, 374, 382, 394, 402, 430, 457, 489, 500, 501, 502, 506, 507, 511, 531, 532, 533, 537, 542, 547, 558, 570, 587, 588, 592, 603, 604, 605, 606, 610, 635, 636, 637, 641, 661, 662, 663, 664, 668, 675, 696, 706, 726, 727, 728, 732, 751, 761, 822, 825, 833, 836, 843, 844, 848, 849, 850, 851, 855 }
Definition at line 619 of file cmdparse.tab.c.
Referenced by yy_reduce_print().
const yytype_uint8 yystos[] [static] |
{ 0, 58, 65, 66, 67, 68, 0, 57, 3, 4, 5, 6, 7, 10, 12, 16, 20, 22, 26, 28, 29, 30, 33, 42, 43, 44, 50, 72, 73, 74, 75, 76, 77, 78, 81, 83, 84, 85, 87, 89, 91, 93, 94, 95, 97, 98, 99, 104, 43, 51, 52, 53, 54, 70, 71, 66, 55, 8, 9, 82, 11, 86, 13, 14, 15, 96, 17, 18, 19, 27, 92, 55, 24, 25, 27, 90, 31, 32, 55, 21, 22, 23, 36, 37, 38, 39, 40, 41, 79, 80, 103, 26, 103, 34, 35, 62, 63, 88, 55, 55, 45, 46, 102, 55, 61, 60, 60, 60, 60, 60, 59, 69, 71, 55, 103, 73, 55, 55, 55, 55, 55, 56, 100, 47, 48, 101, 56, 49 }
Definition at line 802 of file cmdparse.tab.c.
const yytype_uint8 yytable[] [static] |
{ 92, 6, 8, 9, 10, 11, 12, 93, 94, 13, 1, 14, 56, 76, 77, 15, 60, 72, 73, 16, 74, 17, 62, 63, 64, 18, 71, 19, 20, 21, 57, 58, 22, 100, 101, 95, 96, 78, 66, 67, 68, 23, 24, 25, 79, 80, 81, 98, 69, 26, 99, 82, 83, 84, 85, 103, 105, 48, 7, 82, 83, 84, 85, 86, 87, 49, 50, 51, 52, 48, 55, 104, 106, 110, 91, 113, 107, 49, 50, 51, 52, 121, 114, 126, 82, 83, 84, 85, 108, 109, 116, 117, 118, 119, 120, 124, 123, 112, 115, 127 }
Definition at line 772 of file cmdparse.tab.c.
const char* const yytname[] [static] |
{ "$end", "error", "$undefined", "\"exec\"", "\"exit\"", "\"reload\"", "\"restart\"", "\"kill\"", "\"window\"", "\"client\"", "\"fullscreen\"", "\"global\"", "\"layout\"", "\"default\"", "\"stacked\"", "\"tabbed\"", "\"border\"", "\"normal\"", "\"none\"", "\"1pixel\"", "\"mode\"", "\"tiling\"", "\"floating\"", "\"mode_toggle\"", "\"enable\"", "\"disable\"", "\"workspace\"", "\"toggle\"", "\"focus\"", "\"move\"", "\"open\"", "\"next\"", "\"prev\"", "\"split\"", "\"horizontal\"", "\"vertical\"", "\"up\"", "\"down\"", "\"left\"", "\"right\"", "\"parent\"", "\"child\"", "\"append_layout\"", "\"mark\"", "\"resize\"", "\"grow\"", "\"shrink\"", "\"px\"", "\"or\"", "\"ppt\"", "\"nop\"", "\"class\"", "\"id\"", "\"con_id\"", "\"title\"", "\"<string>\"", "\"<number>\"", "';'", "'['", "']'", "'='", "','", "'h'", "'v'", "$accept", "commands", "command", "match", "matchstart", "matchend", "criteria", "criterion", "operations", "operation", "exec", "exit", "reload", "restart", "focus", "window_mode", "level", "kill", "optional_kill_mode", "workspace", "open", "fullscreen", "fullscreen_mode", "split", "split_direction", "floating", "boolean", "border", "border_style", "move", "append_layout", "layout", "layout_mode", "mark", "nop", "resize", "resize_px", "resize_tiling", "resize_way", "direction", "mode", 0 }
Definition at line 637 of file cmdparse.tab.c.
Referenced by yy_symbol_print(), and yysyntax_error().
const yytype_uint8 yytranslate[] [static] |
Definition at line 536 of file cmdparse.tab.c.