{"action":"opened","issue":{"url":"https://api.github.com/repos/jschwartzentruber/avalanche/issues/1","repository_url":"https://api.github.com/repos/jschwartzentruber/avalanche","labels_url":"https://api.github.com/repos/jschwartzentruber/avalanche/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jschwartzentruber/avalanche/issues/1/comments","events_url":"https://api.github.com/repos/jschwartzentruber/avalanche/issues/1/events","html_url":"https://github.com/jschwartzentruber/avalanche/issues/1","id":165891169,"number":1,"title":"IndexError parsing RegexSymbol","user":{"login":"tysmith","id":4673661,"avatar_url":"https://avatars.githubusercontent.com/u/4673661?v=3","gravatar_id":"","url":"https://api.github.com/users/tysmith","html_url":"https://github.com/tysmith","followers_url":"https://api.github.com/users/tysmith/followers","following_url":"https://api.github.com/users/tysmith/following{/other_user}","gists_url":"https://api.github.com/users/tysmith/gists{/gist_id}","starred_url":"https://api.github.com/users/tysmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tysmith/subscriptions","organizations_url":"https://api.github.com/users/tysmith/orgs","repos_url":"https://api.github.com/users/tysmith/repos","events_url":"https://api.github.com/users/tysmith/events{/privacy}","received_events_url":"https://api.github.com/users/tysmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-15T22:47:05Z","updated_at":"2016-07-15T22:47:05Z","closed_at":null,"body":"Grammar('root /[+-*]/')\r\n\r\nTriggers the following error:\r\n\r\nTraceback (most recent call last):\r\n  File \"tests.py\", line 407, in test_regex_chars\r\n    Grammar('root /[+-*]/')\r\n  File \"avalanche.py\", line 393, in __init__\r\n    self.parse(grammar, imports)\r\n  File \"avalanche.py\", line 479, in parse\r\n    sym = ConcatSymbol.parse(sym_name, sym_def, pstate)\r\n  File \"avalanche.py\", line 831, in parse\r\n    result.extend(Symbol.parse(defn, pstate))\r\n  File \"avalanche.py\", line 698, in parse\r\n    res, remain = Symbol._parse(defn, pstate, False)\r\n  File \"avalanche.py\", line 667, in _parse\r\n    sym, defn = RegexSymbol.parse(defn, pstate)\r\n  File \"avalanche.py\", line 979, in parse\r\n    if alpha[-1] == \"-\": # move this so we don't end up expanding a false range\r\nIndexError: list index out of range"}}
{"actor":{"display_login":"tysmith"}}