Article View: comp.sys.next.programmer
Article #278dynamic parsers?
From: Paul Burchard
Date: Tue, 28 Jul 1992 10:19
Date: Tue, 28 Jul 1992 10:19
18 lines
1395 bytes
1395 bytes
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...'' --------------------------------------------------------------------
Technical Details
Message-ID:
<1992Jul28.101919.15524@fcom.cc.utah.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!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