Implement generateFunction
Add code generation for struct type
Update spec, fix compile error
Add struct example
Fix compile error at struct setter
Add struct setter example
Add function and struct getter/setter test case
Merge pull request #6 from infosia/generateFunction

Implement generateFunction