Re: Compiler with adjustable parsers

dhw@itivax.iti.org (David H. West)
2 Mar 90 17:29:35 GMT

          From comp.compilers

Related articles
Compiler with adjustable parsers hackeron@ATHENA.MIT.EDU (1990-03-01)
Re: Compiler with adjustable parsers grunwald@foobar.Colorado.EDU (Dirk Grunwald) (1990-03-01)
Re: Compiler with adjustable parsers arnold@audiofax.com (Arnold Robbins) (1990-03-01)
Re: Compiler with adjustable parsers steve@hubcap.clemson.edu (1990-03-01)
Re: Compiler with adjustable parsers dhw@itivax.iti.org (1990-03-02)
Re: Compiler with adjustable parsers pgl@cup.portal.com (1990-03-15)
Re: Compiler with adjustable parsers ipser@vaxa.isi.edu (Ed Ipser) (1990-03-03)
Re: Compiler with adjustable parsers PIRINEN@CC.HELSINKI.FI (Pekka P. Pirinen) (1990-03-03)
Re: Compiler with adjustable parsers fineman@ptolemy.arc.nasa.gov (Charles Fineman) (1990-03-05)
Re: Compiler with adjustable parsers webber@athos.rutgers.edu (1990-03-07)
Re: Compiler with adjustable parsers aarons@cogs.sussex.ac.uk (Aaron Sloman) (1990-03-08)
| List of all articles for this month |

From: dhw@itivax.iti.org (David H. West)
Newsgroups: comp.compilers
Date: 2 Mar 90 17:29:35 GMT
References: <1990Mar1.143905.14553@esegue.segue.boston.ma.us>
Organization: Industrial Technology Institute
Keywords: parse,prolog

In article <1990Mar1.143905.14553@esegue.segue.boston.ma.us> hackeron@ATHENA.MIT.EDU writes:
>Does anyone know of a compiler/language that allows you to specify changes
>to how the language is parsed (in part at least) from withing the program.


Edinburgh-derived Prologs have a precedence grammar that can be
changed at runtime (though not all implementations let you change
everything); the interesting part of it is that you can change
operators between prefix, infix and postfix, and the system will, if
you wish, respect the new conventions on output also. This makes
reading and writing (certains kinds of) unusually-formatted stuff
almost painless. I once threw together a tiny natural-language-like
interface in a great hurry by this means. (Emphasis on TINY).


Some functional languages of UK origin have similar facilities.





Post a followup to this message

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