{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/20","id":59789297,"html_url":"https://github.com/K2InformaticsGmbH/sqlparse/pull/20","diff_url":"https://github.com/K2InformaticsGmbH/sqlparse/pull/20.diff","patch_url":"https://github.com/K2InformaticsGmbH/sqlparse/pull/20.patch","issue_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/issues/20","number":20,"state":"open","locked":false,"title":"Railroad diagrams.","user":{"login":"walter-weinmann","id":1956149,"avatar_url":"https://avatars.githubusercontent.com/u/1956149?v=3","gravatar_id":"","url":"https://api.github.com/users/walter-weinmann","html_url":"https://github.com/walter-weinmann","followers_url":"https://api.github.com/users/walter-weinmann/followers","following_url":"https://api.github.com/users/walter-weinmann/following{/other_user}","gists_url":"https://api.github.com/users/walter-weinmann/gists{/gist_id}","starred_url":"https://api.github.com/users/walter-weinmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walter-weinmann/subscriptions","organizations_url":"https://api.github.com/users/walter-weinmann/orgs","repos_url":"https://api.github.com/users/walter-weinmann/repos","events_url":"https://api.github.com/users/walter-weinmann/events{/privacy}","received_events_url":"https://api.github.com/users/walter-weinmann/received_events","type":"User","site_admin":false},"body":"I've converted the parse file into 5 ebnf syntax files:\r\n\r\n- **SQL 1 sql_list**: contains the sql_list clause\r\n- **SQL 2 cursor_def**: contains the cursor_def clause and all its subclauses\r\n- ...\r\n\r\nIn each file you'll find the reasoning lines of the parse file as a comment before the ebnf syntax. The files can be directly used as input grammar files in the Railroad Diagram Generator (http://bottlecaps.de/rr/ui).\r\n\r\nThe generated HTML file and the image files can then be downloaded.","created_at":"2016-02-18T12:05:18Z","updated_at":"2016-02-18T12:05:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/20/commits","review_comments_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/20/comments","review_comment_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/issues/20/comments","statuses_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/statuses/f6e618642a4b25b7d17ccdd6bf36399e4ebfd985","head":{"label":"walter-weinmann:sqlparse_wwe_rr_dia","ref":"sqlparse_wwe_rr_dia","sha":"f6e618642a4b25b7d17ccdd6bf36399e4ebfd985","user":{"login":"walter-weinmann","id":1956149,"avatar_url":"https://avatars.githubusercontent.com/u/1956149?v=3","gravatar_id":"","url":"https://api.github.com/users/walter-weinmann","html_url":"https://github.com/walter-weinmann","followers_url":"https://api.github.com/users/walter-weinmann/followers","following_url":"https://api.github.com/users/walter-weinmann/following{/other_user}","gists_url":"https://api.github.com/users/walter-weinmann/gists{/gist_id}","starred_url":"https://api.github.com/users/walter-weinmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walter-weinmann/subscriptions","organizations_url":"https://api.github.com/users/walter-weinmann/orgs","repos_url":"https://api.github.com/users/walter-weinmann/repos","events_url":"https://api.github.com/users/walter-weinmann/events{/privacy}","received_events_url":"https://api.github.com/users/walter-weinmann/received_events","type":"User","site_admin":false},"repo":{"id":50989982,"name":"sqlparse","full_name":"walter-weinmann/sqlparse","owner":{"login":"walter-weinmann","id":1956149,"avatar_url":"https://avatars.githubusercontent.com/u/1956149?v=3","gravatar_id":"","url":"https://api.github.com/users/walter-weinmann","html_url":"https://github.com/walter-weinmann","followers_url":"https://api.github.com/users/walter-weinmann/followers","following_url":"https://api.github.com/users/walter-weinmann/following{/other_user}","gists_url":"https://api.github.com/users/walter-weinmann/gists{/gist_id}","starred_url":"https://api.github.com/users/walter-weinmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walter-weinmann/subscriptions","organizations_url":"https://api.github.com/users/walter-weinmann/orgs","repos_url":"https://api.github.com/users/walter-weinmann/repos","events_url":"https://api.github.com/users/walter-weinmann/events{/privacy}","received_events_url":"https://api.github.com/users/walter-weinmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/walter-weinmann/sqlparse","description":"LALR grammar based SQL Parser","fork":true,"url":"https://api.github.com/repos/walter-weinmann/sqlparse","forks_url":"https://api.github.com/repos/walter-weinmann/sqlparse/forks","keys_url":"https://api.github.com/repos/walter-weinmann/sqlparse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/walter-weinmann/sqlparse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/walter-weinmann/sqlparse/teams","hooks_url":"https://api.github.com/repos/walter-weinmann/sqlparse/hooks","issue_events_url":"https://api.github.com/repos/walter-weinmann/sqlparse/issues/events{/number}","events_url":"https://api.github.com/repos/walter-weinmann/sqlparse/events","assignees_url":"https://api.github.com/repos/walter-weinmann/sqlparse/assignees{/user}","branches_url":"https://api.github.com/repos/walter-weinmann/sqlparse/branches{/branch}","tags_url":"https://api.github.com/repos/walter-weinmann/sqlparse/tags","blobs_url":"https://api.github.com/repos/walter-weinmann/sqlparse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/walter-weinmann/sqlparse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/walter-weinmann/sqlparse/git/refs{/sha}","trees_url":"https://api.github.com/repos/walter-weinmann/sqlparse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/walter-weinmann/sqlparse/statuses/{sha}","languages_url":"https://api.github.com/repos/walter-weinmann/sqlparse/languages","stargazers_url":"https://api.github.com/repos/walter-weinmann/sqlparse/stargazers","contributors_url":"https://api.github.com/repos/walter-weinmann/sqlparse/contributors","subscribers_url":"https://api.github.com/repos/walter-weinmann/sqlparse/subscribers","subscription_url":"https://api.github.com/repos/walter-weinmann/sqlparse/subscription","commits_url":"https://api.github.com/repos/walter-weinmann/sqlparse/commits{/sha}","git_commits_url":"https://api.github.com/repos/walter-weinmann/sqlparse/git/commits{/sha}","comments_url":"https://api.github.com/repos/walter-weinmann/sqlparse/comments{/number}","issue_comment_url":"https://api.github.com/repos/walter-weinmann/sqlparse/issues/comments{/number}","contents_url":"https://api.github.com/repos/walter-weinmann/sqlparse/contents/{+path}","compare_url":"https://api.github.com/repos/walter-weinmann/sqlparse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/walter-weinmann/sqlparse/merges","archive_url":"https://api.github.com/repos/walter-weinmann/sqlparse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/walter-weinmann/sqlparse/downloads","issues_url":"https://api.github.com/repos/walter-weinmann/sqlparse/issues{/number}","pulls_url":"https://api.github.com/repos/walter-weinmann/sqlparse/pulls{/number}","milestones_url":"https://api.github.com/repos/walter-weinmann/sqlparse/milestones{/number}","notifications_url":"https://api.github.com/repos/walter-weinmann/sqlparse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/walter-weinmann/sqlparse/labels{/name}","releases_url":"https://api.github.com/repos/walter-weinmann/sqlparse/releases{/id}","deployments_url":"https://api.github.com/repos/walter-weinmann/sqlparse/deployments","created_at":"2016-02-03T09:47:16Z","updated_at":"2016-02-03T09:47:16Z","pushed_at":"2016-02-18T11:48:24Z","git_url":"git://github.com/walter-weinmann/sqlparse.git","ssh_url":"git@github.com:walter-weinmann/sqlparse.git","clone_url":"https://github.com/walter-weinmann/sqlparse.git","svn_url":"https://github.com/walter-weinmann/sqlparse","homepage":null,"size":1512,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"K2InformaticsGmbH:master","ref":"master","sha":"d687a65254cf804dbb681725bdac0dd4889b12d0","user":{"login":"K2InformaticsGmbH","id":7457120,"avatar_url":"https://avatars.githubusercontent.com/u/7457120?v=3","gravatar_id":"","url":"https://api.github.com/users/K2InformaticsGmbH","html_url":"https://github.com/K2InformaticsGmbH","followers_url":"https://api.github.com/users/K2InformaticsGmbH/followers","following_url":"https://api.github.com/users/K2InformaticsGmbH/following{/other_user}","gists_url":"https://api.github.com/users/K2InformaticsGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/K2InformaticsGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K2InformaticsGmbH/subscriptions","organizations_url":"https://api.github.com/users/K2InformaticsGmbH/orgs","repos_url":"https://api.github.com/users/K2InformaticsGmbH/repos","events_url":"https://api.github.com/users/K2InformaticsGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/K2InformaticsGmbH/received_events","type":"Organization","site_admin":false},"repo":{"id":5229206,"name":"sqlparse","full_name":"K2InformaticsGmbH/sqlparse","owner":{"login":"K2InformaticsGmbH","id":7457120,"avatar_url":"https://avatars.githubusercontent.com/u/7457120?v=3","gravatar_id":"","url":"https://api.github.com/users/K2InformaticsGmbH","html_url":"https://github.com/K2InformaticsGmbH","followers_url":"https://api.github.com/users/K2InformaticsGmbH/followers","following_url":"https://api.github.com/users/K2InformaticsGmbH/following{/other_user}","gists_url":"https://api.github.com/users/K2InformaticsGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/K2InformaticsGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K2InformaticsGmbH/subscriptions","organizations_url":"https://api.github.com/users/K2InformaticsGmbH/orgs","repos_url":"https://api.github.com/users/K2InformaticsGmbH/repos","events_url":"https://api.github.com/users/K2InformaticsGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/K2InformaticsGmbH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/K2InformaticsGmbH/sqlparse","description":"LALR grammar based SQL Parser","fork":false,"url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse","forks_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/forks","keys_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/teams","hooks_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/hooks","issue_events_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/issues/events{/number}","events_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/events","assignees_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/assignees{/user}","branches_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/branches{/branch}","tags_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/tags","blobs_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/git/refs{/sha}","trees_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/statuses/{sha}","languages_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/languages","stargazers_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/stargazers","contributors_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/contributors","subscribers_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/subscribers","subscription_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/subscription","commits_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/commits{/sha}","git_commits_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/git/commits{/sha}","comments_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/comments{/number}","issue_comment_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/issues/comments{/number}","contents_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/contents/{+path}","compare_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/merges","archive_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/downloads","issues_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/issues{/number}","pulls_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls{/number}","milestones_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/milestones{/number}","notifications_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/labels{/name}","releases_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/releases{/id}","deployments_url":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/deployments","created_at":"2012-07-30T06:52:30Z","updated_at":"2016-02-10T13:42:21Z","pushed_at":"2016-02-18T10:02:45Z","git_url":"git://github.com/K2InformaticsGmbH/sqlparse.git","ssh_url":"git@github.com:K2InformaticsGmbH/sqlparse.git","clone_url":"https://github.com/K2InformaticsGmbH/sqlparse.git","svn_url":"https://github.com/K2InformaticsGmbH/sqlparse","homepage":null,"size":864,"stargazers_count":2,"watchers_count":2,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/20"},"html":{"href":"https://github.com/K2InformaticsGmbH/sqlparse/pull/20"},"issue":{"href":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/issues/20"},"comments":{"href":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/K2InformaticsGmbH/sqlparse/statuses/f6e618642a4b25b7d17ccdd6bf36399e4ebfd985"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":2345,"deletions":0,"changed_files":76}}