??ANSWER TO EXERCISE 74

(See the Parser file.) NextWord roughly returns parse-->(w*2-1) (but it worries a bit about commas and full stops).

[ WordAddress w; return buffer + parse->(w*4+1); ];
[ WordLength w; return parse->(w*4); ];

Back to the exercise in section 27
Mechanically translated to HTML from third edition as revised 16 May 1997. Copyright © Graham Nelson 1993, 1994, 1995, 1996, 1997: all rights reserved.