Add to your lex file a rule that matches null character
\0 whatever....
gplex will crash with exception:
Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
at QUT.Gplex.Parser.CharacterUtilities.EscapedChar (System.String source, System.Int32& index) [0x00000] in :0
Comments: ** Comment from web user: k_john_gough **
\0 whatever....
gplex will crash with exception:
Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
at QUT.Gplex.Parser.CharacterUtilities.EscapedChar (System.String source, System.Int32& index) [0x00000] in :0
Comments: ** Comment from web user: k_john_gough **
Hi macias
Yes, this one is a bug. There are tests with literal "\0" characters in the pattern, but not at the end of the pattern. Thanks for turning this up. I have committed the change, and it will go into the next refresh along with a couple of other changes including labelling the generated code files to keep fxcop happy (happier).