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
\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