home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / pbm / 3399 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.6 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!darkstar.UCSC.EDU!ra.UCSC.EDU!sutin
  2. From: sutin@ra.UCSC.EDU (Brian Sutin)
  3. Newsgroups: rec.games.pbm
  4. Subject: Re: Galaxy Results Format
  5. Date: 22 Dec 1992 21:35:08 GMT
  6. Organization: Lick Observatory UCSC
  7. Lines: 23
  8. Message-ID: <1h81mcINNmcu@darkstar.UCSC.EDU>
  9. References: <1h781gINNil8@fbi-news.Informatik.Uni-Dortmund.DE>
  10. NNTP-Posting-Host: ra.ucsc.edu
  11. Keywords: galaxy
  12.  
  13. In article <1h781gINNil8@fbi-news.Informatik.Uni-Dortmund.DE> markhof@ls12r.informatik.uni-dortmund.de (Ingolf Markhof) writes:
  14.  
  15. >Anyway, I'd like to have a small change in the galaxy rules to support
  16. >parsing. This change of rules is related to the rules of names in Galaxy.
  17. >It would be _very_ nice to restrict the allowed names in Galaxy: All names
  18. >should be identifiers in the sense of programing languages, i.e. they should
  19. >be forced to start with a letter. Moreover, any Galaxy keywords form the
  20. >section headings should be reserved, i.e. "Status of Players" yields three
  21. >keywords: Status, of, Players.
  22.  
  23. Why?  Lex could handle state dependent keywords the last time I used it.
  24.  
  25. I have a parser which chews down the complete output, and then decides
  26. where all my cargo ships go, makes maps, designs ships, assigns production,
  27. etc.  It is 700 lines of c code.  I used the advanced lexical analyzer
  28. named "scanf," which is perfectly suited for the task.  Give it a try.
  29.  
  30. Before anyone asks, if you want a program like this, write your own.
  31.  
  32. Brian Sutin                sutin@lick.ucsc.edu
  33. Lick Observatory, UCSC            Santa Cruz, CA 95064
  34.     Fred:   "May I rescue you?"
  35.     Ginger: "No, thank you.  I prefer being in distress."
  36.