{"action":"created","comment":{"url":"https://api.github.com/repos/meyer1994/regular/pulls/comments/186301013","pull_request_review_id":117853573,"id":186301013,"diff_hunk":"@@ -43,7 +43,29 @@ class Grammar {\n    * @return New Grammar object that represents\n    */\n   static fromNFA (nfa) {\n-\n+    const firstSymbol = nfa.start\n+    const productions = {}\n+    let aux","path":"src/grammar.js","position":16,"original_position":16,"commit_id":"c01810a614ee6eb7edacd57262394246c8dc6421","original_commit_id":"c01810a614ee6eb7edacd57262394246c8dc6421","user":{"login":"geovanij2","id":19915256,"avatar_url":"https://avatars1.githubusercontent.com/u/19915256?v=4","gravatar_id":"","url":"https://api.github.com/users/geovanij2","html_url":"https://github.com/geovanij2","followers_url":"https://api.github.com/users/geovanij2/followers","following_url":"https://api.github.com/users/geovanij2/following{/other_user}","gists_url":"https://api.github.com/users/geovanij2/gists{/gist_id}","starred_url":"https://api.github.com/users/geovanij2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geovanij2/subscriptions","organizations_url":"https://api.github.com/users/geovanij2/orgs","repos_url":"https://api.github.com/users/geovanij2/repos","events_url":"https://api.github.com/users/geovanij2/events{/privacy}","received_events_url":"https://api.github.com/users/geovanij2/received_events","type":"User","site_admin":false},"body":"```\r\nObject representation:\r\n    {\r\n      'S': ['aA', 'a'],\r\n      'A': ['aS']\r\n    }\r\n```\r\nif i put aux inside the loop i'll be redeclaring it every iter.","created_at":"2018-05-06T19:49:45Z","updated_at":"2018-05-06T19:49:46Z","html_url":"https://github.com/meyer1994/regular/pull/1#discussion_r186301013","pull_request_url":"https://api.github.com/repos/meyer1994/regular/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/meyer1994/regular/pulls/comments/186301013"},"html":{"href":"https://github.com/meyer1994/regular/pull/1#discussion_r186301013"},"pull_request":{"href":"https://api.github.com/repos/meyer1994/regular/pulls/1"}},"in_reply_to_id":186300380},"pull_request":{"url":"https://api.github.com/repos/meyer1994/regular/pulls/1","id":186185347,"html_url":"https://github.com/meyer1994/regular/pull/1","diff_url":"https://github.com/meyer1994/regular/pull/1.diff","patch_url":"https://github.com/meyer1994/regular/pull/1.patch","issue_url":"https://api.github.com/repos/meyer1994/regular/issues/1","number":1,"state":"open","locked":false,"title":"Add NFA to grammar function","user":{"login":"geovanij2","id":19915256,"avatar_url":"https://avatars1.githubusercontent.com/u/19915256?v=4","gravatar_id":"","url":"https://api.github.com/users/geovanij2","html_url":"https://github.com/geovanij2","followers_url":"https://api.github.com/users/geovanij2/followers","following_url":"https://api.github.com/users/geovanij2/following{/other_user}","gists_url":"https://api.github.com/users/geovanij2/gists{/gist_id}","starred_url":"https://api.github.com/users/geovanij2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geovanij2/subscriptions","organizations_url":"https://api.github.com/users/geovanij2/orgs","repos_url":"https://api.github.com/users/geovanij2/repos","events_url":"https://api.github.com/users/geovanij2/events{/privacy}","received_events_url":"https://api.github.com/users/geovanij2/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-06T02:44:43Z","updated_at":"2018-05-06T19:49:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e268e63d47af36d8c32c1e2fe68668e8d1765396","assignee":{"login":"geovanij2","id":19915256,"avatar_url":"https://avatars1.githubusercontent.com/u/19915256?v=4","gravatar_id":"","url":"https://api.github.com/users/geovanij2","html_url":"https://github.com/geovanij2","followers_url":"https://api.github.com/users/geovanij2/followers","following_url":"https://api.github.com/users/geovanij2/following{/other_user}","gists_url":"https://api.github.com/users/geovanij2/gists{/gist_id}","starred_url":"https://api.github.com/users/geovanij2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geovanij2/subscriptions","organizations_url":"https://api.github.com/users/geovanij2/orgs","repos_url":"https://api.github.com/users/geovanij2/repos","events_url":"https://api.github.com/users/geovanij2/events{/privacy}","received_events_url":"https://api.github.com/users/geovanij2/received_events","type":"User","site_admin":false},"assignees":[{"login":"geovanij2","id":19915256,"avatar_url":"https://avatars1.githubusercontent.com/u/19915256?v=4","gravatar_id":"","url":"https://api.github.com/users/geovanij2","html_url":"https://github.com/geovanij2","followers_url":"https://api.github.com/users/geovanij2/followers","following_url":"https://api.github.com/users/geovanij2/following{/other_user}","gists_url":"https://api.github.com/users/geovanij2/gists{/gist_id}","starred_url":"https://api.github.com/users/geovanij2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geovanij2/subscriptions","organizations_url":"https://api.github.com/users/geovanij2/orgs","repos_url":"https://api.github.com/users/geovanij2/repos","events_url":"https://api.github.com/users/geovanij2/events{/privacy}","received_events_url":"https://api.github.com/users/geovanij2/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":918665960,"url":"https://api.github.com/repos/meyer1994/regular/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/meyer1994/regular/pulls/1/commits","review_comments_url":"https://api.github.com/repos/meyer1994/regular/pulls/1/comments","review_comment_url":"https://api.github.com/repos/meyer1994/regular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meyer1994/regular/issues/1/comments","statuses_url":"https://api.github.com/repos/meyer1994/regular/statuses/c01810a614ee6eb7edacd57262394246c8dc6421","head":{"label":"meyer1994:nfa-to-grammar","ref":"nfa-to-grammar","sha":"c01810a614ee6eb7edacd57262394246c8dc6421","user":{"login":"meyer1994","id":8880186,"avatar_url":"https://avatars3.githubusercontent.com/u/8880186?v=4","gravatar_id":"","url":"https://api.github.com/users/meyer1994","html_url":"https://github.com/meyer1994","followers_url":"https://api.github.com/users/meyer1994/followers","following_url":"https://api.github.com/users/meyer1994/following{/other_user}","gists_url":"https://api.github.com/users/meyer1994/gists{/gist_id}","starred_url":"https://api.github.com/users/meyer1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyer1994/subscriptions","organizations_url":"https://api.github.com/users/meyer1994/orgs","repos_url":"https://api.github.com/users/meyer1994/repos","events_url":"https://api.github.com/users/meyer1994/events{/privacy}","received_events_url":"https://api.github.com/users/meyer1994/received_events","type":"User","site_admin":false},"repo":{"id":131633330,"name":"regular","full_name":"meyer1994/regular","owner":{"login":"meyer1994","id":8880186,"avatar_url":"https://avatars3.githubusercontent.com/u/8880186?v=4","gravatar_id":"","url":"https://api.github.com/users/meyer1994","html_url":"https://github.com/meyer1994","followers_url":"https://api.github.com/users/meyer1994/followers","following_url":"https://api.github.com/users/meyer1994/following{/other_user}","gists_url":"https://api.github.com/users/meyer1994/gists{/gist_id}","starred_url":"https://api.github.com/users/meyer1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyer1994/subscriptions","organizations_url":"https://api.github.com/users/meyer1994/orgs","repos_url":"https://api.github.com/users/meyer1994/repos","events_url":"https://api.github.com/users/meyer1994/events{/privacy}","received_events_url":"https://api.github.com/users/meyer1994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meyer1994/regular","description":"Studies of formal languages. Specially DFA, NDFA, regular grammars and regular expressions.","fork":false,"url":"https://api.github.com/repos/meyer1994/regular","forks_url":"https://api.github.com/repos/meyer1994/regular/forks","keys_url":"https://api.github.com/repos/meyer1994/regular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meyer1994/regular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meyer1994/regular/teams","hooks_url":"https://api.github.com/repos/meyer1994/regular/hooks","issue_events_url":"https://api.github.com/repos/meyer1994/regular/issues/events{/number}","events_url":"https://api.github.com/repos/meyer1994/regular/events","assignees_url":"https://api.github.com/repos/meyer1994/regular/assignees{/user}","branches_url":"https://api.github.com/repos/meyer1994/regular/branches{/branch}","tags_url":"https://api.github.com/repos/meyer1994/regular/tags","blobs_url":"https://api.github.com/repos/meyer1994/regular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meyer1994/regular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meyer1994/regular/git/refs{/sha}","trees_url":"https://api.github.com/repos/meyer1994/regular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meyer1994/regular/statuses/{sha}","languages_url":"https://api.github.com/repos/meyer1994/regular/languages","stargazers_url":"https://api.github.com/repos/meyer1994/regular/stargazers","contributors_url":"https://api.github.com/repos/meyer1994/regular/contributors","subscribers_url":"https://api.github.com/repos/meyer1994/regular/subscribers","subscription_url":"https://api.github.com/repos/meyer1994/regular/subscription","commits_url":"https://api.github.com/repos/meyer1994/regular/commits{/sha}","git_commits_url":"https://api.github.com/repos/meyer1994/regular/git/commits{/sha}","comments_url":"https://api.github.com/repos/meyer1994/regular/comments{/number}","issue_comment_url":"https://api.github.com/repos/meyer1994/regular/issues/comments{/number}","contents_url":"https://api.github.com/repos/meyer1994/regular/contents/{+path}","compare_url":"https://api.github.com/repos/meyer1994/regular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meyer1994/regular/merges","archive_url":"https://api.github.com/repos/meyer1994/regular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meyer1994/regular/downloads","issues_url":"https://api.github.com/repos/meyer1994/regular/issues{/number}","pulls_url":"https://api.github.com/repos/meyer1994/regular/pulls{/number}","milestones_url":"https://api.github.com/repos/meyer1994/regular/milestones{/number}","notifications_url":"https://api.github.com/repos/meyer1994/regular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meyer1994/regular/labels{/name}","releases_url":"https://api.github.com/repos/meyer1994/regular/releases{/id}","deployments_url":"https://api.github.com/repos/meyer1994/regular/deployments","created_at":"2018-04-30T18:41:43Z","updated_at":"2018-04-30T19:04:38Z","pushed_at":"2018-05-06T18:42:03Z","git_url":"git://github.com/meyer1994/regular.git","ssh_url":"git@github.com:meyer1994/regular.git","clone_url":"https://github.com/meyer1994/regular.git","svn_url":"https://github.com/meyer1994/regular","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"meyer1994:dev","ref":"dev","sha":"9b7c5dc2ea28ff9a5a8f2852ea2b55c2b6fc1a0e","user":{"login":"meyer1994","id":8880186,"avatar_url":"https://avatars3.githubusercontent.com/u/8880186?v=4","gravatar_id":"","url":"https://api.github.com/users/meyer1994","html_url":"https://github.com/meyer1994","followers_url":"https://api.github.com/users/meyer1994/followers","following_url":"https://api.github.com/users/meyer1994/following{/other_user}","gists_url":"https://api.github.com/users/meyer1994/gists{/gist_id}","starred_url":"https://api.github.com/users/meyer1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyer1994/subscriptions","organizations_url":"https://api.github.com/users/meyer1994/orgs","repos_url":"https://api.github.com/users/meyer1994/repos","events_url":"https://api.github.com/users/meyer1994/events{/privacy}","received_events_url":"https://api.github.com/users/meyer1994/received_events","type":"User","site_admin":false},"repo":{"id":131633330,"name":"regular","full_name":"meyer1994/regular","owner":{"login":"meyer1994","id":8880186,"avatar_url":"https://avatars3.githubusercontent.com/u/8880186?v=4","gravatar_id":"","url":"https://api.github.com/users/meyer1994","html_url":"https://github.com/meyer1994","followers_url":"https://api.github.com/users/meyer1994/followers","following_url":"https://api.github.com/users/meyer1994/following{/other_user}","gists_url":"https://api.github.com/users/meyer1994/gists{/gist_id}","starred_url":"https://api.github.com/users/meyer1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyer1994/subscriptions","organizations_url":"https://api.github.com/users/meyer1994/orgs","repos_url":"https://api.github.com/users/meyer1994/repos","events_url":"https://api.github.com/users/meyer1994/events{/privacy}","received_events_url":"https://api.github.com/users/meyer1994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meyer1994/regular","description":"Studies of formal languages. Specially DFA, NDFA, regular grammars and regular expressions.","fork":false,"url":"https://api.github.com/repos/meyer1994/regular","forks_url":"https://api.github.com/repos/meyer1994/regular/forks","keys_url":"https://api.github.com/repos/meyer1994/regular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meyer1994/regular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meyer1994/regular/teams","hooks_url":"https://api.github.com/repos/meyer1994/regular/hooks","issue_events_url":"https://api.github.com/repos/meyer1994/regular/issues/events{/number}","events_url":"https://api.github.com/repos/meyer1994/regular/events","assignees_url":"https://api.github.com/repos/meyer1994/regular/assignees{/user}","branches_url":"https://api.github.com/repos/meyer1994/regular/branches{/branch}","tags_url":"https://api.github.com/repos/meyer1994/regular/tags","blobs_url":"https://api.github.com/repos/meyer1994/regular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meyer1994/regular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meyer1994/regular/git/refs{/sha}","trees_url":"https://api.github.com/repos/meyer1994/regular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meyer1994/regular/statuses/{sha}","languages_url":"https://api.github.com/repos/meyer1994/regular/languages","stargazers_url":"https://api.github.com/repos/meyer1994/regular/stargazers","contributors_url":"https://api.github.com/repos/meyer1994/regular/contributors","subscribers_url":"https://api.github.com/repos/meyer1994/regular/subscribers","subscription_url":"https://api.github.com/repos/meyer1994/regular/subscription","commits_url":"https://api.github.com/repos/meyer1994/regular/commits{/sha}","git_commits_url":"https://api.github.com/repos/meyer1994/regular/git/commits{/sha}","comments_url":"https://api.github.com/repos/meyer1994/regular/comments{/number}","issue_comment_url":"https://api.github.com/repos/meyer1994/regular/issues/comments{/number}","contents_url":"https://api.github.com/repos/meyer1994/regular/contents/{+path}","compare_url":"https://api.github.com/repos/meyer1994/regular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meyer1994/regular/merges","archive_url":"https://api.github.com/repos/meyer1994/regular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meyer1994/regular/downloads","issues_url":"https://api.github.com/repos/meyer1994/regular/issues{/number}","pulls_url":"https://api.github.com/repos/meyer1994/regular/pulls{/number}","milestones_url":"https://api.github.com/repos/meyer1994/regular/milestones{/number}","notifications_url":"https://api.github.com/repos/meyer1994/regular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meyer1994/regular/labels{/name}","releases_url":"https://api.github.com/repos/meyer1994/regular/releases{/id}","deployments_url":"https://api.github.com/repos/meyer1994/regular/deployments","created_at":"2018-04-30T18:41:43Z","updated_at":"2018-04-30T19:04:38Z","pushed_at":"2018-05-06T18:42:03Z","git_url":"git://github.com/meyer1994/regular.git","ssh_url":"git@github.com:meyer1994/regular.git","clone_url":"https://github.com/meyer1994/regular.git","svn_url":"https://github.com/meyer1994/regular","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meyer1994/regular/pulls/1"},"html":{"href":"https://github.com/meyer1994/regular/pull/1"},"issue":{"href":"https://api.github.com/repos/meyer1994/regular/issues/1"},"comments":{"href":"https://api.github.com/repos/meyer1994/regular/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/meyer1994/regular/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/meyer1994/regular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meyer1994/regular/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/meyer1994/regular/statuses/c01810a614ee6eb7edacd57262394246c8dc6421"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"geovanij2"}}