Small lexical analyser I wrote for my compilers design course in college. It recognises streams of input characters for decimal, octal and hexadecimal characters.