Allow compileAttributes parse function declaration

such as
unsigned int factorial(unsigned int);
Add unittest for parsing function declaration