{"action":"created","comment":{"url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/comments/175288240","pull_request_review_id":104796359,"id":175288240,"diff_hunk":"@@ -0,0 +1,177 @@\n+cmake_minimum_required(VERSION 3.8)\n+project(shishkin_forest)\n+\n+set(CMAKE_CXX_STANDARD 17)\n+set(CMAKE_CXX_FLAGS \"-Wall -g\")\n+\n+include_directories(\n+        .\n+        parser_src/bison\n+        SymbolTable\n+        SyntaxTree\n+        TypeChecker\n+        ActivationRecords\n+        TestActivationRecords\n+        IR IR/Expressions IR/Statements IR/Translate\n+        X86\n+)\n+\n+# Build library bison_spec\n+\n+file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/parser_src)\n+file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/parser_src/bison)\n+\n+set(BisonFile ${CMAKE_SOURCE_DIR}/spec.yy)\n+set(BisonOutput ${CMAKE_SOURCE_DIR}/parser_src/bison/parser.cpp)\n+set(BisonTokens ${CMAKE_SOURCE_DIR}/parser_src/bison/tokens.h)\n+\n+find_package(BISON 3.)\n+if (BISON_PATH)\n+    message(\"Use custom bison.\")\n+    set(BISON_EXECUTABLE ${BISON_PATH}/bin/bison)\n+    set(BISON_FOUND TRUE)\n+endif ()\n+\n+if (NOT BISON_FOUND)\n+    message( FATAL_ERROR \"Bison not found.\" )\n+endif ()\n+\n+if (BISON_FOUND)\n+    add_custom_command(\n+            OUTPUT ${BisonOutput} ${BisonTokens}\n+            COMMAND ${BISON_EXECUTABLE}\n+            --defines=${BisonTokens}\n+            --output=${BisonOutput}\n+            ${BisonFile}\n+            MAIN_DEPENDENCY ${BisonFile}\n+            COMMENT \"Generating parser.cpp and tokens.h from ${BisonFile}\"\n+\n+    )\n+endif ()\n+\n+add_library(bison_spec STATIC ${BisonOutput})\n+\n+# Build library lexer\n+\n+file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/parser_src/flex)\n+\n+set(FlexFile ${CMAKE_SOURCE_DIR}/lexer.lex)\n+set(FlexOutput ${CMAKE_SOURCE_DIR}/parser_src/flex/lex.yy.cc)\n+\n+find_package(FLEX 2.6)\n+if (FLEX_PATH)\n+    message(\"Use custom flex.\")\n+    set(FLEX_EXECUTABLE ${FLEX_PATH}/bin/flex)\n+    set(FLEX_LIBRARIES ${FLEX_PATH}/lib)\n+    set(FLEX_FOUND TRUE)\n+endif ()\n+\n+if (NOT FLEX_FOUND)\n+    message( FATAL_ERROR \"Flex not found.\" )\n+endif ()\n+\n+if (FLEX_FOUND)\n+    add_custom_command(\n+            OUTPUT ${FlexOutput}\n+            COMMAND ${FLEX_EXECUTABLE}\n+            --c++\n+            --outfile=${FlexOutput}\n+            ${FlexFile}\n+            MAIN_DEPENDENCY ${FlexFile} ${BisonTokens}\n+            COMMENT \"Generating scanner.cpp from ${FlexFile}\"\n+    )\n+endif ()\n+\n+add_library(lexer STATIC ${FlexOutput})","path":"CMakeLists.txt","position":null,"original_position":85,"commit_id":"1d3480c28ae59d1bb461e3b80c5748df0df2177a","original_commit_id":"73e13274abeb517869eaabfe5516858d51805852","user":{"login":"IbirbyZh","id":17340777,"avatar_url":"https://avatars1.githubusercontent.com/u/17340777?v=4","gravatar_id":"","url":"https://api.github.com/users/IbirbyZh","html_url":"https://github.com/IbirbyZh","followers_url":"https://api.github.com/users/IbirbyZh/followers","following_url":"https://api.github.com/users/IbirbyZh/following{/other_user}","gists_url":"https://api.github.com/users/IbirbyZh/gists{/gist_id}","starred_url":"https://api.github.com/users/IbirbyZh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IbirbyZh/subscriptions","organizations_url":"https://api.github.com/users/IbirbyZh/orgs","repos_url":"https://api.github.com/users/IbirbyZh/repos","events_url":"https://api.github.com/users/IbirbyZh/events{/privacy}","received_events_url":"https://api.github.com/users/IbirbyZh/received_events","type":"User","site_admin":false},"body":"Добавил хак","created_at":"2018-03-18T12:55:43Z","updated_at":"2018-03-18T12:55:43Z","html_url":"https://github.com/ElinRin/shishkin_forest/pull/21#discussion_r175288240","pull_request_url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/comments/175288240"},"html":{"href":"https://github.com/ElinRin/shishkin_forest/pull/21#discussion_r175288240"},"pull_request":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21"}},"in_reply_to_id":175287536},"pull_request":{"url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21","id":175711108,"html_url":"https://github.com/ElinRin/shishkin_forest/pull/21","diff_url":"https://github.com/ElinRin/shishkin_forest/pull/21.diff","patch_url":"https://github.com/ElinRin/shishkin_forest/pull/21.patch","issue_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/21","number":21,"state":"open","locked":false,"title":"Add cmake","user":{"login":"IbirbyZh","id":17340777,"avatar_url":"https://avatars1.githubusercontent.com/u/17340777?v=4","gravatar_id":"","url":"https://api.github.com/users/IbirbyZh","html_url":"https://github.com/IbirbyZh","followers_url":"https://api.github.com/users/IbirbyZh/followers","following_url":"https://api.github.com/users/IbirbyZh/following{/other_user}","gists_url":"https://api.github.com/users/IbirbyZh/gists{/gist_id}","starred_url":"https://api.github.com/users/IbirbyZh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IbirbyZh/subscriptions","organizations_url":"https://api.github.com/users/IbirbyZh/orgs","repos_url":"https://api.github.com/users/IbirbyZh/repos","events_url":"https://api.github.com/users/IbirbyZh/events{/privacy}","received_events_url":"https://api.github.com/users/IbirbyZh/received_events","type":"User","site_admin":false},"body":"![Link Text](https://downloader.disk.yandex.ru/disk/bd45496500e36d75baca6d4bb4304ca73ae6ad582640694c8f9e4bac9e9f176e/5aad86f7/hJXGImh1YktKQxZnvGWn7wrFTW5XPa7NuxA5PnHiTLdMsLj3O-oSneZ0cfPUhCaco_6uv_BWWbnKv478N4gKiA%3D%3D?uid=0&filename=i_do_cmake.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&fsize=89049&hid=4d878edd4713270ad25b95acd52442a8&media_type=image&tknv=v2&etag=b72439ebb13e80f6b48344a5c8898ef7)","created_at":"2018-03-17T17:22:36Z","updated_at":"2018-03-18T12:55:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d93a5b7e486cc7a0be01352cc63683a078721d4b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21/commits","review_comments_url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21/comments","review_comment_url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/21/comments","statuses_url":"https://api.github.com/repos/ElinRin/shishkin_forest/statuses/1d3480c28ae59d1bb461e3b80c5748df0df2177a","head":{"label":"ElinRin:add_cmake","ref":"add_cmake","sha":"1d3480c28ae59d1bb461e3b80c5748df0df2177a","user":{"login":"ElinRin","id":6839026,"avatar_url":"https://avatars1.githubusercontent.com/u/6839026?v=4","gravatar_id":"","url":"https://api.github.com/users/ElinRin","html_url":"https://github.com/ElinRin","followers_url":"https://api.github.com/users/ElinRin/followers","following_url":"https://api.github.com/users/ElinRin/following{/other_user}","gists_url":"https://api.github.com/users/ElinRin/gists{/gist_id}","starred_url":"https://api.github.com/users/ElinRin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElinRin/subscriptions","organizations_url":"https://api.github.com/users/ElinRin/orgs","repos_url":"https://api.github.com/users/ElinRin/repos","events_url":"https://api.github.com/users/ElinRin/events{/privacy}","received_events_url":"https://api.github.com/users/ElinRin/received_events","type":"User","site_admin":false},"repo":{"id":104075493,"name":"shishkin_forest","full_name":"ElinRin/shishkin_forest","owner":{"login":"ElinRin","id":6839026,"avatar_url":"https://avatars1.githubusercontent.com/u/6839026?v=4","gravatar_id":"","url":"https://api.github.com/users/ElinRin","html_url":"https://github.com/ElinRin","followers_url":"https://api.github.com/users/ElinRin/followers","following_url":"https://api.github.com/users/ElinRin/following{/other_user}","gists_url":"https://api.github.com/users/ElinRin/gists{/gist_id}","starred_url":"https://api.github.com/users/ElinRin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElinRin/subscriptions","organizations_url":"https://api.github.com/users/ElinRin/orgs","repos_url":"https://api.github.com/users/ElinRin/repos","events_url":"https://api.github.com/users/ElinRin/events{/privacy}","received_events_url":"https://api.github.com/users/ElinRin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ElinRin/shishkin_forest","description":null,"fork":false,"url":"https://api.github.com/repos/ElinRin/shishkin_forest","forks_url":"https://api.github.com/repos/ElinRin/shishkin_forest/forks","keys_url":"https://api.github.com/repos/ElinRin/shishkin_forest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElinRin/shishkin_forest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElinRin/shishkin_forest/teams","hooks_url":"https://api.github.com/repos/ElinRin/shishkin_forest/hooks","issue_events_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/events{/number}","events_url":"https://api.github.com/repos/ElinRin/shishkin_forest/events","assignees_url":"https://api.github.com/repos/ElinRin/shishkin_forest/assignees{/user}","branches_url":"https://api.github.com/repos/ElinRin/shishkin_forest/branches{/branch}","tags_url":"https://api.github.com/repos/ElinRin/shishkin_forest/tags","blobs_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElinRin/shishkin_forest/statuses/{sha}","languages_url":"https://api.github.com/repos/ElinRin/shishkin_forest/languages","stargazers_url":"https://api.github.com/repos/ElinRin/shishkin_forest/stargazers","contributors_url":"https://api.github.com/repos/ElinRin/shishkin_forest/contributors","subscribers_url":"https://api.github.com/repos/ElinRin/shishkin_forest/subscribers","subscription_url":"https://api.github.com/repos/ElinRin/shishkin_forest/subscription","commits_url":"https://api.github.com/repos/ElinRin/shishkin_forest/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElinRin/shishkin_forest/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElinRin/shishkin_forest/contents/{+path}","compare_url":"https://api.github.com/repos/ElinRin/shishkin_forest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElinRin/shishkin_forest/merges","archive_url":"https://api.github.com/repos/ElinRin/shishkin_forest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElinRin/shishkin_forest/downloads","issues_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues{/number}","pulls_url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls{/number}","milestones_url":"https://api.github.com/repos/ElinRin/shishkin_forest/milestones{/number}","notifications_url":"https://api.github.com/repos/ElinRin/shishkin_forest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElinRin/shishkin_forest/labels{/name}","releases_url":"https://api.github.com/repos/ElinRin/shishkin_forest/releases{/id}","deployments_url":"https://api.github.com/repos/ElinRin/shishkin_forest/deployments","created_at":"2017-09-19T13:01:58Z","updated_at":"2018-02-27T21:47:24Z","pushed_at":"2018-03-18T12:55:09Z","git_url":"git://github.com/ElinRin/shishkin_forest.git","ssh_url":"git@github.com:ElinRin/shishkin_forest.git","clone_url":"https://github.com/ElinRin/shishkin_forest.git","svn_url":"https://github.com/ElinRin/shishkin_forest","homepage":null,"size":1858,"stargazers_count":2,"watchers_count":2,"language":"C++","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":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"ElinRin:master","ref":"master","sha":"a485e69932c8d0839505ebda29c32309350097e0","user":{"login":"ElinRin","id":6839026,"avatar_url":"https://avatars1.githubusercontent.com/u/6839026?v=4","gravatar_id":"","url":"https://api.github.com/users/ElinRin","html_url":"https://github.com/ElinRin","followers_url":"https://api.github.com/users/ElinRin/followers","following_url":"https://api.github.com/users/ElinRin/following{/other_user}","gists_url":"https://api.github.com/users/ElinRin/gists{/gist_id}","starred_url":"https://api.github.com/users/ElinRin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElinRin/subscriptions","organizations_url":"https://api.github.com/users/ElinRin/orgs","repos_url":"https://api.github.com/users/ElinRin/repos","events_url":"https://api.github.com/users/ElinRin/events{/privacy}","received_events_url":"https://api.github.com/users/ElinRin/received_events","type":"User","site_admin":false},"repo":{"id":104075493,"name":"shishkin_forest","full_name":"ElinRin/shishkin_forest","owner":{"login":"ElinRin","id":6839026,"avatar_url":"https://avatars1.githubusercontent.com/u/6839026?v=4","gravatar_id":"","url":"https://api.github.com/users/ElinRin","html_url":"https://github.com/ElinRin","followers_url":"https://api.github.com/users/ElinRin/followers","following_url":"https://api.github.com/users/ElinRin/following{/other_user}","gists_url":"https://api.github.com/users/ElinRin/gists{/gist_id}","starred_url":"https://api.github.com/users/ElinRin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElinRin/subscriptions","organizations_url":"https://api.github.com/users/ElinRin/orgs","repos_url":"https://api.github.com/users/ElinRin/repos","events_url":"https://api.github.com/users/ElinRin/events{/privacy}","received_events_url":"https://api.github.com/users/ElinRin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ElinRin/shishkin_forest","description":null,"fork":false,"url":"https://api.github.com/repos/ElinRin/shishkin_forest","forks_url":"https://api.github.com/repos/ElinRin/shishkin_forest/forks","keys_url":"https://api.github.com/repos/ElinRin/shishkin_forest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElinRin/shishkin_forest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElinRin/shishkin_forest/teams","hooks_url":"https://api.github.com/repos/ElinRin/shishkin_forest/hooks","issue_events_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/events{/number}","events_url":"https://api.github.com/repos/ElinRin/shishkin_forest/events","assignees_url":"https://api.github.com/repos/ElinRin/shishkin_forest/assignees{/user}","branches_url":"https://api.github.com/repos/ElinRin/shishkin_forest/branches{/branch}","tags_url":"https://api.github.com/repos/ElinRin/shishkin_forest/tags","blobs_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElinRin/shishkin_forest/statuses/{sha}","languages_url":"https://api.github.com/repos/ElinRin/shishkin_forest/languages","stargazers_url":"https://api.github.com/repos/ElinRin/shishkin_forest/stargazers","contributors_url":"https://api.github.com/repos/ElinRin/shishkin_forest/contributors","subscribers_url":"https://api.github.com/repos/ElinRin/shishkin_forest/subscribers","subscription_url":"https://api.github.com/repos/ElinRin/shishkin_forest/subscription","commits_url":"https://api.github.com/repos/ElinRin/shishkin_forest/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElinRin/shishkin_forest/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElinRin/shishkin_forest/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElinRin/shishkin_forest/contents/{+path}","compare_url":"https://api.github.com/repos/ElinRin/shishkin_forest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElinRin/shishkin_forest/merges","archive_url":"https://api.github.com/repos/ElinRin/shishkin_forest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElinRin/shishkin_forest/downloads","issues_url":"https://api.github.com/repos/ElinRin/shishkin_forest/issues{/number}","pulls_url":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls{/number}","milestones_url":"https://api.github.com/repos/ElinRin/shishkin_forest/milestones{/number}","notifications_url":"https://api.github.com/repos/ElinRin/shishkin_forest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElinRin/shishkin_forest/labels{/name}","releases_url":"https://api.github.com/repos/ElinRin/shishkin_forest/releases{/id}","deployments_url":"https://api.github.com/repos/ElinRin/shishkin_forest/deployments","created_at":"2017-09-19T13:01:58Z","updated_at":"2018-02-27T21:47:24Z","pushed_at":"2018-03-18T12:55:09Z","git_url":"git://github.com/ElinRin/shishkin_forest.git","ssh_url":"git@github.com:ElinRin/shishkin_forest.git","clone_url":"https://github.com/ElinRin/shishkin_forest.git","svn_url":"https://github.com/ElinRin/shishkin_forest","homepage":null,"size":1858,"stargazers_count":2,"watchers_count":2,"language":"C++","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":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21"},"html":{"href":"https://github.com/ElinRin/shishkin_forest/pull/21"},"issue":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/21"},"comments":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/ElinRin/shishkin_forest/statuses/1d3480c28ae59d1bb461e3b80c5748df0df2177a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"IbirbyZh"}}