Starting States eat my bytes!

2009-09-24 Thread ZuS
I use exclusive starting states in flex to jump in and out of different sets of tokens as I parse a somewhat complex binary input. Let me show this to you visually. I will represent the yytext pointer with []. 0x53 [0xfb] 0x0a 0x01 0x02 As you can see, I just read the 0xfb byte. I know that bytes

Re: Starting States eat my bytes!

2009-09-24 Thread ZuS
After being unable to figure this out for hours, I kindof just hit me while watching TV. Luckily no one has come in with a response yet, since I really hate to waste people's time with something as idiotic as this. Naturally, CONTEXT2 skips the 0x0a not because of any state shift issue, but becau