parse_name [ i j w; if (self has general) j='red'; else j='green'; w=NextWord(); while (w==j or 'fried') { w=NextWord(); i++; } if (w=='tomato') return i+1; return 0; ],