{"action":"created","comment":{"url":"https://api.github.com/repos/TextDB/textdb/pulls/comments/91619504","pull_request_review_id":12127775,"id":91619504,"diff_hunk":"@@ -0,0 +1,664 @@\n+/**\n+ * JavaCCcompilation options\n+ */\n+options {\n+  \t/**\n+  \t * Multiple instances of the parser might be required, thus the parser\n+  \t * should not be compiled as static(made up by static methods)\n+  \t */\n+    STATIC = false;\n+    /**\n+\t * Use Unicode Input since Java's implementation of String, Character and\n+\t * console input uses unicode,compiling without using UNICODE_INPUT might\n+\t * lead to unexpected results if you are using the wrong encoding.\n+\t * Please make sure to provide a source with unicode characters, wrapping\n+\t * the input in a Reader if necessary.\n+     */\n+    UNICODE_INPUT = true;\n+    /**\n+     * The TextQL language is case-insensitive\n+     */\n+    IGNORE_CASE = true;\n+}\n+\n+PARSER_BEGIN(TextQLParser)\n+\n+package edu.uci.ics.textdb.textql.languageparser;\n+\n+import java.util.ArrayList;\n+import java.util.Arrays;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.function.Consumer;\n+import org.apache.commons.lang3.builder.EqualsBuilder;\n+\n+/**\n+ * Implementation of a parser for the TextQL query language.\n+ * Please check TextDb-TextQL/README.md for grammar Specification\n+ * \n+ * @author Flavio Bayer\n+ */\n+public class TextQLParser{\n+  \n+\t/**\n+\t * Statement class and subclasses(SelectStatement, CreateViewStatement)\n+\t * Each Statement class has an id. Subclasses of Statements have specific\n+\t * fields related to its function. These classes have no methods, they are","path":"textdb/textdb-textql/src/main/javacc/TextQLParser.jj","position":47,"original_position":47,"commit_id":"360c0a69fce5e710d299a6cddcc45d4654fa9921","original_commit_id":"360c0a69fce5e710d299a6cddcc45d4654fa9921","user":{"login":"chenlica","id":12926365,"avatar_url":"https://avatars.githubusercontent.com/u/12926365?v=3","gravatar_id":"","url":"https://api.github.com/users/chenlica","html_url":"https://github.com/chenlica","followers_url":"https://api.github.com/users/chenlica/followers","following_url":"https://api.github.com/users/chenlica/following{/other_user}","gists_url":"https://api.github.com/users/chenlica/gists{/gist_id}","starred_url":"https://api.github.com/users/chenlica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenlica/subscriptions","organizations_url":"https://api.github.com/users/chenlica/orgs","repos_url":"https://api.github.com/users/chenlica/repos","events_url":"https://api.github.com/users/chenlica/events{/privacy}","received_events_url":"https://api.github.com/users/chenlica/received_events","type":"User","site_admin":false},"body":"\"These classes have no methods, they are\" -> \"These classes have no methods.  They are\"","created_at":"2016-12-08T22:15:00Z","updated_at":"2016-12-08T22:15:00Z","html_url":"https://github.com/TextDB/textdb/pull/305#discussion_r91619504","pull_request_url":"https://api.github.com/repos/TextDB/textdb/pulls/305","_links":{"self":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/comments/91619504"},"html":{"href":"https://github.com/TextDB/textdb/pull/305#discussion_r91619504"},"pull_request":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/305"}}},"pull_request":{"url":"https://api.github.com/repos/TextDB/textdb/pulls/305","id":95508085,"html_url":"https://github.com/TextDB/textdb/pull/305","diff_url":"https://github.com/TextDB/textdb/pull/305.diff","patch_url":"https://github.com/TextDB/textdb/pull/305.patch","issue_url":"https://api.github.com/repos/TextDB/textdb/issues/305","number":305,"state":"open","locked":false,"title":"[Issue #289.2] TextQL: Implement Language Parser","user":{"login":"FlavioBayer","id":13457905,"avatar_url":"https://avatars.githubusercontent.com/u/13457905?v=3","gravatar_id":"","url":"https://api.github.com/users/FlavioBayer","html_url":"https://github.com/FlavioBayer","followers_url":"https://api.github.com/users/FlavioBayer/followers","following_url":"https://api.github.com/users/FlavioBayer/following{/other_user}","gists_url":"https://api.github.com/users/FlavioBayer/gists{/gist_id}","starred_url":"https://api.github.com/users/FlavioBayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlavioBayer/subscriptions","organizations_url":"https://api.github.com/users/FlavioBayer/orgs","repos_url":"https://api.github.com/users/FlavioBayer/repos","events_url":"https://api.github.com/users/FlavioBayer/events{/privacy}","received_events_url":"https://api.github.com/users/FlavioBayer/received_events","type":"User","site_admin":false},"body":"Language parser implementation and test cases: .jj files for JavaCC and compiled files","created_at":"2016-11-28T14:27:56Z","updated_at":"2016-12-08T22:48:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da8b25de165b2ffa4b9c9ef496ac2bf2557296b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TextDB/textdb/pulls/305/commits","review_comments_url":"https://api.github.com/repos/TextDB/textdb/pulls/305/comments","review_comment_url":"https://api.github.com/repos/TextDB/textdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TextDB/textdb/issues/305/comments","statuses_url":"https://api.github.com/repos/TextDB/textdb/statuses/360c0a69fce5e710d299a6cddcc45d4654fa9921","head":{"label":"TextDB:flavio-textql-parser","ref":"flavio-textql-parser","sha":"360c0a69fce5e710d299a6cddcc45d4654fa9921","user":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"repo":{"id":53976910,"name":"textdb","full_name":"TextDB/textdb","owner":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TextDB/textdb","description":"Text-centric data management system","fork":false,"url":"https://api.github.com/repos/TextDB/textdb","forks_url":"https://api.github.com/repos/TextDB/textdb/forks","keys_url":"https://api.github.com/repos/TextDB/textdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TextDB/textdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TextDB/textdb/teams","hooks_url":"https://api.github.com/repos/TextDB/textdb/hooks","issue_events_url":"https://api.github.com/repos/TextDB/textdb/issues/events{/number}","events_url":"https://api.github.com/repos/TextDB/textdb/events","assignees_url":"https://api.github.com/repos/TextDB/textdb/assignees{/user}","branches_url":"https://api.github.com/repos/TextDB/textdb/branches{/branch}","tags_url":"https://api.github.com/repos/TextDB/textdb/tags","blobs_url":"https://api.github.com/repos/TextDB/textdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TextDB/textdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TextDB/textdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/TextDB/textdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TextDB/textdb/statuses/{sha}","languages_url":"https://api.github.com/repos/TextDB/textdb/languages","stargazers_url":"https://api.github.com/repos/TextDB/textdb/stargazers","contributors_url":"https://api.github.com/repos/TextDB/textdb/contributors","subscribers_url":"https://api.github.com/repos/TextDB/textdb/subscribers","subscription_url":"https://api.github.com/repos/TextDB/textdb/subscription","commits_url":"https://api.github.com/repos/TextDB/textdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/TextDB/textdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/TextDB/textdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/TextDB/textdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/TextDB/textdb/contents/{+path}","compare_url":"https://api.github.com/repos/TextDB/textdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TextDB/textdb/merges","archive_url":"https://api.github.com/repos/TextDB/textdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TextDB/textdb/downloads","issues_url":"https://api.github.com/repos/TextDB/textdb/issues{/number}","pulls_url":"https://api.github.com/repos/TextDB/textdb/pulls{/number}","milestones_url":"https://api.github.com/repos/TextDB/textdb/milestones{/number}","notifications_url":"https://api.github.com/repos/TextDB/textdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TextDB/textdb/labels{/name}","releases_url":"https://api.github.com/repos/TextDB/textdb/releases{/id}","deployments_url":"https://api.github.com/repos/TextDB/textdb/deployments","created_at":"2016-03-15T20:38:46Z","updated_at":"2016-12-05T23:20:53Z","pushed_at":"2016-12-08T21:53:14Z","git_url":"git://github.com/TextDB/textdb.git","ssh_url":"git@github.com:TextDB/textdb.git","clone_url":"https://github.com/TextDB/textdb.git","svn_url":"https://github.com/TextDB/textdb","homepage":null,"size":34063,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":18,"forks":6,"open_issues":18,"watchers":16,"default_branch":"master"}},"base":{"label":"TextDB:master","ref":"master","sha":"98355db5661708ba87a94ae257dc021249fb36ae","user":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"repo":{"id":53976910,"name":"textdb","full_name":"TextDB/textdb","owner":{"login":"TextDB","id":18126950,"avatar_url":"https://avatars.githubusercontent.com/u/18126950?v=3","gravatar_id":"","url":"https://api.github.com/users/TextDB","html_url":"https://github.com/TextDB","followers_url":"https://api.github.com/users/TextDB/followers","following_url":"https://api.github.com/users/TextDB/following{/other_user}","gists_url":"https://api.github.com/users/TextDB/gists{/gist_id}","starred_url":"https://api.github.com/users/TextDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TextDB/subscriptions","organizations_url":"https://api.github.com/users/TextDB/orgs","repos_url":"https://api.github.com/users/TextDB/repos","events_url":"https://api.github.com/users/TextDB/events{/privacy}","received_events_url":"https://api.github.com/users/TextDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TextDB/textdb","description":"Text-centric data management system","fork":false,"url":"https://api.github.com/repos/TextDB/textdb","forks_url":"https://api.github.com/repos/TextDB/textdb/forks","keys_url":"https://api.github.com/repos/TextDB/textdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TextDB/textdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TextDB/textdb/teams","hooks_url":"https://api.github.com/repos/TextDB/textdb/hooks","issue_events_url":"https://api.github.com/repos/TextDB/textdb/issues/events{/number}","events_url":"https://api.github.com/repos/TextDB/textdb/events","assignees_url":"https://api.github.com/repos/TextDB/textdb/assignees{/user}","branches_url":"https://api.github.com/repos/TextDB/textdb/branches{/branch}","tags_url":"https://api.github.com/repos/TextDB/textdb/tags","blobs_url":"https://api.github.com/repos/TextDB/textdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TextDB/textdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TextDB/textdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/TextDB/textdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TextDB/textdb/statuses/{sha}","languages_url":"https://api.github.com/repos/TextDB/textdb/languages","stargazers_url":"https://api.github.com/repos/TextDB/textdb/stargazers","contributors_url":"https://api.github.com/repos/TextDB/textdb/contributors","subscribers_url":"https://api.github.com/repos/TextDB/textdb/subscribers","subscription_url":"https://api.github.com/repos/TextDB/textdb/subscription","commits_url":"https://api.github.com/repos/TextDB/textdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/TextDB/textdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/TextDB/textdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/TextDB/textdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/TextDB/textdb/contents/{+path}","compare_url":"https://api.github.com/repos/TextDB/textdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TextDB/textdb/merges","archive_url":"https://api.github.com/repos/TextDB/textdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TextDB/textdb/downloads","issues_url":"https://api.github.com/repos/TextDB/textdb/issues{/number}","pulls_url":"https://api.github.com/repos/TextDB/textdb/pulls{/number}","milestones_url":"https://api.github.com/repos/TextDB/textdb/milestones{/number}","notifications_url":"https://api.github.com/repos/TextDB/textdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TextDB/textdb/labels{/name}","releases_url":"https://api.github.com/repos/TextDB/textdb/releases{/id}","deployments_url":"https://api.github.com/repos/TextDB/textdb/deployments","created_at":"2016-03-15T20:38:46Z","updated_at":"2016-12-05T23:20:53Z","pushed_at":"2016-12-08T21:53:14Z","git_url":"git://github.com/TextDB/textdb.git","ssh_url":"git@github.com:TextDB/textdb.git","clone_url":"https://github.com/TextDB/textdb.git","svn_url":"https://github.com/TextDB/textdb","homepage":null,"size":34063,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":18,"forks":6,"open_issues":18,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/305"},"html":{"href":"https://github.com/TextDB/textdb/pull/305"},"issue":{"href":"https://api.github.com/repos/TextDB/textdb/issues/305"},"comments":{"href":"https://api.github.com/repos/TextDB/textdb/issues/305/comments"},"review_comments":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/305/comments"},"review_comment":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TextDB/textdb/pulls/305/commits"},"statuses":{"href":"https://api.github.com/repos/TextDB/textdb/statuses/360c0a69fce5e710d299a6cddcc45d4654fa9921"}}}}
{"actor":{"display_login":"chenlica"}}