Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

NextWord (lines 3398-3416)

3398  !  NextWord (which takes no arguments) returns:
3399  !
3400  !  0            if the next word is unrecognised,
3401  !  comma_word   if a comma
3402  !  THEN1__WD    if a full stop
3403  !  or the dictionary address if it is recognised.
3404  !  The "current word" marker is moved on.
3405  !
3406  !  NextWordStopped does the same, but returns -1 when input has run out
3407  ! ----------------------------------------------------------------------------
3408   
3409  [ NextWord i j;
3410     if (wn > parse->1) { wn++; rfalse; }
3411     i=wn*2-1; wn++;
3412     j=parse-->i;
3413     if (j == ',//') j=comma_word;
3414     if (j == './/') j=THEN1__WD;
3415     return j;
3416  ];   


Last updated 27 February 2004. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.