home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5282 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.3 KB  |  29 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!news
  3. From: burchard@horizon.math.utah.edu (Paul Burchard)
  4. Subject: dynamic parsers?
  5. Message-ID: <1992Jul28.101919.15524@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: University of Utah Computer Center
  8. Date: Tue, 28 Jul 92 10:19:19 GMT
  9. Lines: 18
  10.  
  11. Anyone know of any decent dynamic parsers out there on the net?  (By "dynamic"  
  12. I mean that grammar rules can be added while the parser is running.)
  13.  
  14. It seems that the bison source could be hacked up to do this, but that's a  
  15. hefty wheel to reinvent and I'm hoping it's already been done...
  16.  
  17. The story behind this is that I'm in need of a decent Parser object, and stuff  
  18. like yacc just doesn't lend itself well to OOP.  Yacc is really annoying in  
  19. this regard.  With bison, you can at least subclass your Parser to use a  
  20. different language spec (since there's a flag to alter the names of all those  
  21. annoying global yyvariables).  But you can't incrementally add new rules in  
  22. your subclasses; you have to start the subclass grammar from scratch.
  23.  
  24. --
  25. --------------------------------------------------------------------
  26. Paul Burchard    <burchard@math.utah.edu>
  27. ``I'm still learning how to count backwards from infinity...''
  28. --------------------------------------------------------------------
  29.