aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools/doc/src/notes.xml
blob: 2947517717aee45460556ad0b810aaa1c8df8384 (plain) (blame)
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">

<chapter>
  <header>
    <copyright>
      <year>1997</year><year>2009</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      The contents of this file are subject to the Erlang Public License,
      Version 1.1, (the "License"); you may not use this file except in
      compliance with the License. You should have received a copy of the
      Erlang Public License along with this software. If not, it can be
      retrieved online at http://www.erlang.org/.
    
      Software distributed under the License is distributed on an "AS IS"
      basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
      the License for the specific language governing rights and limitations
      under the License.
    
    </legalnotice>

    <title>Parsetools Release Notes</title>
    <prepared>otp_appnotes</prepared>
    <docno>nil</docno>
    <date>nil</date>
    <rev>nil</rev>
    <file>notes.xml</file>
  </header>
  <p>This document describes the changes made to the Parsetools application.</p>

<section><title>Parsetools 2.0.1</title>

    <section><title>Improvements and New Features</title>
      <list>
        <item>
            <p>Leex no longer uses the deprecated <c>regexp</c>
		module. (Thanks to Robert Virding.).</p>
          <p>
	    Own Id: OTP-8231</p>
        </item>
      </list>
    </section>

    <section><title>Fixed Bugs and Malfunctions</title>
      <list>
        <item>
            <p>A minor bug in <c>leex(3)</c> has been fixed.</p>
          <p>
	    Own Id: OTP-8197</p>
        </item>
      </list>
    </section>

</section>

<section><title>Parsetools 2.0</title>

    <section><title>Improvements and New Features</title>
      <list>
        <item>
	    <p>Leex, a lexical analyzer generator for Erlang,
		has been added to Parsetools. This initial version
		should be considered experimental; it is known
		that there will be changes and additions.
		(Thanks to Robert Virding.).</p>
          <p>
	    Own Id: OTP-8013</p>
        </item>
      </list>
    </section>

    <section><title>Fixed Bugs and Malfunctions</title>
      <list>
        <item>
            <p>The parsers generated by Yecc now report correct
            error lines when possible.</p>
          <p>
	    Own Id: OTP-7969</p>
        </item>
      </list>
    </section>

</section>

<section><title>Parsetools 1.4.7</title>

    <section><title>Fixed Bugs and Malfunctions</title>
      <list>
        <item>
	    <p>A bug in yeccpre.hrl introduced in R13A has been
	    fixed.</p>
          <p>
	    Own Id: OTP-7945</p>
        </item>
      </list>
    </section>

</section>

<section><title>Parsetools 1.4.6</title>

    <section><title>Improvements and New Features</title>
      <list>
        <item>
	    <p>Updated file headers.</p>
          <p>
	    Own Id: OTP-7798</p>
        </item>
      </list>
    </section>

</section>

<section><title>Parsetools 1.4.5</title>

    <section><title>Improvements and New Features</title>
      <list>
        <item>
	    <p>The <c>yecc</c> grammar has been augmented with an
	    optional header section. (Thanks to Richard
	    Carlsson.)</p>
          <p>
	    Own Id: OTP-7292</p>
        </item>
      </list>
    </section>

</section>


<section><title>Parsetools 1.4.4</title>

    <section><title>Improvements and New Features</title>
      <list>
        <item>
	    <p>The size of the code generated by Yecc has 
	    been reduced. The  code is also faster.</p>
	    <p>Macros can now be used in actions.</p>
          <p>
	    Own Id: OTP-7224</p>
        </item>
      </list>
    </section>

</section>

<section><title>Parsetools 1.4.3</title>

    <section><title>Improvements and New Features</title>
      <list>
        <item>
	    <p><c>tuple_size/1</c> and <c>byte_size/1</c> have been
	    substituted for <c>size/1</c>.</p>
          <p>
	    Own Id: OTP-7009</p>
        </item>
      </list>
    </section>

</section>

<section><title>Parsetools 1.4.2</title>

    <section><title>Improvements and New Features</title>
      <list>
        <item>
	    <p>The size of the code generated by yecc has been
	    reduced. </p>
	    <p>A note regarding the <c>includefile</c> option:
	    although yecc can cope with includefiles based on some
	    earlier <c>yeccpre.hrl</c> it is recommended for
	    efficiency reasons to update includefiles as to follow
	    the pattern in the latest <c>yeccpre.hrl</c>.</p>
          <p>
	    Own Id: OTP-6851</p>
        </item>
      </list>
    </section>

</section>

  <section>
    <title>Parsetools 1.4.1.1</title>

    <section>
      <title>Improvements and New Features</title>
      <list type="bulleted">
        <item>
          <p>Minor Makefile changes.</p>
          <p>Own Id: OTP-6689</p>
        </item>
      </list>
    </section>
  </section>

  <section>
    <title>Parsetools 1.4.1</title>

    <section>
      <title>Fixed Bugs and Malfunctions</title>
      <list type="bulleted">
        <item>
          <p>A bug concerning precedence declarations of
            non-terminals "one level up" has been fixed in yecc.</p>
          <p>Own Id: OTP-6362</p>
        </item>
      </list>
    </section>
  </section>

  <section>
    <title>Parsetools 1.4</title>

    <section>
      <title>Improvements and Fixed Bugs</title>
      <p>Several modifications of Yecc have been made:</p>
      <list type="bulleted">
        <item>
          <p>The new functions <c>file/1,2</c> take the
            role of the old functions <c>yecc/2,3,4</c>. The
            latter functions are no longer documented but are
            kept for backward compatibility.</p>
        </item>
        <item>
          <p>More checks of the grammar file have been 
            implemented. Examples are warnings for unused 
            non-terminals and duplicated declarations.</p>
        </item>
        <item>
          <p>Invalid pseudo variables are no longer 
            replaced by <c>'$undefined'</c> but cause a failure.</p>
        </item>
        <item>
          <p>Reserved words no longer need to be quoted
            when used as terminals or non-terminals.</p>
        </item>
        <item>
          <p>When compiling the generated parser file errors
            and warnings concerning user code refer to 
            the grammar file, not the parser file.</p>
        </item>
        <item>
          <p>Yecc emits a warning if there are conflicts
            in the grammar. The new declaration <c>Expect</c> can
            be used to suppress this warning.</p>
        </item>
        <item>
          <p>The new operator precedence declaration
            <c>Nonassoc</c> can be used to declare operators with
            no associativity.</p>
        </item>
        <item>
          <p>Precedence can be given to more than one operator
            with one single operator precedence declaration.</p>
        </item>
        <item>
          <p>The function <c>parse_and_scan/1</c> in the
            default includefile accepts <c>{Function, A}</c>
            as well as {{M,F}, A} as tokenizer function.
            Exceptions in the tokenizer are never caught.</p>
        </item>
        <item>
          <p>The functions <c>yecc:file/1,2</c> can be accessed
            from the Erlang shell via the new functions <c>c:y/1,2</c> 
            in STDLIB.</p>
        </item>
      </list>
      <p>See yecc(3) for further details.</p>
      <p>Own Id: OTP-5366</p>
    </section>
  </section>

  <section>
    <title>Parsetools 1.3.2</title>

    <section>
      <title>Fixed Bugs and Malfunctions</title>
      <list type="bulleted">
        <item>
          <p>A bug in <c>Yecc</c> that was introduced in R9B has been
            removed. Another bug concerning precedence declaration
            "one level up" has been fixed.</p>
          <p>Own Id: OTP-5461</p>
        </item>
      </list>
    </section>
  </section>

  <section>
    <title>Parsetools 1.3.1</title>

    <section>
      <title>Fixed Bugs and Malfunctions</title>
      <list type="bulleted">
        <item>
          <p>A bug in the file <c>parsetools/include/yeccpre.hrl</c>
            caused <c>yecc:parse_and_scan/1</c> to always report a
            parse failure when the lexer reported end-of-file. This
            problem has been fixed.</p>
          <p>Own Id: OTP-5369</p>
        </item>
      </list>
    </section>
  </section>
</chapter>