Griswold R.E., Griswold M.T. Icon Programming Language (3ed., Coriolis Group, 2000)(ISBN 1573980013)(410s)_CsPl_.pdf

(1178 KB) Pobierz
Third
Edit ion
THE ICON
PROGRAMMING
LANGUAGE
Ralph E. Griswold • Madge T. Griswold
The Icon Programming Language
Third Edition
Ralph E. Griswold and Madge T. Griswold
This book originally was published by Peer-to-Peer Communications. It is out
of print and the rights have reverted to the authors, who hereby place it in the public
domain.
Library of Congress Cataloging-in-Publication Data
Griswold, Ralph E., 1934-
The Icon programming language / Ralph E. Griswold and Madge T.
Griswold. -- 3rd ed.
p. cm.
Includes bibliographical references (p. ) and index.
ISBN 1-57398-001-3 (pbk.)
1. Icon (computer program language) I. Griswold, Madge T., 1941- .
II. Title.
QA76.73.I19G74 1996
005.13'3--dc20.
96-43514
CIP
10
9 8
7
6
5
4
3
2
1
ISBN 1-57398-001-3
DISCLAIMER
This book is provided "as is". Any implied warranties of merchantability and fitness for a particular purpose are
expressly disclaimed. This book contains programs that are furnished as examples. These examples have not been
thoroughly tested under all conditions. Therefore, the reliability, serviceability, or function of any program code
herein is not guaranteed.
To the best of the authors' and publisher's knowledge, the information presented in this book was correct at the time
it was written and conveyed as accurately as possible. However, some information may be incorrect or may have
changed prior to publication. The authors and publisher make no claim that the material contained in this book is
entirely correct, and assume no liability for use of the material contained herein.
A number of words that appear in initial capitalization in the text may be trademarks or service marks, or signify
other proprietary rights. No attempt has been made, however, to designate as trademarks or service marks all
personal computer words or terms in which proprietary rights might exist. The inclusion, exclusion, or definition
of a word or term is not intended to affect, or to express any judgement on, the validity or legal status of any
proprietary right that may be claimed in that word or term.
Note: This book describes Version 9.3 of the Icon programming language. All known
errors in the original printing have been corrected. Marginal revision bars identify
substantive corrections.
Ralph E. Griswold and Gregg M. Townsend, August 2002
Contents
iii
Contents
FOREWORD
INTRODUCTION
ACKNOWLEDGMENTS
1 GETTING STARTED
Program Structure 1
Success and Failure 4
Control Structures 6
Procedures
7
Expression Syntax 9
Preprocessing 11
Notes 12
xi
xv
xix
1
2 EXPRESSIONS
Sequential Evaluation 17
Goal-Directed Evaluation 18
Iteration 20
Integer Sequences 20
Alternation 21
17
iii
Zgłoś jeśli naruszono regulamin