parser: allow root path specifications
authorJo-Philipp Wich <jo@mein.io>
Tue, 24 May 2016 15:06:50 +0000 (17:06 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 24 May 2016 15:08:38 +0000 (17:08 +0200)
commit596f31e7c6e59685d1c04e91ea01b5982c044459
tree0720fe3b2812cfafc9a2bdd577beefd2e966f886
parent479ca5def5b6bd5c79de488806299064346e2339
parser: allow root path specifications

All a patch specification to be just '@' or '$' - this is mainly useful when
exporting the keys of the toplevel object to the shell.

Example:

    $ echo '{ "abc": 1, "def": 2 }' | jsonpath -e 'keys=@'
    export keys='abc'\ 'def';

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
parser.y