add function protos in lex