9789180970235

Page 1


PETER LEWERIN

Into the Interpreter

Into theInterpreter withConsTcl

Peter Lewerin

Automatiserad teknik vilkenanvänds för att analysera text och data i digital form isyfte att generera information, enligt 15a, 15b och 15c §§ upphovsrättslagen(text- och datautvinning), är förbjuden.

©2025 PeterLewerin

No part of this work hasbeen produced by AI agents.

Förlag: BoD Books on Demand, Östermalmstorg1,114 42 Stockholm, Sverige, bod@bod.se

Tryck: Libri Plureos GmbH,Friedensallee 273, 22763 Hamburg,Tyskland

ISBN: 978-91-8097-023-5

Short contents

Contents

Short contents v Contents vii

Introduction xvii

To runthe software. .......... ......... xix

MIT License ..................... xix

Background ........................ xx

About Lisp. ..................... xxi

About ConsTcl .......... .......... xxii

About the book ................... xxiii

About the program listings. ........... xxv

About me ... .......... .......... xxv

About time xxvi

IThe interpreter 1

1Initial declarations 3 vii

In computing, an interpreterissoftware thatexecutes source codewithout firstcompiling it to machinecode.

The source code for the interpreter (ConsTcl) is in Tcl, a (Wikipedia) theinterpreter is also availableonthe web. symbols, and vectors. language well suitedfor writing software of thiskind.

If you have ever wondered how to write such apiece of software, this book hasa full setofcodefor an interpreter that accepts andevaluates Scheme source.The source for With twelve illustrations anddetailed descriptions of every componentofthe interpreter,along with the source code for theindividual component, you'reall settoexplore the mechanisms of an interpreter. Input, evaluation,and output are covered,aswellaslexical scoping with environments, andalso alibrarywith equivalence predicates,numbers, booleans, characters, procedures andcontrol constructs, input andoutput procedures,pairs and lists, strings,

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.