Original Parser

version 1 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 1 - debug - not for release

    To say the parsed command:
        say "[bracket] ";
        repeat with Nth running from 1 to the number of words in the command:
            say "'[the player's input buffer from (the Nth word's position of the player's parsed command) to (the Nth word's position of the player's parsed command + the Nth word's length of the player's parsed command - 1)]' ";
            if the Nth word of the player's parsed command is a word unknown by the game, say "? ";
            otherwise say the Nth word of the player's parsed command;
            if Nth < the number of words in the command, say " / ";
        say " [close bracket][line break]".