{"action":"created","issue":{"url":"https://api.github.com/repos/pegjs/pegjs/issues/303","labels_url":"https://api.github.com/repos/pegjs/pegjs/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/pegjs/pegjs/issues/303/comments","events_url":"https://api.github.com/repos/pegjs/pegjs/issues/303/events","html_url":"https://github.com/pegjs/pegjs/pull/303","id":48174557,"number":303,"title":"Allow multiply output types and add new output type \"ast\".","user":{"login":"Mingun","id":450131,"avatar_url":"https://avatars.githubusercontent.com/u/450131?v=3","gravatar_id":"","url":"https://api.github.com/users/Mingun","html_url":"https://github.com/Mingun","followers_url":"https://api.github.com/users/Mingun/followers","following_url":"https://api.github.com/users/Mingun/following{/other_user}","gists_url":"https://api.github.com/users/Mingun/gists{/gist_id}","starred_url":"https://api.github.com/users/Mingun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mingun/subscriptions","organizations_url":"https://api.github.com/users/Mingun/orgs","repos_url":"https://api.github.com/users/Mingun/repos","events_url":"https://api.github.com/users/Mingun/events{/privacy}","received_events_url":"https://api.github.com/users/Mingun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-08T18:19:57Z","updated_at":"2015-06-17T10:33:15Z","closed_at":"2015-06-17T05:37:28Z","pull_request":{"url":"https://api.github.com/repos/pegjs/pegjs/pulls/303","html_url":"https://github.com/pegjs/pegjs/pull/303","diff_url":"https://github.com/pegjs/pegjs/pull/303.diff","patch_url":"https://github.com/pegjs/pegjs/pull/303.patch"},"body":"Now `options.output` may be an array of supported output types. Output types is:\r\n- `parser`\r\n- `source`\r\n- `ast` (new)\r\n\r\nIf output types are an array, `buildParser` returns object whose keys are array elements, and values -- the appropriate results of generation."},"comment":{"url":"https://api.github.com/repos/pegjs/pegjs/issues/comments/112748895","html_url":"https://github.com/pegjs/pegjs/pull/303#issuecomment-112748895","issue_url":"https://api.github.com/repos/pegjs/pegjs/issues/303","id":112748895,"user":{"login":"Mingun","id":450131,"avatar_url":"https://avatars.githubusercontent.com/u/450131?v=3","gravatar_id":"","url":"https://api.github.com/users/Mingun","html_url":"https://github.com/Mingun","followers_url":"https://api.github.com/users/Mingun/followers","following_url":"https://api.github.com/users/Mingun/following{/other_user}","gists_url":"https://api.github.com/users/Mingun/gists{/gist_id}","starred_url":"https://api.github.com/users/Mingun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mingun/subscriptions","organizations_url":"https://api.github.com/users/Mingun/orgs","repos_url":"https://api.github.com/users/Mingun/repos","events_url":"https://api.github.com/users/Mingun/events{/privacy}","received_events_url":"https://api.github.com/users/Mingun/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T10:33:15Z","updated_at":"2015-06-17T10:33:15Z","body":"> They expose what a developer-level API (the AST format) in user-level function (PEG.buildParser). I think it’s better to have it somewhat hidden and accessible only via plugins. \r\n\r\nHmm... but users of PEGjs is developers, so, developer-level === user-level, are not it?\r\n\r\n> It’s fairly easy to accomplish your goals without the extensions:\r\n\r\nYes, it is possible, but users which the developers using PEGjs for the analysis of grammar will find it less convenient than if this function was realized directly in library."}}