File: concrete.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (192 lines) | stat: -rw-r--r-- 5,677 bytes parent folder | download | duplicates (5)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
includefile(concrete/intro)

lsect(FDSTREAMBUFFER)(Using file descriptors with `streambuf' classes)

    lsubsect(OFDNBUF)(Classes for output operations)
    includefile(concrete/fdout)

    lsubsect(STRBUF)(Classes for input operations)
    includefile(concrete/fdinput)

        lsubsubsect(IFDBUF)(Using a one-character buffer)
        includefile(concrete/fdinbuf)

        lsubsubsect(IFDNBUF)(Using an n-character buffer)
        includefile(concrete/fdninbuf)

        lsubsubsect(IFDSEEK)(Seeking positions in `streambuf' objects)
        includefile(concrete/fdinseek)

        subsubsect(Multiple `unget' calls in `streambuf' objects)
        includefile(concrete/fdunget)

    subsect(Fixed-sized field extraction from istream objects)
    includefile(concrete/fistream)

        subsubsect(Member functions and example)
        includefile(concrete/fistreamexample)

lsect(FORK)(The `fork' system call)
includefile(concrete/fork)

    subsect(A basic Fork class)
    includefile(concrete/basicfork)

    subsect(Parents and Children)
    includefile(concrete/parents)

    lsubsect(REDIRECTION)(Redirection revisited)
    includefile(concrete/redirection)

    lsubsect(DAEMON)(The `Daemon' program)
    includefile(concrete/daemon)

    lsubsect(PIPE)(The class `Pipe')
    includefile(concrete/pipes)

    subsect(The class `ParentSlurp')
    includefile(concrete/parentslurp)

    subsect(Communicating with multiple children)
    includefile(concrete/children)

        subsubsect(The class `Selector': interface)
        includefile(concrete/select)

        subsubsect(The class `Selector': implementation)
        includefile(concrete/selectimpl)

        lsubsubsect(MONITOR)(The class `Monitor': interface)
        includefile(concrete/monitor)

        subsubsect(The class `Monitor': s_handler)
        includefile(concrete/shandler)

        subsubsect(The class `Monitor': the member `run')
        includefile(concrete/run)

        subsubsect(The class `Monitor': example)
        includefile(concrete/monitorexample)

        lsubsubsect(CHILD)(The class `Child')
        includefile(concrete/child)

COMMENT(see concrete/examples/binopclasses.cc)
sect(Adding binary operators to classes)
includefile(concrete/binop)

    subsect(Merely using operators)
    includefile(concrete/operators)

        subsubsect(To namespace or not to namespace?)
        includefile(concrete/namespace)

    subsect(The CRTP and defining operator function templates)
    includefile(concrete/crtp)

    subsect(Insertion and extraction)
    includefile(concrete/insertion)

COMMENT(
    subsect(Binary operators allowing promotions)
    includefile(concrete/promotions)

lsect(RANGER)(Range-based for-loops and pointer-ranges)
includefile(concrete/ranger)

END)

lsect(PROXY)(Distinguishing lvalues from rvalues with operator[]())
    includefile(concrete/proxy)

lsect(CONCRETEITER)(Implementing a `reverse_iterator')
includefile(concrete/iterators)

lsect(BisonAndFlex)(Using `bisonc++' and `flexc++')
includefile(concrete/bisonflex)

    lsubsect(Flexcpp)(Using `flexc++' to create a scanner)
    includefile(concrete/usingflex)

        subsubsect(The derived class `Scanner')
        includefile(concrete/lexer)

        subsubsect(The lexical scanner specification file)
        includefile(concrete/lexerspec)

        subsubsect(Implementing `Scanner')
        includefile(concrete/scanner)

        subsubsect(Using a `Scanner' object)
        includefile(concrete/scanmain)

        lsubsubsect(BUILDFLEX)(Building the program)
        includefile(concrete/scancompile)

    lsubsect(BISONFLEX)(Using `bisonc++' and `flexc++')
    includefile(concrete/usingbison)

        subsubsect(The `bisonc++' specification file)
        includefile(concrete/bison)

        lsubsubsubsect(BISONDEF)(The declaration section)
        includefile(concrete/definition)

        subsubsubsect(The grammar rules)
        includefile(concrete/rules)

        subsubsubsect(The Parser's header file)
        includefile(concrete/parserh)

        subsubsect(The `flexc++' specification file)
        includefile(concrete/bisonflexspec)

        subsubsect(Building the program)
        includefile(concrete/codegeneration)

COMMENT(

    lsubsect(BISONSEM)(Bisonc++: using polymorphic semantic values)
    includefile(concrete/polymorphic)

        subsubsect(The parser using a polymorphic semantic value type)
        includefile(concrete/parser.yo)

        lsubsubsect(TAG)
                    (Tagging the actual semantic type: the `enum class Tag')
        includefile(concrete/tag)

        subsubsect((Im)mutable semantic data: two base-structs)
        includefile(concrete/mutable)

        lsubsubsect(TAGTRAIT)
                    (Traits of semantic type tags: the `TagTrait' trait class)
        includefile(concrete/tagtrait)

        subsubsect(Accessing data from derived classes)
        includefile(concrete/access)

        subsubsect(The polymorphic base class `SemBase')
        includefile(concrete/sembase)

        subsubsect(The class template `Semantic', derived from `SemBase')
        includefile(concrete/semantic)

        subsubsect(Adding new semantic data types)
        includefile(concrete/addtypes)

        lsubsubsect(SPSEMBASE)(The parser's semantic value: `spSemBase')
        includefile(concrete/spsembase)

        subsubsect(The parser specification file)
        includefile(concrete/polygram)

        subsubsect(The scanner using a polymorphic semantic value type)
        includefile(concrete/semscanner.yo)
END)


COMMENT(
    subsect(Using unrestricted unions as semantic values)
    includefile(concrete/unrestricted)
END)