home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5284 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.th-darmstadt.de!aida!uli
  2. From: uli@aida.intellektik.informatik.th-darmstadt.de (Ulrich Grepel)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: dynamic parsers?
  5. Message-ID: <1992Jul28.122557.18900@infoserver.th-darmstadt.de>
  6. Date: 28 Jul 92 12:25:57 GMT
  7. References: <1992Jul28.101919.15524@fcom.cc.utah.edu>
  8. Sender: uli@aida (Ulrich Grepel)
  9. Organization: TH Darmstadt
  10. Lines: 22
  11. Nntp-Posting-Host: aida.intellektik.informatik.th-darmstadt.de
  12.  
  13. In article <1992Jul28.101919.15524@fcom.cc.utah.edu>, burchard@horizon.math.utah.edu (Paul Burchard) writes:
  14. |> Anyone know of any decent dynamic parsers out there on the net?  (By "dynamic"  
  15. |> I mean that grammar rules can be added while the parser is running.)
  16. |> 
  17. |> It seems that the bison source could be hacked up to do this, but that's a  
  18. |> hefty wheel to reinvent and I'm hoping it's already been done...
  19. |> 
  20. Oops! ( ;-) double meaning...)
  21.  
  22. That would not be too easy, because normally you want to add actions to your
  23. new rules. If you do not want to write an interpreter, you will have to 
  24. run the compiler anyway. I think it is not possible to add a rule without
  25. a complete rework on the tables.
  26.  
  27. Another thing is that I just went along and 'objected' (or, better, C++-ified)
  28. Bison and Flex such that you have a 'main class' that has all the code that
  29. is used for all parsers/scanners and several sub-classes that consists of
  30. the tables and the special actions. If you have interest in these, e-mail me,
  31. but be warned that this code is really not-yet-ready (working at the moment,
  32. but not too-well tested...)
  33.  
  34. Uli Grepel
  35.