gri3-wm/include
Michael Stapelberg a532f5ac39 Implement a new parser for commands. (+test)
On the rationale of using a custom parser instead of a lex/yacc one, see this
quote from src/commands_parser.c:
     We use a hand-written parser instead of lex/yacc because our commands are
     easy for humans, not for computers. Thus, it’s quite hard to specify a
     context-free grammar for the commands. A PEG grammar would be easier, but
     there’s downsides to every PEG parser generator I have come accross so far.

     This parser is basically a state machine which looks for literals or strings
     and can push either on a stack. After identifying a literal or string, it
     will either transition to the current state, to a different state, or call a
     function (like cmd_move()).

     Special care has been taken that error messages are useful and the code is
     well testable (when compiled with -DTEST_PARSER it will output to stdout
     instead of actually calling any function).

During the migration phase (I plan to completely switch to this parser before
4.2 will be released), the new parser will parse every command you send to
i3 and save the resulting call stack. Then, the old parser will parse your
input and actually execute the commands. Afterwards, both call stacks will be
compared and any differences will be logged.

The new parser works with 100% of the test suite and produces identical call
stacks.
2012-01-14 21:29:57 +00:00
..
i3 shmlog: store meta information in the buffer itself, store path as X11 atom 2012-01-06 23:40:07 +00:00
all.h Implement a new parser for commands. (+test) 2012-01-14 21:29:57 +00:00
assignments.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
atoms.xmacro shmlog: store meta information in the buffer itself, store path as X11 atom 2012-01-06 23:40:07 +00:00
click.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
cmdparse.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
commands.h Implement a new parser for commands. (+test) 2012-01-14 21:29:57 +00:00
commands_parser.h Implement a new parser for commands. (+test) 2012-01-14 21:29:57 +00:00
con.h Bugfix: Retain absolute window position and size when changing floating borders (Thanks binzter) 2011-11-26 21:18:23 +00:00
config.h Allow different modifier keys for showing hidden i3bar. 2012-01-08 12:47:41 +00:00
data.h update comment in include/data.h 2011-12-30 11:23:15 +01:00
debug.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
ewmh.h Don’t set the _NET_WM_WORKAREA hint at all (Thanks cg) 2011-11-30 20:33:07 +00:00
floating.h Bugfix: Correctly check boundaries and reassign floating windows when moving (Thanks xpt) 2011-12-18 17:24:27 +00:00
handlers.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
i3.h Introduce --shmlog-size flag, unlink SHM log when exiting 2011-12-10 10:51:55 +00:00
ipc.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
libi3.h shmlog: store meta information in the buffer itself, store path as X11 atom 2012-01-06 23:40:07 +00:00
load_layout.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
log.h shmlog: store meta information in the buffer itself, store path as X11 atom 2012-01-06 23:40:07 +00:00
manage.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
match.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
move.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
output.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
queue.h implement TAILQ_SWAP (only for consecutive elements, order relevant) and use it 2011-02-15 02:21:23 +01:00
randr.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
regex.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
render.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
resize.h mark parameters const 2011-11-10 19:17:36 +00:00
scratchpad.h add missing scratchpad.{c,h} 2011-12-21 23:17:52 +00:00
sd-daemon.h implement "socket activation": passing IPC sockets to i3 2011-08-10 15:55:27 +02:00
shmlog.h forgot include/shmlog.h 2012-01-07 14:59:58 +00:00
sighandler.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
startup.h Add a --no-startup-id flag for exec (command), exec (config), exec_always (config) 2011-10-25 22:18:17 +01:00
tree.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
util.h Consolidate all convert_* functions into libi3. 2011-11-16 20:54:30 +00:00
window.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
workspace.h Switch and Move to next workspace on the same Output. As requested in \#554 2012-01-08 16:24:21 +00:00
x.h Bugfix: Don’t change focus after (graphical) resizing 2011-12-17 18:47:29 +00:00
xcb.h Enhance libi3 and use it in i3bar. 2011-11-21 20:52:26 +00:00
xcb_compat.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00
xcursor.h Fix prototype in include/xcursor.h (Thanks Greg Kroah-Hartman) 2011-11-22 22:08:22 +00:00
xinerama.h normalize file headers across **/*.{h,c} 2011-10-25 21:19:38 +01:00