I'm trying to learn how to use flex and I'm having some issues:
- each time when a token is found I want it to be store in a token I created, that part works just fine!
the issue begins when it gets to the next token for example, if I've written: "a bcd" , it should identify it as a token a, and then as a token bcd, instead I'm getting the next:
token a(at the first scan),
and at the second scan I'm getting 2 tokens:
token a
token a bcd.
What am I missing? (When it recognize bcd, it just changes the token a to a bcd for some reason).