Added lexer_t and parser_t typedefs for generic lexer/parser functions.

Replaced use of void * with the respective typedef.