{"action":"created","comment":{"url":"https://api.github.com/repos/bobthecow/psysh/pulls/comments/43890395","id":43890395,"diff_hunk":"@@ -59,12 +68,23 @@ public function setPresenter(Presenter $presenter)\n      */\n     protected function configure()\n     {\n+        $definition = array(\n+            new InputArgument('code', InputArgument::REQUIRED, 'PHP code to parse.'),\n+            new InputOption('depth', '', InputOption::VALUE_REQUIRED, 'Depth to parse', 10),\n+        );\n+        if ($this->parserFactory->hasKindsSupport()) {\n+            $definition[] = new InputOption(\n+                'parser-kind',\n+                '',\n+                InputOption::VALUE_OPTIONAL,\n+                \"One PhpParser\\\\ParserFactory constants (default is based on current interpreter's version)\",\n+                $this->parserFactory->getDefaultKind()","path":"src/Psy/Command/ParseCommand.php","position":43,"original_position":43,"commit_id":"c5f3e339011c1323da698b6bd5f33590ffa3043d","original_commit_id":"c5f3e339011c1323da698b6bd5f33590ffa3043d","user":{"login":"bobthecow","id":53660,"avatar_url":"https://avatars.githubusercontent.com/u/53660?v=3","gravatar_id":"","url":"https://api.github.com/users/bobthecow","html_url":"https://github.com/bobthecow","followers_url":"https://api.github.com/users/bobthecow/followers","following_url":"https://api.github.com/users/bobthecow/following{/other_user}","gists_url":"https://api.github.com/users/bobthecow/gists{/gist_id}","starred_url":"https://api.github.com/users/bobthecow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobthecow/subscriptions","organizations_url":"https://api.github.com/users/bobthecow/orgs","repos_url":"https://api.github.com/users/bobthecow/repos","events_url":"https://api.github.com/users/bobthecow/events{/privacy}","received_events_url":"https://api.github.com/users/bobthecow/received_events","type":"User","site_admin":false},"body":"I'd like to enumerate the possible parser kinds, probably in the `<<<HELP` block below? Also wouldn't hurt to add an example while we're at it :)","created_at":"2015-11-04T15:03:40Z","updated_at":"2015-11-04T15:03:40Z","html_url":"https://github.com/bobthecow/psysh/pull/251#discussion_r43890395","pull_request_url":"https://api.github.com/repos/bobthecow/psysh/pulls/251","_links":{"self":{"href":"https://api.github.com/repos/bobthecow/psysh/pulls/comments/43890395"},"html":{"href":"https://github.com/bobthecow/psysh/pull/251#discussion_r43890395"},"pull_request":{"href":"https://api.github.com/repos/bobthecow/psysh/pulls/251"}}},"pull_request":{"url":"https://api.github.com/repos/bobthecow/psysh/pulls/251","id":49354712,"html_url":"https://github.com/bobthecow/psysh/pull/251","diff_url":"https://github.com/bobthecow/psysh/pull/251.diff","patch_url":"https://github.com/bobthecow/psysh/pull/251.patch","issue_url":"https://api.github.com/repos/bobthecow/psysh/issues/251","number":251,"state":"open","locked":false,"title":"PHP 7 support","user":{"login":"alexeyshockov","id":203120,"avatar_url":"https://avatars.githubusercontent.com/u/203120?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyshockov","html_url":"https://github.com/alexeyshockov","followers_url":"https://api.github.com/users/alexeyshockov/followers","following_url":"https://api.github.com/users/alexeyshockov/following{/other_user}","gists_url":"https://api.github.com/users/alexeyshockov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyshockov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyshockov/subscriptions","organizations_url":"https://api.github.com/users/alexeyshockov/orgs","repos_url":"https://api.github.com/users/alexeyshockov/repos","events_url":"https://api.github.com/users/alexeyshockov/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyshockov/received_events","type":"User","site_admin":false},"body":"This is initial support for PHP 7 (that's available in 2.0 version of great PHP parser by nikic).\r\n\r\nI haven't found any plans for the topic, so I've decided to create a PR.","created_at":"2015-10-31T17:47:04Z","updated_at":"2015-11-04T15:03:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aad150f8368274a970a54a1104ccf005c4b09103","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bobthecow/psysh/pulls/251/commits","review_comments_url":"https://api.github.com/repos/bobthecow/psysh/pulls/251/comments","review_comment_url":"https://api.github.com/repos/bobthecow/psysh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bobthecow/psysh/issues/251/comments","statuses_url":"https://api.github.com/repos/bobthecow/psysh/statuses/c5f3e339011c1323da698b6bd5f33590ffa3043d","head":{"label":"alexeyshockov:php7-support","ref":"php7-support","sha":"c5f3e339011c1323da698b6bd5f33590ffa3043d","user":{"login":"alexeyshockov","id":203120,"avatar_url":"https://avatars.githubusercontent.com/u/203120?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyshockov","html_url":"https://github.com/alexeyshockov","followers_url":"https://api.github.com/users/alexeyshockov/followers","following_url":"https://api.github.com/users/alexeyshockov/following{/other_user}","gists_url":"https://api.github.com/users/alexeyshockov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyshockov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyshockov/subscriptions","organizations_url":"https://api.github.com/users/alexeyshockov/orgs","repos_url":"https://api.github.com/users/alexeyshockov/repos","events_url":"https://api.github.com/users/alexeyshockov/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyshockov/received_events","type":"User","site_admin":false},"repo":{"id":45266524,"name":"psysh","full_name":"alexeyshockov/psysh","owner":{"login":"alexeyshockov","id":203120,"avatar_url":"https://avatars.githubusercontent.com/u/203120?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyshockov","html_url":"https://github.com/alexeyshockov","followers_url":"https://api.github.com/users/alexeyshockov/followers","following_url":"https://api.github.com/users/alexeyshockov/following{/other_user}","gists_url":"https://api.github.com/users/alexeyshockov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyshockov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyshockov/subscriptions","organizations_url":"https://api.github.com/users/alexeyshockov/orgs","repos_url":"https://api.github.com/users/alexeyshockov/repos","events_url":"https://api.github.com/users/alexeyshockov/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyshockov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexeyshockov/psysh","description":"A REPL for PHP","fork":true,"url":"https://api.github.com/repos/alexeyshockov/psysh","forks_url":"https://api.github.com/repos/alexeyshockov/psysh/forks","keys_url":"https://api.github.com/repos/alexeyshockov/psysh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexeyshockov/psysh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexeyshockov/psysh/teams","hooks_url":"https://api.github.com/repos/alexeyshockov/psysh/hooks","issue_events_url":"https://api.github.com/repos/alexeyshockov/psysh/issues/events{/number}","events_url":"https://api.github.com/repos/alexeyshockov/psysh/events","assignees_url":"https://api.github.com/repos/alexeyshockov/psysh/assignees{/user}","branches_url":"https://api.github.com/repos/alexeyshockov/psysh/branches{/branch}","tags_url":"https://api.github.com/repos/alexeyshockov/psysh/tags","blobs_url":"https://api.github.com/repos/alexeyshockov/psysh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexeyshockov/psysh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexeyshockov/psysh/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexeyshockov/psysh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexeyshockov/psysh/statuses/{sha}","languages_url":"https://api.github.com/repos/alexeyshockov/psysh/languages","stargazers_url":"https://api.github.com/repos/alexeyshockov/psysh/stargazers","contributors_url":"https://api.github.com/repos/alexeyshockov/psysh/contributors","subscribers_url":"https://api.github.com/repos/alexeyshockov/psysh/subscribers","subscription_url":"https://api.github.com/repos/alexeyshockov/psysh/subscription","commits_url":"https://api.github.com/repos/alexeyshockov/psysh/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexeyshockov/psysh/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexeyshockov/psysh/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexeyshockov/psysh/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexeyshockov/psysh/contents/{+path}","compare_url":"https://api.github.com/repos/alexeyshockov/psysh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexeyshockov/psysh/merges","archive_url":"https://api.github.com/repos/alexeyshockov/psysh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexeyshockov/psysh/downloads","issues_url":"https://api.github.com/repos/alexeyshockov/psysh/issues{/number}","pulls_url":"https://api.github.com/repos/alexeyshockov/psysh/pulls{/number}","milestones_url":"https://api.github.com/repos/alexeyshockov/psysh/milestones{/number}","notifications_url":"https://api.github.com/repos/alexeyshockov/psysh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexeyshockov/psysh/labels{/name}","releases_url":"https://api.github.com/repos/alexeyshockov/psysh/releases{/id}","created_at":"2015-10-30T17:36:07Z","updated_at":"2015-10-30T17:36:13Z","pushed_at":"2015-11-04T10:46:59Z","git_url":"git://github.com/alexeyshockov/psysh.git","ssh_url":"git@github.com:alexeyshockov/psysh.git","clone_url":"https://github.com/alexeyshockov/psysh.git","svn_url":"https://github.com/alexeyshockov/psysh","homepage":"http://psysh.org","size":53046,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bobthecow:develop","ref":"develop","sha":"9d93673c1f1db6b11f657a1c7df6103828af418f","user":{"login":"bobthecow","id":53660,"avatar_url":"https://avatars.githubusercontent.com/u/53660?v=3","gravatar_id":"","url":"https://api.github.com/users/bobthecow","html_url":"https://github.com/bobthecow","followers_url":"https://api.github.com/users/bobthecow/followers","following_url":"https://api.github.com/users/bobthecow/following{/other_user}","gists_url":"https://api.github.com/users/bobthecow/gists{/gist_id}","starred_url":"https://api.github.com/users/bobthecow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobthecow/subscriptions","organizations_url":"https://api.github.com/users/bobthecow/orgs","repos_url":"https://api.github.com/users/bobthecow/repos","events_url":"https://api.github.com/users/bobthecow/events{/privacy}","received_events_url":"https://api.github.com/users/bobthecow/received_events","type":"User","site_admin":false},"repo":{"id":4549925,"name":"psysh","full_name":"bobthecow/psysh","owner":{"login":"bobthecow","id":53660,"avatar_url":"https://avatars.githubusercontent.com/u/53660?v=3","gravatar_id":"","url":"https://api.github.com/users/bobthecow","html_url":"https://github.com/bobthecow","followers_url":"https://api.github.com/users/bobthecow/followers","following_url":"https://api.github.com/users/bobthecow/following{/other_user}","gists_url":"https://api.github.com/users/bobthecow/gists{/gist_id}","starred_url":"https://api.github.com/users/bobthecow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobthecow/subscriptions","organizations_url":"https://api.github.com/users/bobthecow/orgs","repos_url":"https://api.github.com/users/bobthecow/repos","events_url":"https://api.github.com/users/bobthecow/events{/privacy}","received_events_url":"https://api.github.com/users/bobthecow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bobthecow/psysh","description":"A REPL for PHP","fork":false,"url":"https://api.github.com/repos/bobthecow/psysh","forks_url":"https://api.github.com/repos/bobthecow/psysh/forks","keys_url":"https://api.github.com/repos/bobthecow/psysh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobthecow/psysh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobthecow/psysh/teams","hooks_url":"https://api.github.com/repos/bobthecow/psysh/hooks","issue_events_url":"https://api.github.com/repos/bobthecow/psysh/issues/events{/number}","events_url":"https://api.github.com/repos/bobthecow/psysh/events","assignees_url":"https://api.github.com/repos/bobthecow/psysh/assignees{/user}","branches_url":"https://api.github.com/repos/bobthecow/psysh/branches{/branch}","tags_url":"https://api.github.com/repos/bobthecow/psysh/tags","blobs_url":"https://api.github.com/repos/bobthecow/psysh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobthecow/psysh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobthecow/psysh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobthecow/psysh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobthecow/psysh/statuses/{sha}","languages_url":"https://api.github.com/repos/bobthecow/psysh/languages","stargazers_url":"https://api.github.com/repos/bobthecow/psysh/stargazers","contributors_url":"https://api.github.com/repos/bobthecow/psysh/contributors","subscribers_url":"https://api.github.com/repos/bobthecow/psysh/subscribers","subscription_url":"https://api.github.com/repos/bobthecow/psysh/subscription","commits_url":"https://api.github.com/repos/bobthecow/psysh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobthecow/psysh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobthecow/psysh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobthecow/psysh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobthecow/psysh/contents/{+path}","compare_url":"https://api.github.com/repos/bobthecow/psysh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobthecow/psysh/merges","archive_url":"https://api.github.com/repos/bobthecow/psysh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobthecow/psysh/downloads","issues_url":"https://api.github.com/repos/bobthecow/psysh/issues{/number}","pulls_url":"https://api.github.com/repos/bobthecow/psysh/pulls{/number}","milestones_url":"https://api.github.com/repos/bobthecow/psysh/milestones{/number}","notifications_url":"https://api.github.com/repos/bobthecow/psysh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobthecow/psysh/labels{/name}","releases_url":"https://api.github.com/repos/bobthecow/psysh/releases{/id}","created_at":"2012-06-04T17:15:35Z","updated_at":"2015-11-04T14:43:32Z","pushed_at":"2015-11-04T10:46:59Z","git_url":"git://github.com/bobthecow/psysh.git","ssh_url":"git@github.com:bobthecow/psysh.git","clone_url":"https://github.com/bobthecow/psysh.git","svn_url":"https://github.com/bobthecow/psysh","homepage":"http://psysh.org","size":54666,"stargazers_count":1063,"watchers_count":1063,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":88,"mirror_url":null,"open_issues_count":52,"forks":88,"open_issues":52,"watchers":1063,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bobthecow/psysh/pulls/251"},"html":{"href":"https://github.com/bobthecow/psysh/pull/251"},"issue":{"href":"https://api.github.com/repos/bobthecow/psysh/issues/251"},"comments":{"href":"https://api.github.com/repos/bobthecow/psysh/issues/251/comments"},"review_comments":{"href":"https://api.github.com/repos/bobthecow/psysh/pulls/251/comments"},"review_comment":{"href":"https://api.github.com/repos/bobthecow/psysh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bobthecow/psysh/pulls/251/commits"},"statuses":{"href":"https://api.github.com/repos/bobthecow/psysh/statuses/c5f3e339011c1323da698b6bd5f33590ffa3043d"}}}}