Original Parser

version 1 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter 3 - From the Output i6t File

    To decide what understood word is the missing verb for noun-only commands: (- UnknownVerb((+the verb+)) -).

    To decide what number is (text - a command parser error) issued as a low-level parser error:
    (- ParserError({text}) -).

    To decide if (text - a command parser error) contains text:
    (- (({text} ofclass Routine) || ({text} ofclass String)) -).

    [1]
    The saved score is a number that varies.
    The saved turn count is a number that varies.
    [2]
    The pending paragraph break is a truth state that varies.
    The paragraphing status is a number that varies.
    The UNDO status is an UNDO reason that varies.
    The TRACE testing command setting is a number that varies.
    The parser callback is an object based rule producing nothing that varies.
    [To decide which 0-based index to he parser's results: (-parser_results-).]

    The pronoun used is an understood word that varies.
    The saved pronoun used is an understood word that varies.
    The saved pronoun reference object is an object that varies.

    [8]
    Process the multiple object list is a truth state that varies.
    The numeric word is an understood word that varies.
    The action out of world is a truth state that varies.
    To decide what action name is the parser's returned action: (- parser_results-->ACTION_PRES -).
    To decide what object is the parser's returned noun: (- parser_results-->INP1_PRES -).
    To decide what object is the parser's returned second noun: (- parser_results-->INP2_PRES -).
    To change the parser's returned action to (act - an action name): (- parser_results-->ACTION_PRES = {act}; -).
    To change the parser's returned noun to (obj - object):
    (- parser_results-->INP1_PRES = {obj}; -).
    To change the parser's returned second noun to (obj - object):
    (- parser_results-->INP2_PRES = {obj}; -).
    To change the parser's returned parameter count to (n - number):
    (- parser_results-->NO_INPS_PRES = {n}; -).
    To change the parser's returned noun # (Nth - number) to (obj - object):
    (- parser_results-->({Nth} + INP1_PRES) = {obj}; -).
    To reset the parser's results:
    (- parser_results-->ACTION_PRES = 0;
        parser_results-->NO_INPS_PRES = 0;
        parser_results-->INP1_PRES = 0;
        parser_results-->INP2_PRES = 0; -).


    [9]
    What the parser's doing is a parser action that varies. [ an "output" variable for understood tokens ]
    Parser one is an object that varies.
    Parser two is a truth state that varies.
    Parser object two is an object that varies.
    The number of parameters in the command is a number that varies.
    The action to be is an action name that varies.
    The action's nouns swapped places is a truth state that varies.
    The parser's current word position is a number that varies.
    The number of words in the command is a number variable.
    The verb is an understood word that varies.
    The verb's position is a number that varies.
    [10]
    The reason for deciding scope is a scope reason that varies.
    The scope decider is a rule producing a truth state that varies.
    The context that this noun didn't make sense within is a rule producing a truth state that varies.
    The scope stage is a scope reason that varies.
    The likely second noun is an object that varies.
    The add to scope flag is a number that varies.
    The add to scope has-light-source is a truth state that varies.
    []
    The actor's scopewise location is an object that varies.
    To decide which 1-based index based rulebook producing objects is the multiple-object list: (-multiple_object-).
    To decide if we suspect what the second noun will be: (- (advance_warning ~= -1) -).
    To decide if we do not suspect what the second noun will be: (- (advance_warning == -1) -).
    The multiple-object list overflowed is a truth state that varies.
    The action in progress is an action name that varies.
    The person requesting is a person that varies.
    The position of the topic understood is a [word position] number that varies.
    The length of the topic understood is a number that varies.
    The first KOV parameter is a number that varies.
    The second KOV parameter is a number that varies.

    [1]
    The saved score variable translates into I6 as "sline1".
    The saved turn count variable translates into I6 as "sline2".
    [2]
    The pending paragraph break variable translates into I6 as "say__p".
    The paragraphing status variable translates into I6 as "say__pc".
    The UNDO status variable translates into I6 as "undo_flag".
    The TRACE testing command setting variable translates into I6 as "parser_trace".

    The pronoun used variable translates into I6 as "pronoun_word".
    The saved pronoun used variable translates into I6 as "pronoun__word".
    The saved pronoun reference object variable translates into I6 as "pronoun__obj".

    [8]
    The numeric word variable translates into I6 as "special_word".
    Process the multiple object list variable translates into I6 as "multiflag".
    The action out of world variable translates into I6 as "meta".

    [9]
    What the parser's doing variable translates into I6 as "parser_action".
    The parser callback variable translates into I6 as "parser_one".
    Parser one variable translates into I6 as "parser_one".
    Parser two variable translates into I6 as "parser_two".
    Parser object two variable translates into I6 as "parser_two".
    The number of parameters in the command variable translates into I6 as "parameters".
    The action to be variable translates into I6 as "action_to_be".
    The action's nouns swapped places variable translates into I6 as "action_reversed".
    The parser's current word position variable translates into I6 as "wn".
    The number of words in the command variable translates into I6 as "num_words".
    The verb variable translates into I6 as "verb_word".
    The verb's position variable translates into I6 as "verb_wordnum".
    [10]
    The reason for deciding scope variable translates into I6 as "scope_reason".
    The scope decider variable translates into I6 as "scope_token".

    The context that this noun didn't make sense within variable translates into I6 as "scope_error".

    The scope stage variable translates into I6 as "scope_stage".
    The likely second noun variable translates into I6 as "advance_warning".
    The add to scope flag variable translates into I6 as "ats_flag".
    The add to scope has-light-source variable translates into I6 as "ats_hls".
    []
    The actor's scopewise location variable translates into I6 as "actors_location".
    The multiple-object list overflowed variable translates into I6 as "toomany_flag".
    The action in progress variable translates into I6 as "action".
    The person requesting variable translates into I6 as "act_requester".
    The position of the topic understood variable translates into I6 as "consult_from".
    The length of the topic understood variable translates into I6 as "consult_words".
    The parsed number in question variable translates into I6 as "parsed_number".
    The first KOV parameter variable translates into I6 as "special_number1".
    The second KOV parameter variable translates into I6 as "special_number2".

    The parsed number in question is a number that varies.