added PublicMethod to grammar.