{"action":"opened","issue":{"url":"https://api.github.com/repos/ColinH/PEGTL/issues/9","labels_url":"https://api.github.com/repos/ColinH/PEGTL/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ColinH/PEGTL/issues/9/comments","events_url":"https://api.github.com/repos/ColinH/PEGTL/issues/9/events","html_url":"https://github.com/ColinH/PEGTL/issues/9","id":92154233,"number":9,"title":"How to use the `state< S, R... >` metarule.","user":{"login":"izzycecil","id":315584,"avatar_url":"https://avatars.githubusercontent.com/u/315584?v=3","gravatar_id":"","url":"https://api.github.com/users/izzycecil","html_url":"https://github.com/izzycecil","followers_url":"https://api.github.com/users/izzycecil/followers","following_url":"https://api.github.com/users/izzycecil/following{/other_user}","gists_url":"https://api.github.com/users/izzycecil/gists{/gist_id}","starred_url":"https://api.github.com/users/izzycecil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izzycecil/subscriptions","organizations_url":"https://api.github.com/users/izzycecil/orgs","repos_url":"https://api.github.com/users/izzycecil/repos","events_url":"https://api.github.com/users/izzycecil/events{/privacy}","received_events_url":"https://api.github.com/users/izzycecil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-30T17:39:16Z","updated_at":"2015-06-30T17:39:16Z","closed_at":null,"body":"I'm having trouble understanding the `state` metarule, and there aren't currently any examples that use it (please correct me if I'm wrong, and point me to the example). Just some basic questions:\r\n* What constructors must be available for my state type?\r\n* What should the signature of `success()` be?\r\nI think a small example would really help me out, if possible."}}