WIN-PROLOG Prolog Examples.pdf
(
5397 KB
)
Pobierz
WIN-PROLOG Example Files
2
WIN-
PROLOG
PROLOG
Example Files
PROLOG
This document describes the example files supplied with version 4.500 of
WIN-
PROLOG
and are believed correct at the time of going to press. They do not embody
a commitment on the part of Logic Programming Associates (LPA), who may from time
to time make changes to the specification of the product, in line with their policy of
continual improvement. No part of this manual may be reproduced or transmitted in
any form, electronic or mechanical, for any purpose without the prior written
agreement of LPA.
Copyright (c) 2004 Logic Programming Associates Ltd. All Rights Reserved.
Logic Programming Associates Ltd
Studio 30
The Royal Victoria Patriotic Building
Trinity Road
London SW18 3SX
England
phone: +44 (0) 20 8871 2016
fax:
+44 (0) 20 8874 0449
web site:
http://www.lpa.co.uk
LPA-
PROLOG
and
WIN-
PROLOG
are trademarks of LPA Ltd., London England.
13 July, 2004
Examples
Contents
3
Contents
WIN-
PROLOG
Example Files ..................................................................................2
Contents ..............................................................................................................3
WIN-
PROLOG
EXAMPLE FILES ................................................................................5
Introduction.......................................................................................................5
AUTO.PL - Auto Indent for the Editor ....................................................................6
BARS.PL Ï Scroll, Nudge, Strip and Track Bars ......................................................7
BENCHMRK.PL - Prolog Benchmark Suite..............................................................8
CALENDAR.PL - Perpetual Calendar......................................................................9
CARDS.PL - Interface for CARDS.DLL in WinNT ....................................................10
CHANGE.PL Ï Multiple File Text Edits ..................................................................11
CLOCK.PL - Digital Clock ...................................................................................12
COMBOBOX.PL - Combobox Example ................................................................13
COMMAS.PL - Read a Comma-Separated Record ................................................15
COMMENTS.PL Ï Read Comments from 386-PROLOG File ...................................16
COMPLETE.PL and COMPDATA.PL Ï Keyword Completion Example ........................17
CRC_CHOP.PL - Create CRC32 Identical Files ......................................................18
DCG.PL - English Sentences and Expression DCG Examples.................................19
DCG_DRAW.PL - A Tree Drawing Package ..........................................................20
DIALOG.PL - A Really Simple Dialog Example ......................................................21
EASTER.PL Ï Finding Easter Sunday...................................................................22
EXPERT.PL Ï A Natural Language Expert System .................................................23
GFX_TOOL.PL - Graphics Tool Demonstration......................................................24
GRAPHICS.PL - A Simple Graphics Demo............................................................25
HANOI.PL - The Towers of Hanoi ........................................................................26
KEYBOARD.PL - Key Interrogation Example .........................................................27
LISTBOX.PL - Program to Demonstrate List Boxes ...............................................28
LUNAR.PL Ï Lunar Phases .................................................................................29
MCI.PL - MCI Functions for WIN-PROLOG.............................................................30
MEALS.PL Ï Meal Selection Example ..................................................................31
MENUS.PL Ï A Simple Menu Demonstration........................................................32
MESSAGES.PL Ï Listbox Example.......................................................................33
Examples
4
Contents
META.PL - Creating a Metafile ............................................................................34
PIECHART.PL - Pie-Chart Display ........................................................................35
REVERSI.PL - Reversi Game..............................................................................36
RGB.PL - Return the RGB Colour of a Single Pixel................................................37
ROUND.PL - Numerical Rounding Routines .........................................................38
SALESMAN.PL - The Travelling Salesman ............................................................39
SEMI.PL - Controlling Backtracking with Semi-Modal Dialogs .................................40
SHA256.PL - Generate the SHA-256 Constants ..................................................41
SHARE.PL - Shared Acces
s Read-Only Files.................
Error! Bookmark not defined.
SIEVE.PL - Sieve of Erasthatones .......................................................................42
SIEVE2.PL - Sieve of Erasthatones .....................................................................43
STIRLING.PL - Stirling Approximation ..................................................................44
STRINGS.PL - String Examples...........................................................................45
TURTLE.PL - Turtle Graphics ..............................................................................46
INDEX ................................................................................................................47
Examples
WIN-PROLOG EXAMPLE FILES
5
WIN-
PROLOG
PROLOG
EXAMPLE FILES
PROLOG
Introduction
The following
WIN-
PROLOG
example files are all in the EXAMPLES directory.
Examples
Plik z chomika:
Stefan_68
Inne pliki z tego folderu:
WIN-PROLOG 4.2 Win32 Programming Guide.pdf
(2748 KB)
Introduction To The WIN-PROLOG 4.3 PDF-Based Documentation.pdf
(18 KB)
Win-prolog 4.2 User Guide Win_W32.pdf
(2748 KB)
win-prolog 5.0.zip
(2997 KB)
LPA micro-PROLOG Professional 1.2.EXE
(34 KB)
Inne foldery tego chomika:
Pliki dostępne do 01.06.2025
_Pro Audio
Ableton
Ableton macOS
Akwarium literatura
Zgłoś jeśli
naruszono regulamin