NAME
App::Dochazka::CLI::Parser - Parser for Dochazka command line client
VERSION
Version 0.010
SYNOPSIS
use Try::Tiny;
my $status;
my @tokens = split /\s+/, 'MY SAMPLE COMMAND';
try {
App::Dochazka::CLI::Parse::parse_tokens( [], \@tokens );
} catch {
$status = $_;
};
FUNCTIONS
parse_tokens
The parser. It calls itself recursively until it gets to a
die send_req . . .
which sends it back to the while loop in dochazka-cli
with the return value of the send_req
, which is a status object.
All tokens should be chosen to be distinguishable by their first three characters.