{"action":"opened","issue":{"url":"https://api.github.com/repos/cdglabs/ohm/issues/158","repository_url":"https://api.github.com/repos/cdglabs/ohm","labels_url":"https://api.github.com/repos/cdglabs/ohm/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/cdglabs/ohm/issues/158/comments","events_url":"https://api.github.com/repos/cdglabs/ohm/issues/158/events","html_url":"https://github.com/cdglabs/ohm/issues/158","id":178125514,"number":158,"title":"Allow for context-sensitive parsing","user":{"login":"rtoal","id":538615,"avatar_url":"https://avatars.githubusercontent.com/u/538615?v=3","gravatar_id":"","url":"https://api.github.com/users/rtoal","html_url":"https://github.com/rtoal","followers_url":"https://api.github.com/users/rtoal/followers","following_url":"https://api.github.com/users/rtoal/following{/other_user}","gists_url":"https://api.github.com/users/rtoal/gists{/gist_id}","starred_url":"https://api.github.com/users/rtoal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtoal/subscriptions","organizations_url":"https://api.github.com/users/rtoal/orgs","repos_url":"https://api.github.com/users/rtoal/repos","events_url":"https://api.github.com/users/rtoal/events{/privacy}","received_events_url":"https://api.github.com/users/rtoal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T17:35:32Z","updated_at":"2016-09-20T17:35:32Z","closed_at":null,"body":"It would be helpful to support state during parsing to enable such things as the [off-side rule](https://en.wikipedia.org/wiki/Off-side_rule). This seems to be already called out as a planned extension. From the [MSA paper](https://ohmlang.github.io/pubs/dls2016/modular-semantic-actions.pdf):\r\n\r\n> While we have found Ohm’s expressive power to be sufficient for most tasks, several users have requested better support for parsing context-sensitive languages like HTML and Python. We plan to investigate whether a solution like parsing contexts [10] (as implemented in PetitParser [16]) could be adapted to Ohm."}}
{"actor":{"display_login":"rtoal"}}