{"action":"created","comment":{"url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/comments/175201934","pull_request_review_id":104701108,"id":175201934,"diff_hunk":"@@ -1,21 +1,48 @@\n package lexico;\n+\n+import java.util.Stack;\n+\n %%\n %class Flexer\n %public\n %standalone\n %line\n %unicode\n+%{\n+public String checkStack(Stack st, int cont){\n+  if (cont>(int)st.peek()){\n+    st.push(cont);\n+    tokens += \"INDENT(\"+cont+\")\";\n+  }else if (cont<(int)st.peek()){\n+    while(cont<(int)st.peek()&&(int)st.peek()!=0){\n+      st.pop();\n+    }\n+    if((int)st.peek()==0&&cont!=0){\n+      tokens+=\"\\nError de identación\"; \n+      System.exit(0);\n+    }\n+    tokens+=\"DEINDENT(\"+cont+\")\\n\";\n+  }else{\n+  }\n+  return tokens;\n+}\n+%}\n \n %{\n   protected int levels;\n   protected int levels_aux;\n   public String tokens;\n+  public int cont;\n+  public Stack st;","path":"Proyectos/Proyecto_1/src/main/jflex/Flexer.jflex","position":36,"original_position":36,"commit_id":"2196e6d8a5db38ccbdb3566fb042d491e0485db8","original_commit_id":"2196e6d8a5db38ccbdb3566fb042d491e0485db8","user":{"login":"sanjorgek","id":6834622,"avatar_url":"https://avatars2.githubusercontent.com/u/6834622?v=4","gravatar_id":"","url":"https://api.github.com/users/sanjorgek","html_url":"https://github.com/sanjorgek","followers_url":"https://api.github.com/users/sanjorgek/followers","following_url":"https://api.github.com/users/sanjorgek/following{/other_user}","gists_url":"https://api.github.com/users/sanjorgek/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjorgek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjorgek/subscriptions","organizations_url":"https://api.github.com/users/sanjorgek/orgs","repos_url":"https://api.github.com/users/sanjorgek/repos","events_url":"https://api.github.com/users/sanjorgek/events{/privacy}","received_events_url":"https://api.github.com/users/sanjorgek/received_events","type":"User","site_admin":false},"body":"puedes declararla como `Stack<Integer> st;` para evitar el casting","created_at":"2018-03-16T20:09:47Z","updated_at":"2018-03-16T20:11:32Z","html_url":"https://github.com/RGT91/legendary-barnacle/pull/15#discussion_r175201934","pull_request_url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/comments/175201934"},"html":{"href":"https://github.com/RGT91/legendary-barnacle/pull/15#discussion_r175201934"},"pull_request":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15","id":174860243,"html_url":"https://github.com/RGT91/legendary-barnacle/pull/15","diff_url":"https://github.com/RGT91/legendary-barnacle/pull/15.diff","patch_url":"https://github.com/RGT91/legendary-barnacle/pull/15.patch","issue_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/15","number":15,"state":"open","locked":false,"title":"Update Flexer.jflex","user":{"login":"RGT91","id":9539893,"avatar_url":"https://avatars3.githubusercontent.com/u/9539893?v=4","gravatar_id":"","url":"https://api.github.com/users/RGT91","html_url":"https://github.com/RGT91","followers_url":"https://api.github.com/users/RGT91/followers","following_url":"https://api.github.com/users/RGT91/following{/other_user}","gists_url":"https://api.github.com/users/RGT91/gists{/gist_id}","starred_url":"https://api.github.com/users/RGT91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RGT91/subscriptions","organizations_url":"https://api.github.com/users/RGT91/orgs","repos_url":"https://api.github.com/users/RGT91/repos","events_url":"https://api.github.com/users/RGT91/events{/privacy}","received_events_url":"https://api.github.com/users/RGT91/received_events","type":"User","site_admin":false},"body":"Añadí stack y metodo para verificar INDENT y DEINDENT.","created_at":"2018-03-14T05:52:03Z","updated_at":"2018-03-16T20:11:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b84956429bd2fe60ea195e9dca7e402945c224e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15/commits","review_comments_url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15/comments","review_comment_url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/15/comments","statuses_url":"https://api.github.com/repos/RGT91/legendary-barnacle/statuses/2196e6d8a5db38ccbdb3566fb042d491e0485db8","head":{"label":"RGT91:Identación","ref":"Identación","sha":"2196e6d8a5db38ccbdb3566fb042d491e0485db8","user":{"login":"RGT91","id":9539893,"avatar_url":"https://avatars3.githubusercontent.com/u/9539893?v=4","gravatar_id":"","url":"https://api.github.com/users/RGT91","html_url":"https://github.com/RGT91","followers_url":"https://api.github.com/users/RGT91/followers","following_url":"https://api.github.com/users/RGT91/following{/other_user}","gists_url":"https://api.github.com/users/RGT91/gists{/gist_id}","starred_url":"https://api.github.com/users/RGT91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RGT91/subscriptions","organizations_url":"https://api.github.com/users/RGT91/orgs","repos_url":"https://api.github.com/users/RGT91/repos","events_url":"https://api.github.com/users/RGT91/events{/privacy}","received_events_url":"https://api.github.com/users/RGT91/received_events","type":"User","site_admin":false},"repo":{"id":120832192,"name":"legendary-barnacle","full_name":"RGT91/legendary-barnacle","owner":{"login":"RGT91","id":9539893,"avatar_url":"https://avatars3.githubusercontent.com/u/9539893?v=4","gravatar_id":"","url":"https://api.github.com/users/RGT91","html_url":"https://github.com/RGT91","followers_url":"https://api.github.com/users/RGT91/followers","following_url":"https://api.github.com/users/RGT91/following{/other_user}","gists_url":"https://api.github.com/users/RGT91/gists{/gist_id}","starred_url":"https://api.github.com/users/RGT91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RGT91/subscriptions","organizations_url":"https://api.github.com/users/RGT91/orgs","repos_url":"https://api.github.com/users/RGT91/repos","events_url":"https://api.github.com/users/RGT91/events{/privacy}","received_events_url":"https://api.github.com/users/RGT91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RGT91/legendary-barnacle","description":null,"fork":false,"url":"https://api.github.com/repos/RGT91/legendary-barnacle","forks_url":"https://api.github.com/repos/RGT91/legendary-barnacle/forks","keys_url":"https://api.github.com/repos/RGT91/legendary-barnacle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RGT91/legendary-barnacle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RGT91/legendary-barnacle/teams","hooks_url":"https://api.github.com/repos/RGT91/legendary-barnacle/hooks","issue_events_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/events{/number}","events_url":"https://api.github.com/repos/RGT91/legendary-barnacle/events","assignees_url":"https://api.github.com/repos/RGT91/legendary-barnacle/assignees{/user}","branches_url":"https://api.github.com/repos/RGT91/legendary-barnacle/branches{/branch}","tags_url":"https://api.github.com/repos/RGT91/legendary-barnacle/tags","blobs_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/refs{/sha}","trees_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RGT91/legendary-barnacle/statuses/{sha}","languages_url":"https://api.github.com/repos/RGT91/legendary-barnacle/languages","stargazers_url":"https://api.github.com/repos/RGT91/legendary-barnacle/stargazers","contributors_url":"https://api.github.com/repos/RGT91/legendary-barnacle/contributors","subscribers_url":"https://api.github.com/repos/RGT91/legendary-barnacle/subscribers","subscription_url":"https://api.github.com/repos/RGT91/legendary-barnacle/subscription","commits_url":"https://api.github.com/repos/RGT91/legendary-barnacle/commits{/sha}","git_commits_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/commits{/sha}","comments_url":"https://api.github.com/repos/RGT91/legendary-barnacle/comments{/number}","issue_comment_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/comments{/number}","contents_url":"https://api.github.com/repos/RGT91/legendary-barnacle/contents/{+path}","compare_url":"https://api.github.com/repos/RGT91/legendary-barnacle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RGT91/legendary-barnacle/merges","archive_url":"https://api.github.com/repos/RGT91/legendary-barnacle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RGT91/legendary-barnacle/downloads","issues_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues{/number}","pulls_url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls{/number}","milestones_url":"https://api.github.com/repos/RGT91/legendary-barnacle/milestones{/number}","notifications_url":"https://api.github.com/repos/RGT91/legendary-barnacle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RGT91/legendary-barnacle/labels{/name}","releases_url":"https://api.github.com/repos/RGT91/legendary-barnacle/releases{/id}","deployments_url":"https://api.github.com/repos/RGT91/legendary-barnacle/deployments","created_at":"2018-02-08T23:46:36Z","updated_at":"2018-03-09T05:09:39Z","pushed_at":"2018-03-16T19:38:56Z","git_url":"git://github.com/RGT91/legendary-barnacle.git","ssh_url":"git@github.com:RGT91/legendary-barnacle.git","clone_url":"https://github.com/RGT91/legendary-barnacle.git","svn_url":"https://github.com/RGT91/legendary-barnacle","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"Java","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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"RGT91:Proyecto1","ref":"Proyecto1","sha":"6282321f7071962e52b5586006ed4a567f47c86e","user":{"login":"RGT91","id":9539893,"avatar_url":"https://avatars3.githubusercontent.com/u/9539893?v=4","gravatar_id":"","url":"https://api.github.com/users/RGT91","html_url":"https://github.com/RGT91","followers_url":"https://api.github.com/users/RGT91/followers","following_url":"https://api.github.com/users/RGT91/following{/other_user}","gists_url":"https://api.github.com/users/RGT91/gists{/gist_id}","starred_url":"https://api.github.com/users/RGT91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RGT91/subscriptions","organizations_url":"https://api.github.com/users/RGT91/orgs","repos_url":"https://api.github.com/users/RGT91/repos","events_url":"https://api.github.com/users/RGT91/events{/privacy}","received_events_url":"https://api.github.com/users/RGT91/received_events","type":"User","site_admin":false},"repo":{"id":120832192,"name":"legendary-barnacle","full_name":"RGT91/legendary-barnacle","owner":{"login":"RGT91","id":9539893,"avatar_url":"https://avatars3.githubusercontent.com/u/9539893?v=4","gravatar_id":"","url":"https://api.github.com/users/RGT91","html_url":"https://github.com/RGT91","followers_url":"https://api.github.com/users/RGT91/followers","following_url":"https://api.github.com/users/RGT91/following{/other_user}","gists_url":"https://api.github.com/users/RGT91/gists{/gist_id}","starred_url":"https://api.github.com/users/RGT91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RGT91/subscriptions","organizations_url":"https://api.github.com/users/RGT91/orgs","repos_url":"https://api.github.com/users/RGT91/repos","events_url":"https://api.github.com/users/RGT91/events{/privacy}","received_events_url":"https://api.github.com/users/RGT91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RGT91/legendary-barnacle","description":null,"fork":false,"url":"https://api.github.com/repos/RGT91/legendary-barnacle","forks_url":"https://api.github.com/repos/RGT91/legendary-barnacle/forks","keys_url":"https://api.github.com/repos/RGT91/legendary-barnacle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RGT91/legendary-barnacle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RGT91/legendary-barnacle/teams","hooks_url":"https://api.github.com/repos/RGT91/legendary-barnacle/hooks","issue_events_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/events{/number}","events_url":"https://api.github.com/repos/RGT91/legendary-barnacle/events","assignees_url":"https://api.github.com/repos/RGT91/legendary-barnacle/assignees{/user}","branches_url":"https://api.github.com/repos/RGT91/legendary-barnacle/branches{/branch}","tags_url":"https://api.github.com/repos/RGT91/legendary-barnacle/tags","blobs_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/refs{/sha}","trees_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RGT91/legendary-barnacle/statuses/{sha}","languages_url":"https://api.github.com/repos/RGT91/legendary-barnacle/languages","stargazers_url":"https://api.github.com/repos/RGT91/legendary-barnacle/stargazers","contributors_url":"https://api.github.com/repos/RGT91/legendary-barnacle/contributors","subscribers_url":"https://api.github.com/repos/RGT91/legendary-barnacle/subscribers","subscription_url":"https://api.github.com/repos/RGT91/legendary-barnacle/subscription","commits_url":"https://api.github.com/repos/RGT91/legendary-barnacle/commits{/sha}","git_commits_url":"https://api.github.com/repos/RGT91/legendary-barnacle/git/commits{/sha}","comments_url":"https://api.github.com/repos/RGT91/legendary-barnacle/comments{/number}","issue_comment_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/comments{/number}","contents_url":"https://api.github.com/repos/RGT91/legendary-barnacle/contents/{+path}","compare_url":"https://api.github.com/repos/RGT91/legendary-barnacle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RGT91/legendary-barnacle/merges","archive_url":"https://api.github.com/repos/RGT91/legendary-barnacle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RGT91/legendary-barnacle/downloads","issues_url":"https://api.github.com/repos/RGT91/legendary-barnacle/issues{/number}","pulls_url":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls{/number}","milestones_url":"https://api.github.com/repos/RGT91/legendary-barnacle/milestones{/number}","notifications_url":"https://api.github.com/repos/RGT91/legendary-barnacle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RGT91/legendary-barnacle/labels{/name}","releases_url":"https://api.github.com/repos/RGT91/legendary-barnacle/releases{/id}","deployments_url":"https://api.github.com/repos/RGT91/legendary-barnacle/deployments","created_at":"2018-02-08T23:46:36Z","updated_at":"2018-03-09T05:09:39Z","pushed_at":"2018-03-16T19:38:56Z","git_url":"git://github.com/RGT91/legendary-barnacle.git","ssh_url":"git@github.com:RGT91/legendary-barnacle.git","clone_url":"https://github.com/RGT91/legendary-barnacle.git","svn_url":"https://github.com/RGT91/legendary-barnacle","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"Java","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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15"},"html":{"href":"https://github.com/RGT91/legendary-barnacle/pull/15"},"issue":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/15"},"comments":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/RGT91/legendary-barnacle/statuses/2196e6d8a5db38ccbdb3566fb042d491e0485db8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"sanjorgek"}}