Moving test based to lexer_base
Creating a rule class , list of tests, operator, starting value
Passing const end to decode fns to test for end of string/stream.