Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Interpreter/Compiler texts
Are there any text books describing Interpreter/Compiler construction in
Prolog?

-- Hrvoje

Report this thread to moderator Post Follow-up to this message
Old Post
Hrvoje Blazevic
04-21-05 01:58 PM


Re: Interpreter/Compiler texts
Hrvoje Blazevic wrote:
> Are there any text books describing Interpreter/Compiler construction
in
> Prolog?

That depends.  If you really are looking for books describing said
construction "in Prolog", you may wish to check out "The Art of Prolog"
by MIT Press.  The last chapter in this book presents a simple compiler
for a Pascal-like language.

If, however, you're looking for books about constructing a Prolog
interpreter/compiler, check out
http://www.vanx.org/archive/wam/wam.html.  This has a free book you can
download describing the Warren Abstract Machine, a fairly powerful
Prolog compiler.

Cheers,
Ovid


Report this thread to moderator Post Follow-up to this message
Old Post
publiustemp-googlegroups@yahoo.com
04-21-05 08:58 PM


Re: Interpreter/Compiler texts
publiustemp-googlegroups@yahoo.com wrote:
> Hrvoje Blazevic wrote:
> 
>
> in
> 
>
>
> That depends.  If you really are looking for books describing said
> construction "in Prolog", you may wish to check out "The Art of Prolog"
> by MIT Press.  The last chapter in this book presents a simple compiler
> for a Pascal-like language.
>
> If, however, you're looking for books about constructing a Prolog
> interpreter/compiler, check out
> http://www.vanx.org/archive/wam/wam.html.  This has a free book you can
> download describing the Warren Abstract Machine, a fairly powerful
> Prolog compiler.
>

Thanks, and yes--I was looking for the first.

-- Hrvoje

Report this thread to moderator Post Follow-up to this message
Old Post
Hrvoje Blazevic
04-22-05 01:57 AM


Re: Interpreter/Compiler texts
Hrvoje Blazevic <hrvoje@despammed.com> writes:

> Are there any text books describing Interpreter/Compiler
> construction in Prolog?

Textbooks, I don't know of.  But Susan Stepney,
High-integrity compilation (Hemel Hempstead: Prentice-Hall,
1993), shows the implementation, in Prolog, of a compiler
intended to be provably correct against a semantics
specified in Z.  Available now from her Web site at
http://www-users.cs.york.ac.uk/~sus...s/hic/index.htm

Since Stepney passes in silence over things like parsing the
source, you'll also want to read the relevant chapters
(e.g. 8 on grammar rules, 10 on writing tokenizers, and 7 on
interpreters) in Richard O'Keefe, The Craft of Prolog
(Cambridge, Mass.: MIT Press, 1990), and ditto in Leon
Sterling and Ehud Shapiro, The Art of Prolog: Advanced
Programming Techniques (Cambridge, Mass.: MIT Press, 1986)
(e.g. chapters 17 Interpreters, 18 Program Transformation,
19 Logic Grammars, 24 A Compiler).

There's also a section (9.2) on compiler construction in
Harvey Abramson and Veronica Dahl, Logic Grammars, Symbolic
Computation AI Series (New York: Springer, 1989), but
personally I found it kind of thin.

Also worth reading: Jacques Cohen and Timothy J. Hickey,
"Parsing and Compiling Using Prolog," ACM Transactions on
Programming Languages and Systems 9.2 (April 1987): 125-163.
I believe I got this from the ACM Digital Library.

It would be nice to think there should be something out
there on this topic more recent than 1993.  Surely some of
the assembled wise ones will have pointers?  In the
meantime, perhaps these will give you something to start
with.

I hope this helps.

-C. M. Sperberg-McQueen
World Wide Web Consortium

Report this thread to moderator Post Follow-up to this message
Old Post
C. M. Sperberg-McQueen
04-23-05 01:57 AM


Re: Interpreter/Compiler texts
C. M. Sperberg-McQueen wrote:
> Hrvoje Blazevic <hrvoje@despammed.com> writes:
>
> 
>
>
> Textbooks, I don't know of.  But Susan Stepney,
> High-integrity compilation (Hemel Hempstead: Prentice-Hall,
> 1993), shows the implementation, in Prolog, of a compiler
> intended to be provably correct against a semantics
> specified in Z.  Available now from her Web site at
> http://www-users.cs.york.ac.uk/~sus...s/hic/index.htm
>
> Since Stepney passes in silence over things like parsing the
> source, you'll also want to read the relevant chapters
> (e.g. 8 on grammar rules, 10 on writing tokenizers, and 7 on
> interpreters) in Richard O'Keefe, The Craft of Prolog
> (Cambridge, Mass.: MIT Press, 1990), and ditto in Leon
> Sterling and Ehud Shapiro, The Art of Prolog: Advanced
> Programming Techniques (Cambridge, Mass.: MIT Press, 1986)
> (e.g. chapters 17 Interpreters, 18 Program Transformation,
> 19 Logic Grammars, 24 A Compiler).
>
> There's also a section (9.2) on compiler construction in
> Harvey Abramson and Veronica Dahl, Logic Grammars, Symbolic
> Computation AI Series (New York: Springer, 1989), but
> personally I found it kind of thin.
>
> Also worth reading: Jacques Cohen and Timothy J. Hickey,
> "Parsing and Compiling Using Prolog," ACM Transactions on
> Programming Languages and Systems 9.2 (April 1987): 125-163.
> I believe I got this from the ACM Digital Library.
>
> It would be nice to think there should be something out
> there on this topic more recent than 1993.  Surely some of
> the assembled wise ones will have pointers?  In the
> meantime, perhaps these will give you something to start
> with.
>

Thanks for the pointers.

-- Hrvoje

Report this thread to moderator Post Follow-up to this message
Old Post
Hrvoje Blazevic
04-23-05 01:57 AM


Re: Interpreter/Compiler texts
Hrvoje Blazevic wrote:
> C. M. Sperberg-McQueen wrote:
> 
>
> Thanks for the pointers.
>
> -- Hrvoje

Also there is this:
[url]http://www.bildung.hessen.de/abereich/inform/skii/material/swing/minipascal.zip[/u
rl]

Report this thread to moderator Post Follow-up to this message
Old Post
student
04-23-05 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Prolog archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:28 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.