Moved main() function from lexer to main.c.

Changed main() to return result of lexer function.