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