{"action":"created","issue":{"url":"https://api.github.com/repos/musictheory/oj/issues/45","labels_url":"https://api.github.com/repos/musictheory/oj/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/musictheory/oj/issues/45/comments","events_url":"https://api.github.com/repos/musictheory/oj/issues/45/events","html_url":"https://github.com/musictheory/oj/issues/45","id":57883783,"number":45,"title":"Add support for compiling files containing JSX","user":{"login":"jmarr","id":34833,"avatar_url":"https://avatars.githubusercontent.com/u/34833?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarr","html_url":"https://github.com/jmarr","followers_url":"https://api.github.com/users/jmarr/followers","following_url":"https://api.github.com/users/jmarr/following{/other_user}","gists_url":"https://api.github.com/users/jmarr/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarr/subscriptions","organizations_url":"https://api.github.com/users/jmarr/orgs","repos_url":"https://api.github.com/users/jmarr/repos","events_url":"https://api.github.com/users/jmarr/events{/privacy}","received_events_url":"https://api.github.com/users/jmarr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-17T05:02:47Z","updated_at":"2015-02-17T07:32:45Z","closed_at":null,"body":"My app is using oj for model and controller code and [React](http://facebook.github.io/react/) for rendering the UI. React supports [JSX](http://facebook.github.io/jsx/), so most of our UI components are JSX files.\r\n\r\nRight now, we can't use oj objects in our jsx files because the oj complier doesn't understand jsx and the jsx compiler doesn't understand oj.\r\n\r\nIf the oj compiler could handle jsx files, then we could use oj objects in our jsx files."},"comment":{"url":"https://api.github.com/repos/musictheory/oj/issues/comments/74627791","html_url":"https://github.com/musictheory/oj/issues/45#issuecomment-74627791","issue_url":"https://api.github.com/repos/musictheory/oj/issues/45","id":74627791,"user":{"login":"iccir","id":1097294,"avatar_url":"https://avatars.githubusercontent.com/u/1097294?v=3","gravatar_id":"","url":"https://api.github.com/users/iccir","html_url":"https://github.com/iccir","followers_url":"https://api.github.com/users/iccir/followers","following_url":"https://api.github.com/users/iccir/following{/other_user}","gists_url":"https://api.github.com/users/iccir/gists{/gist_id}","starred_url":"https://api.github.com/users/iccir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iccir/subscriptions","organizations_url":"https://api.github.com/users/iccir/orgs","repos_url":"https://api.github.com/users/iccir/repos","events_url":"https://api.github.com/users/iccir/events{/privacy}","received_events_url":"https://api.github.com/users/iccir/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T07:32:45Z","updated_at":"2015-02-17T07:32:45Z","body":"This would involve 4 steps:\r\n1) Integrate the JSX tokenizer from esprima-fb or espree.\r\n2) Integrate the JSX parser from esprima-fb or espree.\r\n3) Finish #44 and allow JSX AST nodes to pass through\r\n4) Find a code generator that supports JSX (escodegen doesn't appear to have any forks with jsx support)"}}