Original Parser

version 1 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Parse Token - not for release

    To say that (obj - a pattern union) matched with (former list size - a number):
        if obj is currently an object:
            say " [bracket]ND returned [obj as an object][close bracket][line break]";
        otherwise:
            say " [bracket]ND appended to the multiple object list:[line break]";
            increment the former list size ; [not really, just makes the printout neater & more correct. ]
            repeat through the multiple-object list starting at the former list size:
                say " Entry [chosen]: [the multiple-object list element] ([the multiple-object list element as a debugging number])[line break]";
            say " List now has size [number of elements in the multiple-object list][close bracket][line break]".