Article View: net.sources.games
Article #32advgen fix
From: Steven Grady
Date: Sat, 28 Sep 1985 22:34
Date: Sat, 28 Sep 1985 22:34
11 lines
853 bytes
853 bytes
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
Technical Details
Message-ID:
<106@ucbingres.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!ucbingres!gradyShow Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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