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 web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.