{"action":"created","issue":{"url":"https://api.github.com/repos/Nairolf21/miniJava-compiler/issues/9","labels_url":"https://api.github.com/repos/Nairolf21/miniJava-compiler/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Nairolf21/miniJava-compiler/issues/9/comments","events_url":"https://api.github.com/repos/Nairolf21/miniJava-compiler/issues/9/events","html_url":"https://github.com/Nairolf21/miniJava-compiler/pull/9","id":123993760,"number":9,"title":"Parsing of class method declarations","user":{"login":"Nairolf21","id":8713428,"avatar_url":"https://avatars.githubusercontent.com/u/8713428?v=3","gravatar_id":"","url":"https://api.github.com/users/Nairolf21","html_url":"https://github.com/Nairolf21","followers_url":"https://api.github.com/users/Nairolf21/followers","following_url":"https://api.github.com/users/Nairolf21/following{/other_user}","gists_url":"https://api.github.com/users/Nairolf21/gists{/gist_id}","starred_url":"https://api.github.com/users/Nairolf21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nairolf21/subscriptions","organizations_url":"https://api.github.com/users/Nairolf21/orgs","repos_url":"https://api.github.com/users/Nairolf21/repos","events_url":"https://api.github.com/users/Nairolf21/events{/privacy}","received_events_url":"https://api.github.com/users/Nairolf21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-27T19:42:56Z","updated_at":"2015-12-28T17:05:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Nairolf21/miniJava-compiler/pulls/9","html_url":"https://github.com/Nairolf21/miniJava-compiler/pull/9","diff_url":"https://github.com/Nairolf21/miniJava-compiler/pull/9.diff","patch_url":"https://github.com/Nairolf21/miniJava-compiler/pull/9.patch"},"body":"Je viens d'ajouter un fichier test `classmethoddeclaration.java` pour tester la déclaration de méthodes de classe. \r\n\r\nSeulement, avec les règles de grammaires dans l'état où elles étaient, il y avait un conflit \"shift/reduce\". Pour fixer ce problème, j'ai commenté dans la règle `classMemberDeclaration` la règle `fieldDeclaration`. Cela désactive par conséquent la déclaration d'attributs dans une classe. Le fichier `testclass.java` ne fonctionne plus. Je pense que le conflit est présent parce qu'il y a la règle : \r\n\r\n    variableDeclaratorId:\r\n        identifier\r\n\r\net \r\n\r\n    methodDeclarator:\r\n        identifier LPAREN RPAREN \r\n\r\nLe parser ne sait pas lorsqu'il obtient un `identifier` s'il doit passer au token suivant (\"shift\") ou s'il doit faire une réduction de règle identifier->variableDeclaratorId (\"reduce\"). \r\n\r\nJe crée quand même la pull request car ce que j'ai fait permet de parser les déclarations de méthodes. "},"comment":{"url":"https://api.github.com/repos/Nairolf21/miniJava-compiler/issues/comments/167604267","html_url":"https://github.com/Nairolf21/miniJava-compiler/pull/9#issuecomment-167604267","issue_url":"https://api.github.com/repos/Nairolf21/miniJava-compiler/issues/9","id":167604267,"user":{"login":"Nairolf21","id":8713428,"avatar_url":"https://avatars.githubusercontent.com/u/8713428?v=3","gravatar_id":"","url":"https://api.github.com/users/Nairolf21","html_url":"https://github.com/Nairolf21","followers_url":"https://api.github.com/users/Nairolf21/followers","following_url":"https://api.github.com/users/Nairolf21/following{/other_user}","gists_url":"https://api.github.com/users/Nairolf21/gists{/gist_id}","starred_url":"https://api.github.com/users/Nairolf21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nairolf21/subscriptions","organizations_url":"https://api.github.com/users/Nairolf21/orgs","repos_url":"https://api.github.com/users/Nairolf21/repos","events_url":"https://api.github.com/users/Nairolf21/events{/privacy}","received_events_url":"https://api.github.com/users/Nairolf21/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T17:05:39Z","updated_at":"2015-12-28T17:05:39Z","body":"Cette PR ne doit pas être mergé car la déclarations de variable à l'intérieur d'une classe n'est plus possible ! \r\n\r\nJe vais travailler au problème et l'expliquer davantage sur ce fil. "}}