{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/comments/48781018","id":48781018,"diff_hunk":"@@ -0,0 +1,139 @@\n+(* PQL experimental EBNF specification\n+\n+   This file is the formal specification used by our parsing library that defines\n+   the PQL grammar for translation to the AST query language.\n+\n+   This file is used by Mark Engelberg's 'Instaparse' parser in clojure, and\n+   follows its own form of EBNF, so is not strictly 'EBNF' but an augmentation. *)\n+\n+(* TODO: the following items are just not supported in the syntax yet:\n+\n+   - group_by\n+   - aggregate functions\n+   - ~>\n+   - in <array> *)","path":"resources/puppetlabs/puppetdb/pql/pql-grammar-experimental.ebnf","position":14,"original_position":14,"commit_id":"c72531598071a073f03a20ec97d281a764ab17ad","original_commit_id":"c72531598071a073f03a20ec97d281a764ab17ad","user":{"login":"wkalt","id":4952091,"avatar_url":"https://avatars.githubusercontent.com/u/4952091?v=3","gravatar_id":"","url":"https://api.github.com/users/wkalt","html_url":"https://github.com/wkalt","followers_url":"https://api.github.com/users/wkalt/followers","following_url":"https://api.github.com/users/wkalt/following{/other_user}","gists_url":"https://api.github.com/users/wkalt/gists{/gist_id}","starred_url":"https://api.github.com/users/wkalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkalt/subscriptions","organizations_url":"https://api.github.com/users/wkalt/orgs","repos_url":"https://api.github.com/users/wkalt/repos","events_url":"https://api.github.com/users/wkalt/events{/privacy}","received_events_url":"https://api.github.com/users/wkalt/received_events","type":"User","site_admin":false},"body":"my mistake, looks like it's supported here","created_at":"2016-01-04T21:05:26Z","updated_at":"2016-01-04T21:05:26Z","html_url":"https://github.com/puppetlabs/puppetdb/pull/1787#discussion_r48781018","pull_request_url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/comments/48781018"},"html":{"href":"https://github.com/puppetlabs/puppetdb/pull/1787#discussion_r48781018"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787","id":53788148,"html_url":"https://github.com/puppetlabs/puppetdb/pull/1787","diff_url":"https://github.com/puppetlabs/puppetdb/pull/1787.diff","patch_url":"https://github.com/puppetlabs/puppetdb/pull/1787.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1787","number":1787,"state":"open","locked":false,"title":"(PDB-1925) PQL Prototype","user":{"login":"kbarber","id":80595,"avatar_url":"https://avatars.githubusercontent.com/u/80595?v=3","gravatar_id":"","url":"https://api.github.com/users/kbarber","html_url":"https://github.com/kbarber","followers_url":"https://api.github.com/users/kbarber/followers","following_url":"https://api.github.com/users/kbarber/following{/other_user}","gists_url":"https://api.github.com/users/kbarber/gists{/gist_id}","starred_url":"https://api.github.com/users/kbarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbarber/subscriptions","organizations_url":"https://api.github.com/users/kbarber/orgs","repos_url":"https://api.github.com/users/kbarber/repos","events_url":"https://api.github.com/users/kbarber/events{/privacy}","received_events_url":"https://api.github.com/users/kbarber/received_events","type":"User","site_admin":false},"body":"Consider this a preview/prototype, until we clean up.\r\n\r\nStill a few things that need working on, either for this patch or later on:\r\n\r\n* Extraction can be after the filter, so far people prefer this to the current placement\r\n* Currently I have the PQL hook in a global place, this needs changing\r\n* Documentation\r\n* I'd like to be able to express JSON error messages, but I think this might involve more work\r\n* ~> support doesn't exist\r\n* IN <array> supported doesn't exist\r\n* No pagination\r\n* No functions or aggregation (group by et al)\r\n\r\nAnd a couple of other minor syntactical things.","created_at":"2015-12-16T01:33:06Z","updated_at":"2016-01-04T21:05:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aaa281d1bb806ef32196955756a7f1f4a72080ad","assignee":null,"milestone":{"url":"https://api.github.com/repos/puppetlabs/puppetdb/milestones/11","html_url":"https://github.com/puppetlabs/puppetdb/milestones/4.0.0%20(master)","labels_url":"https://api.github.com/repos/puppetlabs/puppetdb/milestones/11/labels","id":1341713,"number":11,"title":"4.0.0 (master)","description":"","creator":{"login":"kbarber","id":80595,"avatar_url":"https://avatars.githubusercontent.com/u/80595?v=3","gravatar_id":"","url":"https://api.github.com/users/kbarber","html_url":"https://github.com/kbarber","followers_url":"https://api.github.com/users/kbarber/followers","following_url":"https://api.github.com/users/kbarber/following{/other_user}","gists_url":"https://api.github.com/users/kbarber/gists{/gist_id}","starred_url":"https://api.github.com/users/kbarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbarber/subscriptions","organizations_url":"https://api.github.com/users/kbarber/orgs","repos_url":"https://api.github.com/users/kbarber/repos","events_url":"https://api.github.com/users/kbarber/events{/privacy}","received_events_url":"https://api.github.com/users/kbarber/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":78,"state":"open","created_at":"2015-10-07T01:07:44Z","updated_at":"2016-01-04T17:37:46Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1787/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppetdb/statuses/c72531598071a073f03a20ec97d281a764ab17ad","head":{"label":"kbarber:ticket/master/pdb-1925-pql-translation-to-ast","ref":"ticket/master/pdb-1925-pql-translation-to-ast","sha":"c72531598071a073f03a20ec97d281a764ab17ad","user":{"login":"kbarber","id":80595,"avatar_url":"https://avatars.githubusercontent.com/u/80595?v=3","gravatar_id":"","url":"https://api.github.com/users/kbarber","html_url":"https://github.com/kbarber","followers_url":"https://api.github.com/users/kbarber/followers","following_url":"https://api.github.com/users/kbarber/following{/other_user}","gists_url":"https://api.github.com/users/kbarber/gists{/gist_id}","starred_url":"https://api.github.com/users/kbarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbarber/subscriptions","organizations_url":"https://api.github.com/users/kbarber/orgs","repos_url":"https://api.github.com/users/kbarber/repos","events_url":"https://api.github.com/users/kbarber/events{/privacy}","received_events_url":"https://api.github.com/users/kbarber/received_events","type":"User","site_admin":false},"repo":{"id":4444970,"name":"puppetdb","full_name":"kbarber/puppetdb","owner":{"login":"kbarber","id":80595,"avatar_url":"https://avatars.githubusercontent.com/u/80595?v=3","gravatar_id":"","url":"https://api.github.com/users/kbarber","html_url":"https://github.com/kbarber","followers_url":"https://api.github.com/users/kbarber/followers","following_url":"https://api.github.com/users/kbarber/following{/other_user}","gists_url":"https://api.github.com/users/kbarber/gists{/gist_id}","starred_url":"https://api.github.com/users/kbarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbarber/subscriptions","organizations_url":"https://api.github.com/users/kbarber/orgs","repos_url":"https://api.github.com/users/kbarber/repos","events_url":"https://api.github.com/users/kbarber/events{/privacy}","received_events_url":"https://api.github.com/users/kbarber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbarber/puppetdb","description":"Centralized Puppet Storage","fork":true,"url":"https://api.github.com/repos/kbarber/puppetdb","forks_url":"https://api.github.com/repos/kbarber/puppetdb/forks","keys_url":"https://api.github.com/repos/kbarber/puppetdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbarber/puppetdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbarber/puppetdb/teams","hooks_url":"https://api.github.com/repos/kbarber/puppetdb/hooks","issue_events_url":"https://api.github.com/repos/kbarber/puppetdb/issues/events{/number}","events_url":"https://api.github.com/repos/kbarber/puppetdb/events","assignees_url":"https://api.github.com/repos/kbarber/puppetdb/assignees{/user}","branches_url":"https://api.github.com/repos/kbarber/puppetdb/branches{/branch}","tags_url":"https://api.github.com/repos/kbarber/puppetdb/tags","blobs_url":"https://api.github.com/repos/kbarber/puppetdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbarber/puppetdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbarber/puppetdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbarber/puppetdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbarber/puppetdb/statuses/{sha}","languages_url":"https://api.github.com/repos/kbarber/puppetdb/languages","stargazers_url":"https://api.github.com/repos/kbarber/puppetdb/stargazers","contributors_url":"https://api.github.com/repos/kbarber/puppetdb/contributors","subscribers_url":"https://api.github.com/repos/kbarber/puppetdb/subscribers","subscription_url":"https://api.github.com/repos/kbarber/puppetdb/subscription","commits_url":"https://api.github.com/repos/kbarber/puppetdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbarber/puppetdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbarber/puppetdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbarber/puppetdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbarber/puppetdb/contents/{+path}","compare_url":"https://api.github.com/repos/kbarber/puppetdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbarber/puppetdb/merges","archive_url":"https://api.github.com/repos/kbarber/puppetdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbarber/puppetdb/downloads","issues_url":"https://api.github.com/repos/kbarber/puppetdb/issues{/number}","pulls_url":"https://api.github.com/repos/kbarber/puppetdb/pulls{/number}","milestones_url":"https://api.github.com/repos/kbarber/puppetdb/milestones{/number}","notifications_url":"https://api.github.com/repos/kbarber/puppetdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbarber/puppetdb/labels{/name}","releases_url":"https://api.github.com/repos/kbarber/puppetdb/releases{/id}","created_at":"2012-05-25T12:17:05Z","updated_at":"2015-05-05T11:09:30Z","pushed_at":"2016-01-04T17:43:54Z","git_url":"git://github.com/kbarber/puppetdb.git","ssh_url":"git@github.com:kbarber/puppetdb.git","clone_url":"https://github.com/kbarber/puppetdb.git","svn_url":"https://github.com/kbarber/puppetdb","homepage":"http://docs.puppetlabs.com/puppetdb","size":15667,"stargazers_count":1,"watchers_count":1,"language":"Clojure","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"09d6d03673c7dc86eb1484281e25858cd674dca9","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":2193032,"name":"puppetdb","full_name":"puppetlabs/puppetdb","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/puppetdb","description":"Centralized Puppet Storage","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppetdb","forks_url":"https://api.github.com/repos/puppetlabs/puppetdb/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppetdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppetdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppetdb/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppetdb/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppetdb/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppetdb/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppetdb/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppetdb/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppetdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppetdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppetdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppetdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppetdb/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppetdb/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppetdb/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppetdb/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppetdb/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppetdb/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppetdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppetdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppetdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppetdb/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppetdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppetdb/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppetdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppetdb/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppetdb/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppetdb/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppetdb/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppetdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppetdb/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppetdb/releases{/id}","created_at":"2011-08-11T18:54:46Z","updated_at":"2015-12-22T04:31:05Z","pushed_at":"2016-01-04T17:43:55Z","git_url":"git://github.com/puppetlabs/puppetdb.git","ssh_url":"git@github.com:puppetlabs/puppetdb.git","clone_url":"https://github.com/puppetlabs/puppetdb.git","svn_url":"https://github.com/puppetlabs/puppetdb","homepage":"http://docs.puppetlabs.com/puppetdb","size":18724,"stargazers_count":179,"watchers_count":179,"language":"Clojure","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":143,"mirror_url":null,"open_issues_count":6,"forks":143,"open_issues":6,"watchers":179,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787"},"html":{"href":"https://github.com/puppetlabs/puppetdb/pull/1787"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1787"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/issues/1787/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/pulls/1787/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppetdb/statuses/c72531598071a073f03a20ec97d281a764ab17ad"}}}}