public function parse($value) { $this->tokens = $this->lex($value); $this->reset(); $this->evaluate(); return (string) $this->cron; }
<?php require 'vendor/autoload.php'; use CronLingo\Parser; $parser = new Parser(); array_shift($argv); echo $parser->parse(implode(' ', $argv)) . PHP_EOL;