[comp.lang.pascal] Parsing in Pascal

PRL@PSUVM.BITNET (05/21/89)

Anyone have any idea how to implement this (REXX-like) instruction:

     procedure parse(main_string, template : string);

     example: parse('Now is the time','first_word . third_on');

              would assign the global variable first_word to 'Now'
              and fourth_word to 'the time'

The question is really: Is there a way to treat a string as the name
of an actual variable?


                                         Thanks,

                                           Randy