{"action":"created","comment":{"url":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/comments/171210084","pull_request_review_id":100021393,"id":171210084,"diff_hunk":"@@ -22,8 +22,42 @@ type config = int list * Syntax.Stmt.config\n      val eval : config -> prg -> config\n \n    Takes a configuration and a program, and returns a configuration as a result\n- *)                         \n let eval _ = failwith \"Not yet implemented\"\n+ *)\n+\n+let get_1 (a,_) = a ;;\n+let get_2 (_,a) = a ;;\n+\n+let rec eval config prg =\n+    let stack = get_1 config in\n+    let stmt_conf = get_2 config in\n+    let state = Syntax.Stmt.get_1 stmt_conf in\n+    let input = Syntax.Stmt.get_2 stmt_conf in\n+    let output = Syntax.Stmt.get_3 stmt_conf in\n+    if List.length prg = 0 then","path":"src/SM.ml","position":null,"original_position":17,"commit_id":"82d28a94ee159293f41e194b3d3a077f70ab85b6","original_commit_id":"fde2d2d8cf546fdfebab6e345ba6a2119f76b30f","user":{"login":"DmitryGM","id":17802688,"avatar_url":"https://avatars3.githubusercontent.com/u/17802688?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryGM","html_url":"https://github.com/DmitryGM","followers_url":"https://api.github.com/users/DmitryGM/followers","following_url":"https://api.github.com/users/DmitryGM/following{/other_user}","gists_url":"https://api.github.com/users/DmitryGM/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryGM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryGM/subscriptions","organizations_url":"https://api.github.com/users/DmitryGM/orgs","repos_url":"https://api.github.com/users/DmitryGM/repos","events_url":"https://api.github.com/users/DmitryGM/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryGM/received_events","type":"User","site_admin":false},"body":"Сделал.","created_at":"2018-02-28T11:04:12Z","updated_at":"2018-02-28T11:04:12Z","html_url":"https://github.com/dboulytchev/compiler-workout/pull/114#discussion_r171210084","pull_request_url":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/comments/171210084"},"html":{"href":"https://github.com/dboulytchev/compiler-workout/pull/114#discussion_r171210084"},"pull_request":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114"}},"in_reply_to_id":171157070},"pull_request":{"url":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114","id":171640969,"html_url":"https://github.com/dboulytchev/compiler-workout/pull/114","diff_url":"https://github.com/dboulytchev/compiler-workout/pull/114.diff","patch_url":"https://github.com/dboulytchev/compiler-workout/pull/114.patch","issue_url":"https://api.github.com/repos/dboulytchev/compiler-workout/issues/114","number":114,"state":"open","locked":false,"title":"[HW 2] Petrov Dmitry (CSC)","user":{"login":"DmitryGM","id":17802688,"avatar_url":"https://avatars3.githubusercontent.com/u/17802688?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryGM","html_url":"https://github.com/DmitryGM","followers_url":"https://api.github.com/users/DmitryGM/followers","following_url":"https://api.github.com/users/DmitryGM/following{/other_user}","gists_url":"https://api.github.com/users/DmitryGM/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryGM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryGM/subscriptions","organizations_url":"https://api.github.com/users/DmitryGM/orgs","repos_url":"https://api.github.com/users/DmitryGM/repos","events_url":"https://api.github.com/users/DmitryGM/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryGM/received_events","type":"User","site_admin":false},"body":"2nd homework","created_at":"2018-02-27T11:55:57Z","updated_at":"2018-02-28T11:04:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fbfea548e52643d13f8854da9a92ec750ab8647","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":844778142,"url":"https://api.github.com/repos/dboulytchev/compiler-workout/labels/Checked%20by%20Dan","name":"Checked by Dan","color":"006400","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114/commits","review_comments_url":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114/comments","review_comment_url":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dboulytchev/compiler-workout/issues/114/comments","statuses_url":"https://api.github.com/repos/dboulytchev/compiler-workout/statuses/82d28a94ee159293f41e194b3d3a077f70ab85b6","head":{"label":"DmitryGM:hw2","ref":"hw2","sha":"82d28a94ee159293f41e194b3d3a077f70ab85b6","user":{"login":"DmitryGM","id":17802688,"avatar_url":"https://avatars3.githubusercontent.com/u/17802688?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryGM","html_url":"https://github.com/DmitryGM","followers_url":"https://api.github.com/users/DmitryGM/followers","following_url":"https://api.github.com/users/DmitryGM/following{/other_user}","gists_url":"https://api.github.com/users/DmitryGM/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryGM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryGM/subscriptions","organizations_url":"https://api.github.com/users/DmitryGM/orgs","repos_url":"https://api.github.com/users/DmitryGM/repos","events_url":"https://api.github.com/users/DmitryGM/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryGM/received_events","type":"User","site_admin":false},"repo":{"id":122187593,"name":"compiler-workout","full_name":"DmitryGM/compiler-workout","owner":{"login":"DmitryGM","id":17802688,"avatar_url":"https://avatars3.githubusercontent.com/u/17802688?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryGM","html_url":"https://github.com/DmitryGM","followers_url":"https://api.github.com/users/DmitryGM/followers","following_url":"https://api.github.com/users/DmitryGM/following{/other_user}","gists_url":"https://api.github.com/users/DmitryGM/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryGM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryGM/subscriptions","organizations_url":"https://api.github.com/users/DmitryGM/orgs","repos_url":"https://api.github.com/users/DmitryGM/repos","events_url":"https://api.github.com/users/DmitryGM/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryGM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DmitryGM/compiler-workout","description":"Repository for compiler course","fork":true,"url":"https://api.github.com/repos/DmitryGM/compiler-workout","forks_url":"https://api.github.com/repos/DmitryGM/compiler-workout/forks","keys_url":"https://api.github.com/repos/DmitryGM/compiler-workout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DmitryGM/compiler-workout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DmitryGM/compiler-workout/teams","hooks_url":"https://api.github.com/repos/DmitryGM/compiler-workout/hooks","issue_events_url":"https://api.github.com/repos/DmitryGM/compiler-workout/issues/events{/number}","events_url":"https://api.github.com/repos/DmitryGM/compiler-workout/events","assignees_url":"https://api.github.com/repos/DmitryGM/compiler-workout/assignees{/user}","branches_url":"https://api.github.com/repos/DmitryGM/compiler-workout/branches{/branch}","tags_url":"https://api.github.com/repos/DmitryGM/compiler-workout/tags","blobs_url":"https://api.github.com/repos/DmitryGM/compiler-workout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DmitryGM/compiler-workout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DmitryGM/compiler-workout/git/refs{/sha}","trees_url":"https://api.github.com/repos/DmitryGM/compiler-workout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DmitryGM/compiler-workout/statuses/{sha}","languages_url":"https://api.github.com/repos/DmitryGM/compiler-workout/languages","stargazers_url":"https://api.github.com/repos/DmitryGM/compiler-workout/stargazers","contributors_url":"https://api.github.com/repos/DmitryGM/compiler-workout/contributors","subscribers_url":"https://api.github.com/repos/DmitryGM/compiler-workout/subscribers","subscription_url":"https://api.github.com/repos/DmitryGM/compiler-workout/subscription","commits_url":"https://api.github.com/repos/DmitryGM/compiler-workout/commits{/sha}","git_commits_url":"https://api.github.com/repos/DmitryGM/compiler-workout/git/commits{/sha}","comments_url":"https://api.github.com/repos/DmitryGM/compiler-workout/comments{/number}","issue_comment_url":"https://api.github.com/repos/DmitryGM/compiler-workout/issues/comments{/number}","contents_url":"https://api.github.com/repos/DmitryGM/compiler-workout/contents/{+path}","compare_url":"https://api.github.com/repos/DmitryGM/compiler-workout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DmitryGM/compiler-workout/merges","archive_url":"https://api.github.com/repos/DmitryGM/compiler-workout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DmitryGM/compiler-workout/downloads","issues_url":"https://api.github.com/repos/DmitryGM/compiler-workout/issues{/number}","pulls_url":"https://api.github.com/repos/DmitryGM/compiler-workout/pulls{/number}","milestones_url":"https://api.github.com/repos/DmitryGM/compiler-workout/milestones{/number}","notifications_url":"https://api.github.com/repos/DmitryGM/compiler-workout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DmitryGM/compiler-workout/labels{/name}","releases_url":"https://api.github.com/repos/DmitryGM/compiler-workout/releases{/id}","deployments_url":"https://api.github.com/repos/DmitryGM/compiler-workout/deployments","created_at":"2018-02-20T11:06:10Z","updated_at":"2018-02-25T19:58:12Z","pushed_at":"2018-02-28T10:35:31Z","git_url":"git://github.com/DmitryGM/compiler-workout.git","ssh_url":"git@github.com:DmitryGM/compiler-workout.git","clone_url":"https://github.com/DmitryGM/compiler-workout.git","svn_url":"https://github.com/DmitryGM/compiler-workout","homepage":"","size":43,"stargazers_count":0,"watchers_count":0,"language":"OCaml","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"hw2"}},"base":{"label":"dboulytchev:hw2","ref":"hw2","sha":"2f6169cdbdd799819b74c8ecba11bac96621b6c5","user":{"login":"dboulytchev","id":483931,"avatar_url":"https://avatars3.githubusercontent.com/u/483931?v=4","gravatar_id":"","url":"https://api.github.com/users/dboulytchev","html_url":"https://github.com/dboulytchev","followers_url":"https://api.github.com/users/dboulytchev/followers","following_url":"https://api.github.com/users/dboulytchev/following{/other_user}","gists_url":"https://api.github.com/users/dboulytchev/gists{/gist_id}","starred_url":"https://api.github.com/users/dboulytchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dboulytchev/subscriptions","organizations_url":"https://api.github.com/users/dboulytchev/orgs","repos_url":"https://api.github.com/users/dboulytchev/repos","events_url":"https://api.github.com/users/dboulytchev/events{/privacy}","received_events_url":"https://api.github.com/users/dboulytchev/received_events","type":"User","site_admin":false},"repo":{"id":121311527,"name":"compiler-workout","full_name":"dboulytchev/compiler-workout","owner":{"login":"dboulytchev","id":483931,"avatar_url":"https://avatars3.githubusercontent.com/u/483931?v=4","gravatar_id":"","url":"https://api.github.com/users/dboulytchev","html_url":"https://github.com/dboulytchev","followers_url":"https://api.github.com/users/dboulytchev/followers","following_url":"https://api.github.com/users/dboulytchev/following{/other_user}","gists_url":"https://api.github.com/users/dboulytchev/gists{/gist_id}","starred_url":"https://api.github.com/users/dboulytchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dboulytchev/subscriptions","organizations_url":"https://api.github.com/users/dboulytchev/orgs","repos_url":"https://api.github.com/users/dboulytchev/repos","events_url":"https://api.github.com/users/dboulytchev/events{/privacy}","received_events_url":"https://api.github.com/users/dboulytchev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dboulytchev/compiler-workout","description":"Supplementary repository for compiler course","fork":false,"url":"https://api.github.com/repos/dboulytchev/compiler-workout","forks_url":"https://api.github.com/repos/dboulytchev/compiler-workout/forks","keys_url":"https://api.github.com/repos/dboulytchev/compiler-workout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dboulytchev/compiler-workout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dboulytchev/compiler-workout/teams","hooks_url":"https://api.github.com/repos/dboulytchev/compiler-workout/hooks","issue_events_url":"https://api.github.com/repos/dboulytchev/compiler-workout/issues/events{/number}","events_url":"https://api.github.com/repos/dboulytchev/compiler-workout/events","assignees_url":"https://api.github.com/repos/dboulytchev/compiler-workout/assignees{/user}","branches_url":"https://api.github.com/repos/dboulytchev/compiler-workout/branches{/branch}","tags_url":"https://api.github.com/repos/dboulytchev/compiler-workout/tags","blobs_url":"https://api.github.com/repos/dboulytchev/compiler-workout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dboulytchev/compiler-workout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dboulytchev/compiler-workout/git/refs{/sha}","trees_url":"https://api.github.com/repos/dboulytchev/compiler-workout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dboulytchev/compiler-workout/statuses/{sha}","languages_url":"https://api.github.com/repos/dboulytchev/compiler-workout/languages","stargazers_url":"https://api.github.com/repos/dboulytchev/compiler-workout/stargazers","contributors_url":"https://api.github.com/repos/dboulytchev/compiler-workout/contributors","subscribers_url":"https://api.github.com/repos/dboulytchev/compiler-workout/subscribers","subscription_url":"https://api.github.com/repos/dboulytchev/compiler-workout/subscription","commits_url":"https://api.github.com/repos/dboulytchev/compiler-workout/commits{/sha}","git_commits_url":"https://api.github.com/repos/dboulytchev/compiler-workout/git/commits{/sha}","comments_url":"https://api.github.com/repos/dboulytchev/compiler-workout/comments{/number}","issue_comment_url":"https://api.github.com/repos/dboulytchev/compiler-workout/issues/comments{/number}","contents_url":"https://api.github.com/repos/dboulytchev/compiler-workout/contents/{+path}","compare_url":"https://api.github.com/repos/dboulytchev/compiler-workout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dboulytchev/compiler-workout/merges","archive_url":"https://api.github.com/repos/dboulytchev/compiler-workout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dboulytchev/compiler-workout/downloads","issues_url":"https://api.github.com/repos/dboulytchev/compiler-workout/issues{/number}","pulls_url":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls{/number}","milestones_url":"https://api.github.com/repos/dboulytchev/compiler-workout/milestones{/number}","notifications_url":"https://api.github.com/repos/dboulytchev/compiler-workout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dboulytchev/compiler-workout/labels{/name}","releases_url":"https://api.github.com/repos/dboulytchev/compiler-workout/releases{/id}","deployments_url":"https://api.github.com/repos/dboulytchev/compiler-workout/deployments","created_at":"2018-02-12T22:39:15Z","updated_at":"2018-02-26T18:44:22Z","pushed_at":"2018-02-28T10:35:32Z","git_url":"git://github.com/dboulytchev/compiler-workout.git","ssh_url":"git@github.com:dboulytchev/compiler-workout.git","clone_url":"https://github.com/dboulytchev/compiler-workout.git","svn_url":"https://github.com/dboulytchev/compiler-workout","homepage":null,"size":5409,"stargazers_count":5,"watchers_count":5,"language":"OCaml","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":81,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114"},"html":{"href":"https://github.com/dboulytchev/compiler-workout/pull/114"},"issue":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/issues/114"},"comments":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/dboulytchev/compiler-workout/statuses/82d28a94ee159293f41e194b3d3a077f70ab85b6"}},"author_association":"NONE"}}
{"actor":{"display_login":"DmitryGM"}}