Use a lexer and grammar for parsing walsender commands

Magnus Hagander <magnus@hagander.net>

Commit: fcd810c69adf11b6ec1cff35359be0dd27662eff
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-01-14T15:30:33Z
Releases: 9.1.0
Use a lexer and grammar for parsing walsender commands

Makes it easier to parse mainly the BASE_BACKUP command
with it's options, and avoids having to manually deal
with quoted identifiers in the label (previously broken),
and makes it easier to add new commands and options in
the future.

In passing, refactor the case statement in the walsender
to put each command in it's own function.

Files