-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimplement.tex
103 lines (91 loc) · 2.98 KB
/
implement.tex
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
% !TeX root = forth.tex
% !TeX spellcheck = en_US
% !TeX program = pdflatex
\annex{Reference Implementations} % I. (informative annex)
\label{annex:implement}
\section{Introduction} % I.1
In the most recent review of this document, proposals were encouraged
to include a reference implementation where possible. Where an
implementation requires system specific knowledge it was documented.
This appendix contains the reference implementations that have been
accepted by the committee. This is not a complete reference
implementation nor do the committee recommend these implementations.
They are supplied solely for the purpose of providing a detailed
understanding of a definitions requirement. System implementors are
free to implement any operation in a manner that suits their system,
but it must exhibit the same behavior as the reference implementation
given here.
\ifinline
\newcommand{\impsection}[2]{%
\section{The optional #2 word set}
\begin{editor}
In the \emph{review} (r) version of the document the
reference implementation for a word is given in the main
definition of the word. The implementation of words in
the \textbf{#1} word set will appear here in the final
document.
\end{editor}
}
\else
\namespace{imp}
\defersection{}
\newcommand{\impsection}[2]{%
\defersection{#2}
\setwordlist{#1}
\input{i-#1.sub}
\stepsection
}
\fi
\setcounter{section}{5}
\section{The Core word set} % I.6
\ifinline
\begin{editor}
In the \emph{review} (r) version of the document the
reference implementation for a word is given in the main
definition of the word. The implementation of words
in the \textbf{core} word set will appear here in the
final document.
\end{editor}
\else
\input{i-core.sub}
\fi
\impsection{block}{Block} % I.7
\impsection{double}{Double-Number} % I.8
\pagebreak
\section{The Exception word set} % I.9
\ifinline
\begin{editor}
In the \emph{review} (r) version of the document the
reference implementation for a word is given in the main
definition of the word. The implementation of words in
the \textbf{Exception} word set will appear here in the final
document.
\end{editor}
\else
\input{i-exception.sub}
\fi
\impsection{facility}{Facility} % I.10
\impsection{file}{File-Access} % I.11
\impsection{floating}{Floating-Point} % I.12
\impsection{local}{Locals} % I.13
\impsection{memory}{Memory-Allocation} % I.14
\impsection{tools}{Programming-Tools} % I.15
\impsection{search}{Search-Order} % I.16
\impsection{string}{String} % I.17
\pagebreak
\section{The optional Extended-Character word set} % I.18
\label{imp:xchar}
This reference implementation assumes the UTF-8 character encoding
is being used.
\ifinline
\begin{editor}
In the \emph{review} (r) version of the document the
reference implementation for a word is given in the main
definition of the word. The implementation of words
in the \textbf{core} word set will appear here in the
final document.
\end{editor}
\else
\defersection{}
\input{i-xchar.sub}
\fi