Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.ARPA Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!ucbingres!grady From: grady@ucbingres.ARPA (Steven Grady) Newsgroups: net.sources.games Subject: advgen fix Message-ID: <106@ucbingres.ARPA> Date: Sat, 28-Sep-85 18:34:11 EDT Article-I.D.: ucbingre.106 Posted: Sat Sep 28 18:34:11 1985 Date-Received: Sun, 29-Sep-85 07:23:29 EDT Sender: usenet@ucbvax.ARPA Reply-To: grady%ucbingres@ucbvax.ARPA (Steven Grady) Organization: University of California, Berkeley Lines: 11 Advgen is good_stuff, but it doesn't allow for negative numbers (which would be useful for implementing money, for instance) Here's a fix: In advlex.l, replace NUM {DIGIT}+ with NUM -?{DIGIT}+ (It's near the beginning) Steven