How can I access the current character from token or string for creating a lexer in C++ [closed]

  access-token, c++, lexer, python, tokenize

I want to create my very own programming language called falcon
I am trying to apply lexer in two different languages called C++ and Python but.
I can not access the current character generated by tokens
Please give me solution in code
It self.

Source: Windows Questions C++