{"action":"closed","issue":{"url":"https://api.github.com/repos/MCSN-project2014/APproject/issues/27","labels_url":"https://api.github.com/repos/MCSN-project2014/APproject/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/MCSN-project2014/APproject/issues/27/comments","events_url":"https://api.github.com/repos/MCSN-project2014/APproject/issues/27/events","html_url":"https://github.com/MCSN-project2014/APproject/issues/27","id":53225024,"number":27,"title":"Function Declaration and Function Call (AST)","user":{"login":"lucarin91","id":6934358,"avatar_url":"https://avatars.githubusercontent.com/u/6934358?v=3","gravatar_id":"","url":"https://api.github.com/users/lucarin91","html_url":"https://github.com/lucarin91","followers_url":"https://api.github.com/users/lucarin91/followers","following_url":"https://api.github.com/users/lucarin91/following{/other_user}","gists_url":"https://api.github.com/users/lucarin91/gists{/gist_id}","starred_url":"https://api.github.com/users/lucarin91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucarin91/subscriptions","organizations_url":"https://api.github.com/users/lucarin91/orgs","repos_url":"https://api.github.com/users/lucarin91/repos","events_url":"https://api.github.com/users/lucarin91/events{/privacy}","received_events_url":"https://api.github.com/users/lucarin91/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MCSN-project2014/APproject/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/MCSN-project2014/APproject/milestones/3","labels_url":"https://api.github.com/repos/MCSN-project2014/APproject/milestones/3/labels","id":910131,"number":3,"title":"Code Generator","description":"","creator":{"login":"teto1992","id":6525102,"avatar_url":"https://avatars.githubusercontent.com/u/6525102?v=3","gravatar_id":"","url":"https://api.github.com/users/teto1992","html_url":"https://github.com/teto1992","followers_url":"https://api.github.com/users/teto1992/followers","following_url":"https://api.github.com/users/teto1992/following{/other_user}","gists_url":"https://api.github.com/users/teto1992/gists{/gist_id}","starred_url":"https://api.github.com/users/teto1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teto1992/subscriptions","organizations_url":"https://api.github.com/users/teto1992/orgs","repos_url":"https://api.github.com/users/teto1992/repos","events_url":"https://api.github.com/users/teto1992/events{/privacy}","received_events_url":"https://api.github.com/users/teto1992/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2014-12-19T14:12:46Z","updated_at":"2015-01-02T11:39:10Z","due_on":"2014-12-30T23:00:00Z","closed_at":null},"comments":1,"created_at":"2015-01-01T18:07:38Z","updated_at":"2015-01-02T11:39:10Z","closed_at":"2015-01-02T11:39:10Z","body":"I see that in the FsCodeGenerator(@teto1992 , @dido18) there is same mistake about the function call and the function declaration. Here I explain how have to be represented in the AST structure:\r\n```c#\r\nObj fun = new Obj(){name=\"provaFun\"};\r\nNode funDec = new Node(Labels.FunDec, fun); //give to he node the Obj of function\r\nfunDec.addChildren(new Node(Labels.Block)); //the first children have to be the block of the function\r\nfunDec.addChildren(new Term(new Obj(){name=\"a\"})); //the other children are the formal parameter\r\n```\r\nInstead the function call node have to be:\r\n```c#\r\nNode funCall = new Node(Labels.FunCall, fun);//give to the node the Obj of the function\r\nfunCall.addChildren(new Term(7));//all the children are the actual parameter of the function call\r\n```"}}