Interactive Parsing

version 3 by Jon Ingold

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 4 - Word Type

    Include (-

    [ WordType j;

        if ((j-> #dict_par1) & 1) return EX_VERB;
        if ((j-> #dict_par1) & 8)
            {
    ! glk_set_window((+main-window+).ref_number);
    ! print "Word ", (address) j, " is declared to be a prep.^";
    return EX_PREPOSITION;
            }
        if ((j-> #dict_par1) & 128) return EX_NOUN; !??
    ];



    -)