{"action":"opened","issue":{"url":"https://api.github.com/repos/BNFC/bnfc/issues/256","repository_url":"https://api.github.com/repos/BNFC/bnfc","labels_url":"https://api.github.com/repos/BNFC/bnfc/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/BNFC/bnfc/issues/256/comments","events_url":"https://api.github.com/repos/BNFC/bnfc/issues/256/events","html_url":"https://github.com/BNFC/bnfc/issues/256","id":440313316,"node_id":"MDU6SXNzdWU0NDAzMTMzMTY=","number":256,"title":"RegExp: Nested subtractions are translated wrongly to Alex","user":{"login":"andreasabel","id":1155218,"node_id":"MDQ6VXNlcjExNTUyMTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1155218?v=4","gravatar_id":"","url":"https://api.github.com/users/andreasabel","html_url":"https://github.com/andreasabel","followers_url":"https://api.github.com/users/andreasabel/followers","following_url":"https://api.github.com/users/andreasabel/following{/other_user}","gists_url":"https://api.github.com/users/andreasabel/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasabel/subscriptions","organizations_url":"https://api.github.com/users/andreasabel/orgs","repos_url":"https://api.github.com/users/andreasabel/repos","events_url":"https://api.github.com/users/andreasabel/events{/privacy}","received_events_url":"https://api.github.com/users/andreasabel/received_events","type":"User","site_admin":false},"labels":[{"id":30980521,"node_id":"MDU6TGFiZWwzMDk4MDUyMQ==","url":"https://api.github.com/repos/BNFC/bnfc/labels/Haskell","name":"Haskell","color":"d7e102","default":false},{"id":19854468,"node_id":"MDU6TGFiZWwxOTg1NDQ2OA==","url":"https://api.github.com/repos/BNFC/bnfc/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-05-04T11:27:29Z","updated_at":"2019-05-04T11:27:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"LBNF does not support nested subtraction in regexps, like in \r\n```\r\ntoken Name (char - [ \"(){};.@\\\"\" ] - [ \" \\n\\t\" ]) + ;\r\n```\r\nIt works with parentheses:\r\n```\r\ntoken Name ((char - [ \"(){};.@\\\"\" ]) - [ \" \\n\\t\" ]) + ;\r\n```\r\nThis is translated to Alex as\r\n```\r\n(($u # [\\( \\) \\{ \\} \\; \\. \\@ \\\"]) # [\\  \\n \\t]) +\r\n```\r\nwhich is rejected by Alex.  However, Alex supports it _without_ parentheses:\r\n```\r\n($u # [\\( \\) \\{ \\} \\; \\. \\@ \\\"] # [\\  \\n \\t]) +\r\n```\r\nBoth BNFC and Alex are behaving silly here, I must say."}}
{"actor":{"display_login":"andreasabel"}}