{"action":"created","issue":{"url":"https://api.github.com/repos/thinca/vim-quickrun/issues/180","repository_url":"https://api.github.com/repos/thinca/vim-quickrun","labels_url":"https://api.github.com/repos/thinca/vim-quickrun/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/thinca/vim-quickrun/issues/180/comments","events_url":"https://api.github.com/repos/thinca/vim-quickrun/issues/180/events","html_url":"https://github.com/thinca/vim-quickrun/pull/180","id":356887996,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMDM2MDMx","number":180,"title":"Add prolog config (prolog/swi, prolog/gnu)","user":{"login":"tyru","id":48169,"node_id":"MDQ6VXNlcjQ4MTY5","avatar_url":"https://avatars3.githubusercontent.com/u/48169?v=4","gravatar_id":"","url":"https://api.github.com/users/tyru","html_url":"https://github.com/tyru","followers_url":"https://api.github.com/users/tyru/followers","following_url":"https://api.github.com/users/tyru/following{/other_user}","gists_url":"https://api.github.com/users/tyru/gists{/gist_id}","starred_url":"https://api.github.com/users/tyru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyru/subscriptions","organizations_url":"https://api.github.com/users/tyru/orgs","repos_url":"https://api.github.com/users/tyru/repos","events_url":"https://api.github.com/users/tyru/events{/privacy}","received_events_url":"https://api.github.com/users/tyru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-04T16:31:50Z","updated_at":"2018-09-04T16:36:06Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/thinca/vim-quickrun/pulls/180","html_url":"https://github.com/thinca/vim-quickrun/pull/180","diff_url":"https://github.com/thinca/vim-quickrun/pull/180.diff","patch_url":"https://github.com/thinca/vim-quickrun/pull/180.patch"},"body":"Prolog の処理系 SWI prolog と GNU prolog を追加しました。\r\nテスト用に使ったスクリプトです。\r\n\r\n```prolog\r\nmain :-\r\n  write('hello'),nl,\r\n  write('world'),nl,\r\n  nl,\r\n  write('prolog')\r\n  % ,halt.    % halt がない場合もある場合も必ず終了するようにする\r\n  .\r\n:- initialization(main).\r\n```\r\n\r\nProlog はスクリプトで `halt.` がなければ Prolog のプロンプト (REPL) が立ち上がるので、\r\nそれぞれ `-g` (SWI), `--query-goal` (GNU) で 終了するようにしています。\r\n\r\n追記：\r\n確認環境：Windows Subsystem Linux (Debian 9.5)"},"comment":{"url":"https://api.github.com/repos/thinca/vim-quickrun/issues/comments/418435311","html_url":"https://github.com/thinca/vim-quickrun/pull/180#issuecomment-418435311","issue_url":"https://api.github.com/repos/thinca/vim-quickrun/issues/180","id":418435311,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODQzNTMxMQ==","user":{"login":"tyru","id":48169,"node_id":"MDQ6VXNlcjQ4MTY5","avatar_url":"https://avatars3.githubusercontent.com/u/48169?v=4","gravatar_id":"","url":"https://api.github.com/users/tyru","html_url":"https://github.com/tyru","followers_url":"https://api.github.com/users/tyru/followers","following_url":"https://api.github.com/users/tyru/following{/other_user}","gists_url":"https://api.github.com/users/tyru/gists{/gist_id}","starred_url":"https://api.github.com/users/tyru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyru/subscriptions","organizations_url":"https://api.github.com/users/tyru/orgs","repos_url":"https://api.github.com/users/tyru/repos","events_url":"https://api.github.com/users/tyru/events{/privacy}","received_events_url":"https://api.github.com/users/tyru/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T16:36:06Z","updated_at":"2018-09-04T16:36:06Z","author_association":"CONTRIBUTOR","body":"GNU Prolog は `--quiet` に相当するオプションが無いっぽい？のでちょっとうるさい出力になってます。\r\n\r\n```\r\nGNU Prolog 1.4.5 (64 bits)\r\nCompiled Sep  5 2018, 00:35:32 with gcc\r\nBy Daniel Diaz\r\nCopyright (C) 1999-2018 Daniel Diaz\r\ncompiling /home/tyru/volt/repos/github.com/thinca/vim-quickrun/test.pl for byte code...\r\n/home/tyru/volt/repos/github.com/thinca/vim-quickrun/test.pl compiled, 8 lines read - 580 bytes written, 21 ms\r\nhello\r\nworld\r\n\r\nprolog| ?- halt.\r\n```"}}
{"actor":{"display_login":"tyru"}}