First Milestone for the lexer. Implement all most all functions except
the flag. Still got many minor bugs need to be fixed