{"action":"created","issue":{"url":"https://api.github.com/repos/orangeduck/mpc/issues/46","repository_url":"https://api.github.com/repos/orangeduck/mpc","labels_url":"https://api.github.com/repos/orangeduck/mpc/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/orangeduck/mpc/issues/46/comments","events_url":"https://api.github.com/repos/orangeduck/mpc/issues/46/events","html_url":"https://github.com/orangeduck/mpc/issues/46","id":148074039,"number":46,"title":"First example doesn't work - print_ast is passed a value_t","user":{"login":"ASkeptic","id":18443865,"avatar_url":"https://avatars.githubusercontent.com/u/18443865?v=3","gravatar_id":"","url":"https://api.github.com/users/ASkeptic","html_url":"https://github.com/ASkeptic","followers_url":"https://api.github.com/users/ASkeptic/followers","following_url":"https://api.github.com/users/ASkeptic/following{/other_user}","gists_url":"https://api.github.com/users/ASkeptic/gists{/gist_id}","starred_url":"https://api.github.com/users/ASkeptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASkeptic/subscriptions","organizations_url":"https://api.github.com/users/ASkeptic/orgs","repos_url":"https://api.github.com/users/ASkeptic/repos","events_url":"https://api.github.com/users/ASkeptic/events{/privacy}","received_events_url":"https://api.github.com/users/ASkeptic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-13T14:10:15Z","updated_at":"2016-04-19T03:24:46Z","closed_at":null,"body":"Looks like r.output isn't an mpc_ast_t*, it is a mpc_val_t*\r\n\r\nNot only that, I'm not sure how to convert a val_t to an  ast_t\r\n\r\nI am missing something obvious or does the very first example not compile?\r\n\r\n  mpc_result_t r;\r\n\r\n  if(mpc_parse(\"input\", input, Maths, &r)) {\r\n    mpc_ast_print(r.output);\r\n    mpc_ast_delete(r.output);\r\n  } else {"},"comment":{"url":"https://api.github.com/repos/orangeduck/mpc/issues/comments/211709667","html_url":"https://github.com/orangeduck/mpc/issues/46#issuecomment-211709667","issue_url":"https://api.github.com/repos/orangeduck/mpc/issues/46","id":211709667,"user":{"login":"ASkeptic","id":18443865,"avatar_url":"https://avatars.githubusercontent.com/u/18443865?v=3","gravatar_id":"","url":"https://api.github.com/users/ASkeptic","html_url":"https://github.com/ASkeptic","followers_url":"https://api.github.com/users/ASkeptic/followers","following_url":"https://api.github.com/users/ASkeptic/following{/other_user}","gists_url":"https://api.github.com/users/ASkeptic/gists{/gist_id}","starred_url":"https://api.github.com/users/ASkeptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASkeptic/subscriptions","organizations_url":"https://api.github.com/users/ASkeptic/orgs","repos_url":"https://api.github.com/users/ASkeptic/repos","events_url":"https://api.github.com/users/ASkeptic/events{/privacy}","received_events_url":"https://api.github.com/users/ASkeptic/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T03:24:46Z","updated_at":"2016-04-19T03:24:46Z","body":"I'm not exactly sure of the question but I might be able to answer it anyway - I had to make that change to be able to compile the first example in visual studio while using the .h and .c files directly.     "}}