{"action":"created","issue":{"url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1938","labels_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1938/labels{/name}","comments_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1938/comments","events_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1938/events","html_url":"https://github.com/idris-lang/Idris-dev/pull/1938","id":58512649,"number":1938,"title":"WIP: Better error messages for parsing operators","user":{"login":"ahmadsalim","id":1647846,"avatar_url":"https://avatars.githubusercontent.com/u/1647846?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmadsalim","html_url":"https://github.com/ahmadsalim","followers_url":"https://api.github.com/users/ahmadsalim/followers","following_url":"https://api.github.com/users/ahmadsalim/following{/other_user}","gists_url":"https://api.github.com/users/ahmadsalim/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadsalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadsalim/subscriptions","organizations_url":"https://api.github.com/users/ahmadsalim/orgs","repos_url":"https://api.github.com/users/ahmadsalim/repos","events_url":"https://api.github.com/users/ahmadsalim/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadsalim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-22T18:33:02Z","updated_at":"2015-02-22T18:34:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/idris-lang/Idris-dev/pulls/1938","html_url":"https://github.com/idris-lang/Idris-dev/pull/1938","diff_url":"https://github.com/idris-lang/Idris-dev/pull/1938.diff","patch_url":"https://github.com/idris-lang/Idris-dev/pull/1938.patch"},"body":"The idea is to make better errors for parsing expressions with operators without fixity, so instead of\r\n\r\n```idris\r\nIdris> 2 *** 2\r\n(input):1:3: error: expected: \"$\",\r\n\"$>\", \"&&\", \"+\", \"++\", \"-\",\r\n\"->\", \".\", \"/\", \"/=\", \"::\", \"<\",\r\n\"<#>\", \"<$\", \"<$>\", \"<*>\",\r\n\"<+>\", \"<->\", \"<<\", \"<=\", \"<|>\",\r\n\"=\", \"==\", \">\", \">=\", \">>\",\r\n\">>=\", \"\\\\\\\\\", \"`\", \"||\", \"~=~\",\r\nambiguous use of a left-associative operator,\r\nambiguous use of a non-associative operator,\r\nambiguous use of a right-associative operator,\r\nend of input, function argument,\r\nmatching application expression\r\n2 *** 2<EOF> \r\n```\r\n\r\nIt will write:\r\n\r\n```idris\r\nIdris> 2 *** 2\r\n(input):1:7: error: unexpected\r\n    Operator without known fixity:\r\n    ***, expected: space\r\n2 *** 2<EOF>\r\n```"},"comment":{"url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/comments/75449886","html_url":"https://github.com/idris-lang/Idris-dev/pull/1938#issuecomment-75449886","issue_url":"https://api.github.com/repos/idris-lang/Idris-dev/issues/1938","id":75449886,"user":{"login":"ahmadsalim","id":1647846,"avatar_url":"https://avatars.githubusercontent.com/u/1647846?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmadsalim","html_url":"https://github.com/ahmadsalim","followers_url":"https://api.github.com/users/ahmadsalim/followers","following_url":"https://api.github.com/users/ahmadsalim/following{/other_user}","gists_url":"https://api.github.com/users/ahmadsalim/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadsalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadsalim/subscriptions","organizations_url":"https://api.github.com/users/ahmadsalim/orgs","repos_url":"https://api.github.com/users/ahmadsalim/repos","events_url":"https://api.github.com/users/ahmadsalim/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadsalim/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T18:34:29Z","updated_at":"2015-02-22T18:34:29Z","body":"However, I have an issue now with external syntax so it states e.g.\r\n\r\n```idris\r\n(input):1:7: error: unexpected\r\n    Operator without known fixity:\r\n    .., expected: space\r\n```\r\nI am unsure how to fix this issue, so I thought I will create the PR if anyone else has a good idea."}}