-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.txt
74 lines (45 loc) · 2.35 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
-----------------------------------------------
Source Code Bundle for
Expert F# (Apress)
Don Syme, Adam Granicz, Antonio Cisternino
ISBN-10: 1-59059-850-4
Publication Date: December 3, 2007
Source Bundle Date: November 14, 2007
-----------------------------------------------
ABOUT THE SOURCE CODE
This source code bundle contains all the source code in the book. Sources in
each chapter are placed in separate directories, such as "Chapter02", and
within those each example is placed in separate directories, such as "Example03".
In the chapter directories you will find a README.txt file describing the
examples in that chapter, giving
* the short summary of the example (or the Listing label)
* the page number in the book
There are four types of examples:
* an executable script ("script.fsx")
* a single-module application ("main.fs")
* a larger application consisting of several modules
* ASP.NET web sites
The following sections tells you how you can use/run/compile these examples.
HOW TO USE THE SOURCE CODE - EXECUTABLE SCRIPTS
Most examples are F# scripts contained in a file called "script.fsx". You can
run these scripts using F# Interactive, or open them in Visual Studio, highlight
code as you progress through the text, and press Alt+Enter to execute it in the
F# Interactive plug-in. This gives you fine control over running these scripts,
giving you the ability to experiment with the code on the fly.
HOW TO USE THE SOURCE CODE - SINGLE-MODULE APPLICATIONS
These are stand-alone applications that can be compiled using fsc.exe:
fsc.exe -o app.exe main.fs
You can run the resulting executable:
app.exe
HOW TO USE THE SOURCE CODE - PROJECTS WITH MULTIPLE FILES
These projects include a build.bat file that performs all the steps in
creating the main executable from the various source files; e.g. it builds
lexers and parsers from their definitions, etc. You can clean the generated
files using
build.bat clean
HOW TO USE THE SOURCE CODE - ASP.NET WEBSITES
The easiest way to test these examples is to use Visual Studio or Visual Web
Developer, open the example directory as a website and use the built-in web
server to serve the pages (press F5).
Alternatively, you can follow the instructions in Chapter 14 to serve these
examples out of IIS.