Keyword Interface

version 8 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Keyword Types

    A keyword type is a kind of thing. object-word is a keyword type. direction-word is a keyword type. topic-word is a keyword type. parser-word is a keyword type.

    A keyword emphasis is a kind of value. The plural of keyword emphasis is keyword emphases.

    A keyword type has a keyword emphasis called style.

    The active style is a keyword emphasis that varies.

    we-are-parser-speaking is a truth state that varies. we-are-parser-speaking is false. [It's possible to have, say, an emphasized object keyword within a parser error message; this variable keeps track of whether we need to return to the parser style after switching off another keyword style.]
        
    To say o:
        if object keyword highlighting is true:
            set the text style for the style of object-word;
            now the active style is the style of object-word.
        
    To say t:
        if topic keyword highlighting is true:
            set the text style for the style of topic-word;
            now the active style is the style of topic-word.

    To say d:
        if direction keyword highlighting is true:
            set the text style for the style of direction-word;
            now the active style is the style of direction-word.
        
    To say x:
        reset styles with active style;