Re: Compiler compiler that supports dynamic keywords?

"Quinn Tyler Jackson" <qjackson@wave.home.com>
13 Oct 1999 01:18:45 -0400

          From comp.compilers

Related articles
Compiler compiler that supports dynamic keywords? felciano@ingsys.com (Ramon M. Felciano) (1999-09-10)
Re: Compiler compiler that supports dynamic keywords? world!cfc@uunet.uu.net (Chris F Clark) (1999-09-16)
Re: Compiler compiler that supports dynamic keywords? qjackson@wave.home.com (Quinn Tyler Jackson) (1999-10-13)
| List of all articles for this month |
From: "Quinn Tyler Jackson" <qjackson@wave.home.com>
Newsgroups: comp.compilers
Date: 13 Oct 1999 01:18:45 -0400
Organization: Compilers Central
References: 99-09-033
Keywords: parse

> The key is that the definition of <nameType1> and <nameType2> needs to
> be changeable at runtime. For example, <nameType1> might be words
> defined in dictionary A, and <nameType2> be words defined in
> dictionary B. Thus this grammar would parse and recognize sentences
> where the first word is "Hello" and the second word is in one of those
> two dictionaries (I'm willing to guarantee mutual exclusivity of
> dictionary membership); all other sentences are rejected. Ideally this
> rejection should happen after the (bad) second word is entered.


PAISLEI can generate grammars that acquire and use tokens parsed from
the stream, or you can populate your dictionaries before a parse
begins.


The examples with the currently available version at
http://www.qtj.net/~lpm/ demonstrate how it does this. Version 2.0
will have better examples of this, but has not yet gone into beta.
(Should be entering beta in a few weeks.)


Also, the online paper:


        http://www.qtj.net/~quinn/computer_science/papers/paislei_paper.html


covers similar concepts in patterns 14 through 17, based upon lexemes
acquired in pattern 7.


(Or at least they seem like similar concepts at this hour of the night...)
--
Quinn Tyler Jackson
http://www.qtj.net/~quinn/


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.