{"action":"created","comment":{"url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/comments/48437196","id":48437196,"diff_hunk":"@@ -725,3 +783,18 @@ function-definition\n void yyerror(const char* s) {\n   fprintf(stderr, \"%s\\n\", s);\n }\n+\n+extern FILE *yyin;\n+\n+void yyin_from_file(const char *filename) {\n+  FILE* fp = fopen(filename, \"r\");\n+  if (fp == NULL) {\n+    printf(\"fatal error: failed to open %s\\n\", filename);\n+    exit(EXIT_FAILURE);\n+  }\n+  yyin = fp;\n+}\n+\n+void yyin_from_string(const char *code) {\n+  yy_scan_string(code);","path":"src/parser.y","position":93,"original_position":93,"commit_id":"ef63c784b6b928d610a9cdff4eb90ba71cb44c93","original_commit_id":"ef63c784b6b928d610a9cdff4eb90ba71cb44c93","user":{"login":"1995hnagamin","id":7394250,"avatar_url":"https://avatars.githubusercontent.com/u/7394250?v=3","gravatar_id":"","url":"https://api.github.com/users/1995hnagamin","html_url":"https://github.com/1995hnagamin","followers_url":"https://api.github.com/users/1995hnagamin/followers","following_url":"https://api.github.com/users/1995hnagamin/following{/other_user}","gists_url":"https://api.github.com/users/1995hnagamin/gists{/gist_id}","starred_url":"https://api.github.com/users/1995hnagamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1995hnagamin/subscriptions","organizations_url":"https://api.github.com/users/1995hnagamin/orgs","repos_url":"https://api.github.com/users/1995hnagamin/repos","events_url":"https://api.github.com/users/1995hnagamin/events{/privacy}","received_events_url":"https://api.github.com/users/1995hnagamin/received_events","type":"User","site_admin":false},"body":"宣言が\r\n```YY_BUFFER_STATE yy_scan_bytes  (yyconst char * yybytes, yy_size_t  _yy bytes_len )```\r\nなのでparser.yではなくlex.yy.c内で定義したほうが良いかな…","created_at":"2015-12-25T09:49:47Z","updated_at":"2015-12-25T09:49:47Z","html_url":"https://github.com/kmc-jp/c89-compiler/pull/140#discussion_r48437196","pull_request_url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/comments/48437196"},"html":{"href":"https://github.com/kmc-jp/c89-compiler/pull/140#discussion_r48437196"},"pull_request":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140","id":54559259,"html_url":"https://github.com/kmc-jp/c89-compiler/pull/140","diff_url":"https://github.com/kmc-jp/c89-compiler/pull/140.diff","patch_url":"https://github.com/kmc-jp/c89-compiler/pull/140.patch","issue_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/140","number":140,"state":"open","locked":false,"title":"不要なファイルを削除","user":{"login":"1995hnagamin","id":7394250,"avatar_url":"https://avatars.githubusercontent.com/u/7394250?v=3","gravatar_id":"","url":"https://api.github.com/users/1995hnagamin","html_url":"https://github.com/1995hnagamin","followers_url":"https://api.github.com/users/1995hnagamin/followers","following_url":"https://api.github.com/users/1995hnagamin/following{/other_user}","gists_url":"https://api.github.com/users/1995hnagamin/gists{/gist_id}","starred_url":"https://api.github.com/users/1995hnagamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1995hnagamin/subscriptions","organizations_url":"https://api.github.com/users/1995hnagamin/orgs","repos_url":"https://api.github.com/users/1995hnagamin/repos","events_url":"https://api.github.com/users/1995hnagamin/events{/privacy}","received_events_url":"https://api.github.com/users/1995hnagamin/received_events","type":"User","site_admin":false},"body":"parser.yができたので要らなくなったファイルを消す","created_at":"2015-12-24T16:38:13Z","updated_at":"2015-12-25T09:49:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db0a90189b29be7c513ee663c184b3f269288999","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140/commits","review_comments_url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140/comments","review_comment_url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/140/comments","statuses_url":"https://api.github.com/repos/kmc-jp/c89-compiler/statuses/ef63c784b6b928d610a9cdff4eb90ba71cb44c93","head":{"label":"kmc-jp:feature/lexer/remove_outdated_files","ref":"feature/lexer/remove_outdated_files","sha":"ef63c784b6b928d610a9cdff4eb90ba71cb44c93","user":{"login":"kmc-jp","id":1835833,"avatar_url":"https://avatars.githubusercontent.com/u/1835833?v=3","gravatar_id":"","url":"https://api.github.com/users/kmc-jp","html_url":"https://github.com/kmc-jp","followers_url":"https://api.github.com/users/kmc-jp/followers","following_url":"https://api.github.com/users/kmc-jp/following{/other_user}","gists_url":"https://api.github.com/users/kmc-jp/gists{/gist_id}","starred_url":"https://api.github.com/users/kmc-jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmc-jp/subscriptions","organizations_url":"https://api.github.com/users/kmc-jp/orgs","repos_url":"https://api.github.com/users/kmc-jp/repos","events_url":"https://api.github.com/users/kmc-jp/events{/privacy}","received_events_url":"https://api.github.com/users/kmc-jp/received_events","type":"Organization","site_admin":false},"repo":{"id":41434560,"name":"c89-compiler","full_name":"kmc-jp/c89-compiler","owner":{"login":"kmc-jp","id":1835833,"avatar_url":"https://avatars.githubusercontent.com/u/1835833?v=3","gravatar_id":"","url":"https://api.github.com/users/kmc-jp","html_url":"https://github.com/kmc-jp","followers_url":"https://api.github.com/users/kmc-jp/followers","following_url":"https://api.github.com/users/kmc-jp/following{/other_user}","gists_url":"https://api.github.com/users/kmc-jp/gists{/gist_id}","starred_url":"https://api.github.com/users/kmc-jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmc-jp/subscriptions","organizations_url":"https://api.github.com/users/kmc-jp/orgs","repos_url":"https://api.github.com/users/kmc-jp/repos","events_url":"https://api.github.com/users/kmc-jp/events{/privacy}","received_events_url":"https://api.github.com/users/kmc-jp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kmc-jp/c89-compiler","description":"ANSI C89のコンパイラ","fork":false,"url":"https://api.github.com/repos/kmc-jp/c89-compiler","forks_url":"https://api.github.com/repos/kmc-jp/c89-compiler/forks","keys_url":"https://api.github.com/repos/kmc-jp/c89-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmc-jp/c89-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmc-jp/c89-compiler/teams","hooks_url":"https://api.github.com/repos/kmc-jp/c89-compiler/hooks","issue_events_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/kmc-jp/c89-compiler/events","assignees_url":"https://api.github.com/repos/kmc-jp/c89-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/kmc-jp/c89-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/kmc-jp/c89-compiler/tags","blobs_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmc-jp/c89-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/kmc-jp/c89-compiler/languages","stargazers_url":"https://api.github.com/repos/kmc-jp/c89-compiler/stargazers","contributors_url":"https://api.github.com/repos/kmc-jp/c89-compiler/contributors","subscribers_url":"https://api.github.com/repos/kmc-jp/c89-compiler/subscribers","subscription_url":"https://api.github.com/repos/kmc-jp/c89-compiler/subscription","commits_url":"https://api.github.com/repos/kmc-jp/c89-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmc-jp/c89-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmc-jp/c89-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/kmc-jp/c89-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmc-jp/c89-compiler/merges","archive_url":"https://api.github.com/repos/kmc-jp/c89-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmc-jp/c89-compiler/downloads","issues_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/kmc-jp/c89-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/kmc-jp/c89-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmc-jp/c89-compiler/labels{/name}","releases_url":"https://api.github.com/repos/kmc-jp/c89-compiler/releases{/id}","created_at":"2015-08-26T15:46:17Z","updated_at":"2015-12-25T09:17:46Z","pushed_at":"2015-12-25T09:47:50Z","git_url":"git://github.com/kmc-jp/c89-compiler.git","ssh_url":"git@github.com:kmc-jp/c89-compiler.git","clone_url":"https://github.com/kmc-jp/c89-compiler.git","svn_url":"https://github.com/kmc-jp/c89-compiler","homepage":null,"size":1139,"stargazers_count":24,"watchers_count":24,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":24,"default_branch":"master"}},"base":{"label":"kmc-jp:master","ref":"master","sha":"9b88614777e396baf74644bf315ec1833a6cbbc8","user":{"login":"kmc-jp","id":1835833,"avatar_url":"https://avatars.githubusercontent.com/u/1835833?v=3","gravatar_id":"","url":"https://api.github.com/users/kmc-jp","html_url":"https://github.com/kmc-jp","followers_url":"https://api.github.com/users/kmc-jp/followers","following_url":"https://api.github.com/users/kmc-jp/following{/other_user}","gists_url":"https://api.github.com/users/kmc-jp/gists{/gist_id}","starred_url":"https://api.github.com/users/kmc-jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmc-jp/subscriptions","organizations_url":"https://api.github.com/users/kmc-jp/orgs","repos_url":"https://api.github.com/users/kmc-jp/repos","events_url":"https://api.github.com/users/kmc-jp/events{/privacy}","received_events_url":"https://api.github.com/users/kmc-jp/received_events","type":"Organization","site_admin":false},"repo":{"id":41434560,"name":"c89-compiler","full_name":"kmc-jp/c89-compiler","owner":{"login":"kmc-jp","id":1835833,"avatar_url":"https://avatars.githubusercontent.com/u/1835833?v=3","gravatar_id":"","url":"https://api.github.com/users/kmc-jp","html_url":"https://github.com/kmc-jp","followers_url":"https://api.github.com/users/kmc-jp/followers","following_url":"https://api.github.com/users/kmc-jp/following{/other_user}","gists_url":"https://api.github.com/users/kmc-jp/gists{/gist_id}","starred_url":"https://api.github.com/users/kmc-jp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmc-jp/subscriptions","organizations_url":"https://api.github.com/users/kmc-jp/orgs","repos_url":"https://api.github.com/users/kmc-jp/repos","events_url":"https://api.github.com/users/kmc-jp/events{/privacy}","received_events_url":"https://api.github.com/users/kmc-jp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kmc-jp/c89-compiler","description":"ANSI C89のコンパイラ","fork":false,"url":"https://api.github.com/repos/kmc-jp/c89-compiler","forks_url":"https://api.github.com/repos/kmc-jp/c89-compiler/forks","keys_url":"https://api.github.com/repos/kmc-jp/c89-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmc-jp/c89-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmc-jp/c89-compiler/teams","hooks_url":"https://api.github.com/repos/kmc-jp/c89-compiler/hooks","issue_events_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/kmc-jp/c89-compiler/events","assignees_url":"https://api.github.com/repos/kmc-jp/c89-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/kmc-jp/c89-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/kmc-jp/c89-compiler/tags","blobs_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmc-jp/c89-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/kmc-jp/c89-compiler/languages","stargazers_url":"https://api.github.com/repos/kmc-jp/c89-compiler/stargazers","contributors_url":"https://api.github.com/repos/kmc-jp/c89-compiler/contributors","subscribers_url":"https://api.github.com/repos/kmc-jp/c89-compiler/subscribers","subscription_url":"https://api.github.com/repos/kmc-jp/c89-compiler/subscription","commits_url":"https://api.github.com/repos/kmc-jp/c89-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmc-jp/c89-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmc-jp/c89-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmc-jp/c89-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/kmc-jp/c89-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmc-jp/c89-compiler/merges","archive_url":"https://api.github.com/repos/kmc-jp/c89-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmc-jp/c89-compiler/downloads","issues_url":"https://api.github.com/repos/kmc-jp/c89-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/kmc-jp/c89-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/kmc-jp/c89-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmc-jp/c89-compiler/labels{/name}","releases_url":"https://api.github.com/repos/kmc-jp/c89-compiler/releases{/id}","created_at":"2015-08-26T15:46:17Z","updated_at":"2015-12-25T09:17:46Z","pushed_at":"2015-12-25T09:47:50Z","git_url":"git://github.com/kmc-jp/c89-compiler.git","ssh_url":"git@github.com:kmc-jp/c89-compiler.git","clone_url":"https://github.com/kmc-jp/c89-compiler.git","svn_url":"https://github.com/kmc-jp/c89-compiler","homepage":null,"size":1139,"stargazers_count":24,"watchers_count":24,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140"},"html":{"href":"https://github.com/kmc-jp/c89-compiler/pull/140"},"issue":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/140"},"comments":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/kmc-jp/c89-compiler/statuses/ef63c784b6b928d610a9cdff4eb90ba71cb44c93"}}}}