🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.prolog
2 messages
2 total messages Started by Cyberman Wed, 02 Sep 1992 01:44
Compilors in Prolog
#756
Author: Cyberman
Date: Wed, 02 Sep 1992 01:44
18 lines
946 bytes
I've written a Parser in prolog [seemed the EASY way to do it!]
and I would like to put in code gnerateing.  The problem I'm
having is ERROR generation and backtracking.  I'm confused a bit.

1:  has anyone successfully used prolog this way?  IE languuage
prototyping

2:  What is a GOOD set of rules to go about this process?

Thanks reply here or in mail!  I'm sure this won't be of intrest
to a lot of poeple.  :)

        Stephen Cyberman@Toz.Buffalo.NY.US
        Scripted at Tue  09-01-1992  00:28:15

... In GOD we trust all others pay CASH!
--- Blue Wave/QWK v2.10
                                                                   
Re: Compilors in Prolog
#698
Author: root
Date: Wed, 09 Sep 1992 15:32
15 lines
1162 bytes
In article <gate.HoagqB1w165w@toz.buffalo.ny.us>
   cyberman@toz.buffalo.ny.us (Cyberman) writes:
>I've written a Parser in prolog [seemed the EASY way to do it!]
>and I would like to put in code gnerateing.  The problem I'm
>having is ERROR generation and backtracking.  I'm confused a bit.

Take a look at David H. D. Warren's 1980 paper on implementing compilers
in Prolog (Logic Programming and Compiler Writing, _Software-Practice and
Experience_ 10, Number II).  You may also want to read Chapter 23 in
Sterling and Shapiro's _The Art of Prolog_ (MIT Press, 1986).

Barry Shelton                                        Question Authority!
barry@ute.columbiasc.ncr.com                   Resist much, obey little.

Standard disclaimer.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads