Article View: comp.sys.next.programmer
Article #279Re: dynamic parsers?
From: Ulrich Grepel
Date: Tue, 28 Jul 1992 12:25
Date: Tue, 28 Jul 1992 12:25
22 lines
1689 bytes
1689 bytes
In article <1992Jul28.101919.15524@fcom.cc.utah.edu>, burchard@horizon.math.utah.edu (Paul Burchard) writes: |> 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... |> Oops! ( ;-) double meaning...) That would not be too easy, because normally you want to add actions to your new rules. If you do not want to write an interpreter, you will have to run the compiler anyway. I think it is not possible to add a rule without a complete rework on the tables. Another thing is that I just went along and 'objected' (or, better, C++-ified) Bison and Flex such that you have a 'main class' that has all the code that is used for all parsers/scanners and several sub-classes that consists of the tables and the special actions. If you have interest in these, e-mail me, but be warned that this code is really not-yet-ready (working at the moment, but not too-well tested...) Uli Grepel
Technical Details
Message-ID:
<1992Jul28.122557.18900@infoserver.th-darmstadt.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.th-darmstadt.de!aida!uliReferences:
<1992Jul28.101919.15524@fcom.cc.utah.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.th-darmstadt.de!aida!uli From: uli@aida.intellektik.informatik.th-darmstadt.de (Ulrich Grepel) Newsgroups: comp.sys.next.programmer Subject: Re: dynamic parsers? Message-ID: <1992Jul28.122557.18900@infoserver.th-darmstadt.de> Date: 28 Jul 92 12:25:57 GMT References: <1992Jul28.101919.15524@fcom.cc.utah.edu> Sender: uli@aida (Ulrich Grepel) Organization: TH Darmstadt Lines: 22 Nntp-Posting-Host: aida.intellektik.informatik.th-darmstadt.de