Lexical parsing

see http://en.wikipedia.org/wiki/Lexing In Axapta you can use ScannerClass class for doing it