Debian Codegraph @

changelog

raw
1 bisonc++ (6.09.02)
2
3 * When %token-path (or option) is sepcified then the tokens.h file
4 containing an empty Tokens_ enum in the struct Tokens so ParserBase can be
5 derived from Tokens. At each new run of bisonc++ tokens.h is redefined, so
6 it's always up-to-date.
7 * The parser generates ./tokens/tokens.h containing its (own) 'struct
8 Tokens' (rebis OK).
9 * The 'build' script has a new argument 'strip', the -P option is removed.
10 * When compiling source files the C++ standard to use is rerieved from the
11 ICMAKE_CPPSTD environment variable (e.g., ICMAKE_CPPSTD=--std=c++26).
12
13 -- Frank B. Brokken <[email protected]> Sun, 24 Aug 2025 10:42:19 +0200
14
15 bisonc++ (6.09.01)
16
17 * Specifying %token-path now also works in combination with the
18 %target-directory directive (or option)
19 * scanner/lex.cc checks for non-empty d_matched strings when calling
20 d_matched.back() (required when using g++ >= 15.0.0).
21 * The usage info now also mentions the token options.
22
23 -- Frank B. Brokken <[email protected]> Thu, 27 Mar 2025 19:03:48 +0100
24
25 bisonc++ (6.09.00)
26
27 * The manual shows the GPL V 3 (conditions for using bisonc++) which is now
28 included in the source distribution (the file ./LICENCE).
29
30 * End-of-line comment used in %polymorphic %type specifications is now
31 ignored.
32
33 -- Frank B. Brokken <[email protected]> Thu, 16 May 2024 09:21:26 +0200
34
35 bisonc++ (6.08.00)
36
37 * The check for non-empty rules by the %prec directive was too strict.
38 It now checks whether the rule's rhs is empty (cf. rules/rules.f:
39 Rules::empty()).
40
41 -- Frank B. Brokken <[email protected]> Sun, 24 Mar 2024 12:23:03 +0100
42
43 bisonc++ (6.07.00)
44
45 * 6.07 is only used by Debian.
46
47 -- Frank B. Brokken <[email protected]> Fri, 01 Mar 2024 11:03:44 +0100
48
49 bisonc++ (6.06.00)
50
51 * The %prec directive requires a non-empty grammar rule.
52
53 * When using %polymorphic the Tag_ enum defines a last tag END_TAG_, and the
54 parserbase.h declares the (empty) class EndPolyType_. END_TAG_ and
55 EndPolyType_ are used by the default constructor of the Meta_::SType
56 class, avoiding undefined SType objects that caused segmentation faults
57 when the %prec directive was used in an empty grammar rule.
58
59 * States having SR and/or RR conflicts now count 1 SR conflict when multiple
60 LA-tokens are removed from the same production rule, and count 1 RR
61 conflict when an earlier rule is kept, dropping one or more later rules.
62 However, when RR conflicts are observed, Bisonc++ will report which rules
63 are dropped from which states.
64
65 -- Frank B. Brokken <[email protected]> Sun, 15 Oct 2023 09:41:02 +0200
66
67 bisonc++ (6.05.00)
68
69 * Changed 'typedef' declarations into 'using' declarations, also in
70 generated parsers
71
72 * Updated the documentation accordingly
73
74 * Removed the superfluous flag -pthread from INSTALL.im
75
76 -- Frank B. Brokken <[email protected]> Thu, 23 Mar 2023 10:01:08 +0100
77
78 bisonc++ (6.04.05)
79
80 * Ready for libbobcat6
81
82 * Added 'c++std' defining the c++ standard to use for
83 compilation. Compilation commands also use -Werror
84
85 * Repaired errors caused by warnings and -Werror
86
87 -- Frank B. Brokken <[email protected]> Sun, 11 Sep 2022 13:06:55 +0200
88
89 bisonc++ (6.04.04)
90
91 * Removed -q from bisonc++'s build script
92
93 -- Frank B. Brokken <[email protected]> Sat, 26 Jun 2021 14:52:47 +0200
94
95 bisonc++ (6.04.03)
96
97 * Added the descriptions of the %token-class, %token-namespace, and
98 %token-path directives to the bisonc++input(7) man-page.
99
100 -- Frank B. Brokken <[email protected]> Thu, 18 Mar 2021 13:50:44 +0100
101
102 bisonc++ (6.04.02)
103
104 * Bisonc++'s lexical scanner was generated by flexc++ 2.09.00
105
106 * The .tar.gz extensions were removed from the man-pages' last lines.
107
108 -- Frank B. Brokken <[email protected]> Sun, 21 Feb 2021 13:35:41 +0100
109
110 bisonc++ (6.04.01)
111
112 * Bisonc++'s lexical scanner was generated by flexc++ 2.08.00
113
114 -- Frank B. Brokken <[email protected]> Fri, 13 Nov 2020 10:43:27 +0100
115
116 bisonc++ (6.04.00)
117
118 * Added options and directives 'token-class', 'token-namespace', and
119 'token-path' creating a 'Tokens' class containing the symbolic tokens of
120 the generated grammar on a separate file. Starting with this release
121 bisonc++'s own source files refer to the file parser/tokens.h, and its
122 Scanner class now refers to Tokens::tokenName instead of
123 Parser::tokenName.
124
125 * The manual and man-pages were updated accordingly.
126
127 * Updated icmake/findall in line with the icmake(1) man-page
128
129 -- Frank B. Brokken <[email protected]> Fri, 21 Mar 2020 15:19:20 +0100
130
131 bisonc++ (6.03.00)
132
133 * Polymorphic assignment member functions are explicitly implemented instead
134 of using generic template functions. This allows the compiler to perform
135 implicit conversions. E.g., when using template assignment operators and a
136 polymorphic type INT -> int is defined then the assignment $$ = 'a' is not
137 compiled. But if the assignment operators are separately defined for each
138 of the polymorphic types the compiler performs the char -> int conversion
139 and the assignment is compiled.
140
141 * Fixed a flaw in the overview of bisonc++ options: -L by default uses the
142 bisonc++polymorphic.code skeleton, -M by default uses the
143 bisonc++polymorphic skeleton.
144
145 -- Frank B. Brokken <[email protected]> Thu, 13 Jun 2019 12:32:16 +0200
146
147 bisonc++ (6.02.05)
148
149 * To avoid type conversion ambiguities when comparing StateTypes flags
150 operator& was defined for two StateType values (skeletons/bisonc++.cc)
151
152 -- Frank B. Brokken <[email protected]> Fri, 01 Mar 2019 15:45:01 +0100
153
154 bisonc++ (6.02.04)
155
156 * The function print() (skeletons/bisonc++.ih; also in generated parser.ih
157 files) no longer calls print_(). The function print_() displays tokens if
158 the --print-tokens option is specified. However, if that option is
159 specified print_() is already called from nextToken_ in parse.cc.
160
161 -- Frank B. Brokken <[email protected]> Mon, 21 Jan 2019 10:37:30 +0100
162
163 bisonc++ (6.02.03)
164
165 * Fixed an off-by-one line error reported by Alex Es.
166
167 * Added #define GNU to INSTALL.im to select either g++ or clang++ (->
168 clang++-7). Using g++ by default.
169
170 * Several source files received minor changes to prevent clang++ warnings.
171
172 * Added the directory iuo/ to contain files which are only internally used.
173 (currently containing module.modulemap)
174
175 -- Frank B. Brokken <[email protected]> Sat, 10 Nov 2018 13:11:47 +0100
176
177 bisonc++ (6.02.02)
178
179 * [[fallthrough]] requires a final semicolon (cf. C++ std 20, 10.6.5).
180 Bisonc++'s internal and generated code is fixed accordingly.
181
182 * Andreas Beckmann noticed two dangling symlinks below the
183 bisonc++-doc/demos directory: fixed in this release. The files
184 documentation/man/calculator/scanner/lexer and
185 documentation/regression/calculator/scanner/lexer are now copies instead
186 of one being a symlink to the other
187
188 -- Frank B. Brokken <[email protected]> Wed, 03 Oct 2018 21:39:50 +0200
189
190 bisonc++ (6.02.01)
191
192 * Migrated Bisonc++ from Github to Gitlab.
193
194 -- Frank B. Brokken <[email protected]> Sat, 16 Jun 2018 07:22:42 +0200
195
196 bisonc++ (6.02.00)
197
198 * Starting with version 6.02.00 bisonc++ reserved identifiers no longer end
199 in two underscore characters, but in one. This modification was necessary
200 because according to the C++ standard identifiers having two or more
201 consecutive underscore characters are reserved by the language. In
202 practice this could require some minor modifications of existing source
203 files using bisonc++'s facilities, most likely limited to changing
204 Tokens__ into Tokens_ and changing Meta__ into Meta_.
205
206 The complete list of affected names is:
207
208 Enums: DebugMode_, ErrorRecovery_, Return_, Tag_, Tokens_;
209
210 Enum values: PARSE_ABORT_, PARSE_ACCEPT_, UNEXPECTED_TOKEN_, sizeofTag_;
211
212 Type / namespace designators: Meta_, PI_, STYPE_;
213
214 Member functions: clearin_, errorRecovery_, errorVerbose_, executeAction_,
215 lex_, lookup_, nextCycle_, nextToken_, popToken_, pop_, print_,
216 pushToken_, push_, recovery_, redoToken_, reduce_, savedToken_,
217 shift_, stackSize_, startRecovery_, state_, token_, top_, vs_,
218
219 Protected data members: d_acceptedTokens_, d_actionCases_, d_debug_,
220 d_nErrors_, d_requiredTokens_, d_val_, idOfTag_, s_nErrors_
221
222 -- Frank B. Brokken <[email protected]> Tue, 15 May 2018 20:58:45 +0200
223
224 bisonc++ (6.01.03)
225
226 * To avoid lintian reports about missing examples the 'examples/'
227 directories were renamed to 'demos/'
228
229 -- Frank B. Brokken <[email protected]> Thu, 08 Mar 2018 21:00:12 +0100
230
231 bisonc++ (6.01.02)
232
233 * Added C++-17 attributes [[maybe_notused]] to bisonc++'s code, and removed
234 unused parameters unless required.
235
236 -- Frank B. Brokken <[email protected]> Thu, 08 Mar 2018 20:16:50 +0100
237
238 bisonc++ (6.01.01)
239
240 * Fixed a missing destination for the link to the sources of the rpn
241 calculator mentioned in Ch. 6 of the user manual.
242
243 -- Frank B. Brokken <[email protected]> Tue, 23 Jan 2018 12:59:39 +0100
244
245 bisonc++ (6.01.00)
246
247 * Removed std:: in front of thread_local in generated code
248
249 * Removed definitions of the Yodl tr-macro from .yo files: it is a
250 predefined macro in Yodl 4.02.00, and is not used in de documentation.
251
252 -- Frank B. Brokken <[email protected]> Sat, 20 Jan 2018 11:40:25 +0100
253
254 bisonc++ (6.00.00)
255
256 * The generated code was rewritten. The protected interface of ParserBase
257 and names of parse()-related members in Parser was modified. The names of
258 all accessible members in parserbase.h and parser.h now have two trailing
259 underscore characters.
260 Predefined members in parser.ih no longer have trailing underscores, and
261 can be redefined.
262 The traditional error(char const *) member in fact never uses its argument
263 (and bisonc++ only passed the default "Syntax error" argument). Its
264 prototype now no longer defines a parameter. Here's an overview of
265 modified member names/signatures:
266
267 --------------------------------------------------------
268 Before 6.00.00 Starting with 6.00.00
269 --------------------------------------------------------
270 void error(char const *); void error();
271
272 void exceptionHandler__(... void exceptionHandler(...
273
274 void errorRecovery(); void errorRecovery__();
275 void executeAction(int); void executeAction__(int);
276 void nextToken(); void nextToken__();
277 --------------------------------------------------------
278
279 added:
280 ---------------------------
281 void nextCycle__();
282 ---------------------------
283 removed:
284 ---------------------------
285 int lookup(bool);
286 ---------------------------
287
288 When re-generating parsers generated by bisonc++ before version 6.00.00,
289 the signatures of the above functions in the file parser.h must be
290 hand-modified to reflect the above changes. In addition, the
291 implementations of error and exceptionHandler (default implementations
292 were provided in parser.ih) must be adapted to their new signatures.
293
294 * Added a warning to skeleton/binsonc++.h that until the #undef instruction
295 Parser will be read as ParserBase.
296
297 * With Polymorphic semantic values a tag mismatch is no considered fatal
298 anymore if errors were already encountered. In that case the semantic
299 value showing a tag mismatch is replaced by the default value of the
300 semantic value of the expected polymorphic type.
301
302 * Compilation of bisonc++ now starts with the construction of precompiled
303 headers, significantly reducing the compilation time.
304
305 * The state stack elements now consist of two values: the first
306 element holds the state index, the second element the semantic value.
307
308 * Added option and directive 'prompt': the generated parser shows a ?-prompt
309 at each cycle when processing its input (which should not be provided on
310 the standard input stream).
311
312 * `thread-safe' can now also be specified as a directive. Previously it
313 could only be specified as option.
314
315 * Documentation was updated to reflect the above modifications
316
317 * The build script now properly recognizes the 'strip' option
318
319 * By default precompiled headers are used. The option -P (cf. log entry
320 'bisonc++ (4.12.03)' below) is now opertational.
321 Be advised that using -P removes all existing .ih.gch files from the
322 directory containing 'main.ih' and from all its immediate subdirectories.
323
324 * Removed the compiler option --std=c++14, since that's by now the default.
325
326 -- Frank B. Brokken <[email protected]> Thu, 18 May 2017 09:46:19 +0200
327
328 bisonc++ (5.03.00)
329
330 * Added a declaration like 'Parser() = default' to the generated parser
331 class header file.
332
333 * Added an item about existing constructors and how to add additional
334 constructors to parser classes generated by bisonc++
335
336 * Corrected 'see also' references in the man-pages.
337
338 -- Frank B. Brokken <[email protected]> Sat, 28 Jan 2017 15:12:16 +0100
339
340 bisonc++ (5.02.02)
341
342 * Updated the description of the %prec directive.
343
344 -- Frank B. Brokken <[email protected]> Tue, 24 May 2016 16:33:48 +0530
345
346 bisonc++ (5.02.01)
347
348 * Repaired an error in 'build install LOG...'.
349
350 * Verified that 'selection' in 'build install selection' was correctly
351 specified.
352
353 -- Frank B. Brokken <[email protected]> Wed, 18 May 2016 17:34:28 +0530
354
355 bisonc++ (5.02.00)
356
357 * The polymorphic semantic values implementation uses a unique_ptr when
358 transferring semantic values inside the geerated parser (including
359 bisonc++'s own parser). See the documentation for details.
360
361 * Added new option/directive stack-expansion defining the number of elements
362 to add to a completely full semantic value stack.
363
364 * Enlarging the semantic value stack does not require copying existing
365 semantic values to the enlarged semantic value stack. Either resizing is
366 used (when the capacity allows it) or the stored semantic values are moved
367 to the enlarged stack, which is then swapped with the parser's semantic
368 values stack.
369
370 * More in general: the generated parser itself does not internally copy
371 semantic values anymore. Copying is only used in the grammar's action
372 blocks .
373
374 -- Frank B. Brokken <[email protected]> Fri, 13 May 2016 13:46:18 +0530
375
376 bisonc++ (5.01.00)
377
378 * Reimplemented polymorphic semantic values: the Meta__::Base class now is
379 a virtual bease class.
380
381 * Some templated operator& functions cannot handle two DebugMode__
382 arguments. To prevent compilation errors in those cases a
383 DebugMode__ operator&(DebugMode__, DebugMode__) function was added to
384 the parserbase-skeleton.
385
386 * The documentation erroneously referred to an undefined --action-cases
387 option. Instead, --debug should be used and setDebug(Parser::ACTIONCASES)
388 should be called. Code and documentation modified accordingly.
389
390 * Added the script documentation/regression/runone to run a single
391 regression test.
392
393 -- Frank B. Brokken <[email protected]> Thu, 05 May 2016 20:35:39 +0530
394
395 bisonc++ (5.00.01)
396
397 * Fixed verbinsert calls: yodl 3.07.01 implements a macro 'verbinsert'
398 rendering bisonc++'s own definition superfluous. The new definition
399 requires 1 argument, and the old one 2, so the verbinsert calls were
400 updated accordingly.
401
402 * Alexander Sedov noticed that line numbers in the default actions were
403 incorrect. Line numbers of default actions are now set to the line of the
404 '|' or ';' character following the production rule receiving a default
405 action block.
406
407 * Updated the 'required' file.
408
409 -- Frank B. Brokken <[email protected]> Mon, 25 Apr 2016 15:47:27 +0530
410
411 bisonc++ (5.00.00)
412
413 * Options/directives:
414
415 The default `default-actions std' option/directive unconditionally adds $$
416 = $1 action blocks to non-empty production rules w/o final action blocks
417
418 Added option/directive tag-mismatches. and option
419 --polymorphic-code-skeleton (-L).
420
421 The formerly available option --no-default-action-return was renamed to
422 default-actions (-d replacing -N), and can now also be used as a
423 directive: %default-actions.
424
425 Option --polymorphic-inline-skeleton (-m) is not used anymore and was
426 removed.
427
428 The option --include-only has been dropped (although it was mentioned in
429 the usage info, it had in fact not been available for quite some time).
430
431
432 * Implementation:
433
434 Reimplemented handling polymorphic semantic values. shared pointers are no
435 longer used. Details: see README.polymorphic-technical and parser/data.cc
436
437 Type specifications in %type directives are verified. With %union the
438 check is a simple check whether '\btype\b' is found in the %union spec.
439
440 Mismatches between the types of nonterminals and the types of the first
441 elements of their production rules previously resulted in a `type clash of
442 default action' warning. Such mismatches are now considered errors.
443
444 After parsing a grammar file only plain warning messages (i.e., without
445 file/line info) are issued. Switching to such plain message is now done in
446 Parser::cleanup, and no longer in various members of objects being used
447 after calling Parser::cleanup().
448
449 Comment (to end-of-line and C-style) can now also be used in polymorphic
450 type specifications.
451
452 Renamed the top-level bisonc++.cc and bisonc++.ih files to main.cc and
453 main.ih, respectively.
454
455 Using new lexical scanner, built by Flexc++ V2.04.00.
456
457
458 * Grammar files:
459
460 New dollar-notations ($$(...), _$$, _$i) are available, $<tag>$,
461 $<tag>i are not available anymore.
462
463
464 * API:
465
466 New member: setDebug(DebugMode__), shows the action case
467 just before executing the action block.
468
469 The SType::data() member is now obsolete and has been removed.
470
471 The semantic value type STYPE__ (the class Meta__::SType) member `valid()
472 const' returns true if its member tag() returns a valid Tag__, otherwise
473 it returns false. False is returned for default constructed STYPE__
474 values. Previous implementations of STYPE__ implemented an undocumented
475 member pointer (->) operator for calling get() and data(). This operator
476 is no longer available. Instead of -> the member selector operator (.)
477 should be used. E.g., stype.get<Tag__::INT>().
478
479 The member SType::emplace (See the 4.13.00 log entry) was renamed to
480 SType::assign: it doesn't emplace, but assign. The construction
481 $$(-optional arguments-); can be used in action blocks to do
482 $$.emplace<Tag of the rule's semantic value>(-optional arguments-);
483
484
485 * Documentation:
486
487 Bisonc++'s man-page and manual was updated.
488
489 Added new man-pages bisonc++input.7, describing the organization of
490 bisonc++'s grammar file(s), and bisonc++api.3, describing the API of the
491 software generated by bisonc++
492
493
494 * Regression tests:
495
496 The extensive calculator regression test declared a RuleValue(unsigned)
497 constructor, but implemented a RuleValue(size_t) constructor, which does
498 not compile on amd64 architectures. The regression test was modified by
499 changing the constructor's size_t parameter type into unsigned.
500
501 All regression test grammar files contain the directive
502 %default-actions quiet
503 preventing warning messages about adding default $$ = $1 action blocks to
504 production rules without action blocks.
505
506 -- Frank B. Brokken <[email protected]> Wed, 13 Apr 2016 11:03:54 +0530
507
508 bisonc++ (4.13.01)
509
510 * slightly modified the icmake build scripts to prevent multiple inclusions
511 of some of the installed files.
512
513 -- Frank B. Brokken <[email protected]> Fri, 18 Dec 2015 13:41:08 +0100
514
515 bisonc++ (4.13.00)
516
517 * 'build install' supports an optional LOG: argument: the (relative or
518 absolute) path to a installation log file. The environment variable
519 BISONCPP is no longer used.
520
521 * Updated the usage info displayed by `./build', altered the procedure to
522 install the files at their final destinations.
523
524 * Following a suggestion made by gendx the polymorphic class Semantic now
525 defines a variadic template constructor, allowing Semantic objects
526 (and thus SType::emplace) to be initialized (c.q. called) using any set of
527 argument types that are supported by Semantic's DataType. Also, the
528 (internally used) classes HasDefault and NoDefault are now superfluous and
529 were removed (from skeletons/bisonc++polymorphic and
530 skeletons/bisonc++polymorphic.inline).
531
532 * Adapted the icmake build files to icmake 8.00.04
533
534 -- Frank B. Brokken <[email protected]> Sun, 13 Dec 2015 16:29:41 +0100
535
536 bisonc++ (4.12.03)
537
538 * Kevin Brodsky observed that the installation scripts used 'chdir' rather
539 than 'cd'. Fixed in this release.
540
541 * Kevin Brodsky also observed that the combined size of all precompiled
542 headers might exceed some disks capacities. The option -P was added to the
543 ./build script to prevent the use of precompiled headers.
544
545 -- Frank B. Brokken <[email protected]> Mon, 05 Oct 2015 20:17:56 +0200
546
547 bisonc++ (4.12.02)
548
549 * Refined the 'build uninstall' procedure
550
551 -- Frank B. Brokken <[email protected]> Sun, 04 Oct 2015 16:27:18 +0200
552
553 bisonc++ (4.12.01)
554
555 * The implementation of the ./build script was improved.
556
557 -- Frank B. Brokken <[email protected]> Thu, 01 Oct 2015 18:41:45 +0200
558
559 bisonc++ (4.12.00)
560
561 * Added 'build uninstall'. This command only works if, when calling one of
562 the 'build install' alternatives and when calling 'build uninstall' the
563 environment variable BISONCPP contains the (preferably absolute) filename
564 of a file on which installed files and directories are logged.
565 Note that 'build (dist)clean' does not remove the file pointed at by the
566 BISONCPP environment variable, unless that file happpens to be in a
567 directory removed by 'build (dist)clean'. See also the file INSTALL.
568 Defining the BISONCPP environment variable as ~/.bisoncpp usually works
569 well.
570
571 * Guillaume Endignoux offered several valuable suggestions:
572 - Classes may not have default constructors, but may still be used if
573 the default $$ = $1 action is not used. This can now be controlled using
574 option --no-default-action-return (-N). When this option is specified
575 the default $$ = $1 assignment of semantic values when returning from an
576 action block isn't provided. When this option is specified then Bisonc++
577 generates a warning for typed rules (non-terminals) whose action blocks
578 do not provide an explicit $$ return value.
579 - To assign a value to $$ a member `emplace' is provided, expecting the
580 arguments of the type represented by $$.
581 - In cases where a $x.get<Tag::NAME>() cannot return a reference to a
582 value matching tt(Tag::NAME) and the associated type does not provide a
583 default constructor this function throws an exception reporting
584 STYPE::get<tag>: no default constructor available
585
586 * Bisonc++'s documentation about using polymorphic values was modified, in
587 particular the information about how the various polymorphic values can
588 be assigned and retrieved.
589
590 -- Frank B. Brokken <[email protected]> Tue, 29 Sep 2015 11:48:18 +0200
591
592 bisonc++ (4.11.00)
593
594 * Cleanup of the manual, in particular how lexical scanners can access the
595 various values of polymorphic semantic value types (cf. section
596 `Polymorphism and multiple semantic values'). The man-page was modified
597 accordingly.
598
599 * The manual-stamp file is no longer used. Calling 'build manual' now always
600 (re)builds the manual. The same holds true for 'build man'.
601
602 * The in version 4.08.00 removed const members were reinstalled, as they are
603 required in situations where, e.g., a function defines an STYPE__ const *
604 parameter.
605
606 * Added 'build uninstall'. This command only works if, when calling one of
607 the 'build install' alternatives and when calling 'build uninstall' the
608 environment variable BISONCPP contains the (preferably absolute) filename
609 of a file on which installed files and directories are logged.
610 Note that 'build (dist)clean' does not remove the file pointed at by the
611 BISONCPP environment variable, unless that file happpens to be in a
612 directory removed by 'build (dist)clean'. See also the file INSTALL.
613 Defining the BISONCPP environment variable as ~/.bisoncpp usually works
614 well.
615
616 * The INSTALL file was updated to the current state of affairs.
617
618 * Removed the file parser/reader, which contained code generated by
619 bison. It was nowhere used and I simply couldn't see why it was added to
620 the parser's directory at all.
621
622 * Removed the file 'distribution' from this directory's parent directory. It
623 is not used, and was superseded by the file sourcetar (both files are
624 Internal Use Only).
625
626 * Removed the file documentation/bison.ps.org/bison.ps.gz: it harbored an
627 compression error (already at the very first bisonc++ release), and the
628 bison documentation in html format remains part of the bisonc++
629 distribution.
630
631 -- Frank B. Brokken <[email protected]> Sun, 30 Aug 2015 11:13:57 +0200
632
633 bisonc++ (4.10.01)
634
635 * Production rules of non-terminal symbols that immediately follow dot
636 positions of existing items are added as new (implied) items to that
637 state's set of items. The --construction option no longer shows the
638 indices of such newly added items as this information can easily be
639 obtained from the provided construction output.
640
641 -- Frank B. Brokken <[email protected]> Sun, 17 May 2015 16:54:13 +0200
642
643 bisonc++ (4.10.00)
644
645 * FOLLOW sets are not used when analyzing LALR(1) grammars. The class
646 FollowSet and all operations on follow sets were removed.
647
648 * The LA set computation algorithm was reimplemented, a description of the
649 new algorithm is included in the manual and in several source files, in
650 particular state/determinelasets.cc. Both the state items' LA computation
651 and the LA propagation algorithms were completely reimplemented.
652
653 * Rules causing conflicts (i.e., conflict remaining after processing %left,
654 %right, %nonassoc and/or %expect) as wel as the involved LA characters re
655 briefly mentioned immediately following the SR/RR conflict-counts.
656
657 * The class Symtab now uses an unordered_map rather than a mere (ordered)
658 map.
659
660 * The class-dependency diagram (README.class-setup) was updated to reflect
661 the latest changes. Same for the file CLASSES which is used by the build
662 script.
663
664 * Added the file `required' listing the non-standard software that is
665 required to build bisonc++ and its user guide / man-page
666
667 -- Frank B. Brokken <[email protected]> Sun, 17 May 2015 13:13:55 +0200
668
669 bisonc++ (4.09.02)
670
671 * Wilko Kuiper reported an annoying bug in the skeleton lex.in, causing the
672 compilation of parser.hh to fail. This release fixes that bug.
673
674 -- Frank B. Brokken <[email protected]> Mon, 28 Jul 2014 16:46:35 +0200
675
676 bisonc++ (4.09.01)
677
678 * $#$#@ !! Forgot to update the help-info (bisonc++ --help) to reflect the
679 new -D option. Now fixed.
680
681 -- Frank B. Brokken <[email protected]> Sun, 11 May 2014 09:05:48 +0200
682
683 bisonc++ (4.09.00)
684
685 * Added option --no-decoration (-D), suppressing the actions that are
686 normally associated with matched rules.
687
688 -- Frank B. Brokken <[email protected]> Sat, 10 May 2014 11:58:46 +0200
689
690 bisonc++ (4.08.01)
691
692 * Members of the class `Generator' generating a substantial amount of code
693 now read skeleton files instead of strings which are defined in these
694 functions' bodies.
695
696 * Added new skeleton files for the abovementioned functions. The names of
697 these skeleton files are identical to the matching filenames in
698 generator/, but use extensions `.in'
699
700 -- Frank B. Brokken <[email protected]> Mon, 31 Mar 2014 11:45:41 +0200
701
702 bisonc++ (4.08.00)
703
704 * std::shared_ptr doesn't slice: virtual ~Base() and dynamic_casts removed
705 from the generated parserbase.h files
706
707 * %polymorphicimpl removed from skeleton/bisonc++, matching files from
708 Generator
709
710 * The implementation of polymorphic semantic values was simplified. Const
711 members were removed from polymorphic semantic value classes; ReturnType
712 get<Tag__>() const and ReturnType data<Tag__>() const are no longer
713 required and were removed.
714
715 -- Frank B. Brokken <[email protected]> Sun, 02 Mar 2014 11:51:38 +0100
716
717 bisonc++ (4.07.02)
718
719 * Changed 'class SType into struct SType in skeletons/polymorphic, since all
720 its members are public anyway.
721
722 * Class header and class implementation header files are no longer
723 overwritten at bisonc++ runs.
724
725 * Running './build program' no longer by default uses -g (see INSTALL.im)
726
727 -- Frank B. Brokken <[email protected]> Mon, 17 Feb 2014 13:43:16 +0100
728
729 bisonc++ (4.07.01)
730
731 * Fixed segfaults (encountered with 4.07.00) caused by for-statement range
732 specification errors.
733
734 -- Frank B. Brokken <[email protected]> Sun, 16 Feb 2014 15:46:45 +0100
735
736 bisonc++ (4.07.00)
737
738 * Generating files is prevented when errors in option/declaration
739 specifications are encountered. All errors in option/declaration
740 specifications (instead of just the first error that is encountered)
741 are now reported.
742
743 -- Frank B. Brokken <[email protected]> Fri, 14 Feb 2014 14:53:33 +0100
744
745 bisonc++ (4.06.00)
746
747 * Repaired buggy handling of some options/directives
748
749 * Prevented spurious option warnings sometimes generated when options aren't
750 specified
751
752 * Action blocks associated with rules may contain raw string literals.
753
754 -- Frank B. Brokken <[email protected]> Sun, 09 Feb 2014 11:31:14 +0100
755
756 bisonc++ (4.05.00)
757
758 * Added the directive %scanner-class-name specifying the class name of the
759 scanner to use in combination with the %scanner directive
760
761 * re-installed the --namespace option (see the next item)
762
763 * Warnings are issued when options or directives are specified wchich are
764 ignored because the target file (e.g., parser.h, parser.hh) already
765 exists. These warnings are not issued for parse.cc and parserbase.h, which
766 are by default rewritten at each bisonc++ run. These warnings are issued
767 for the `class-header', `class-name', `baseclass-header', `namespace',
768 `scanner', `scanner-class-name' and `scanner-token-function'
769 options/directives.
770
771 * The --force-class-header and --force-implementation-header options were
772 removed: 'rm ...' should be used instead.
773
774 * man-page and manual updated
775
776 * CLASSES class dependencies updated, icmconf's USE_ALL activated
777
778 -- Frank B. Brokken <[email protected]> Sat, 10 Aug 2013 10:16:17 +0200
779
780 bisonc++ (4.04.01)
781
782 * Removed the possibility to specify path names for the --baseclass-header,
783 --class-header, --implementation-header, and --parsefun-source options
784 (and corresponding directives). Path names for generated files should be
785 specified using the target-directory option or directive.
786
787 -- Frank B. Brokken <[email protected]> Mon, 27 May 2013 12:12:58 +0200
788
789 bisonc++ (4.04.00)
790
791 * Repaired %target-directory not recognizing path-characters and not
792 removing surrounding "-delimiters.
793
794 * The --baseclass-header, --class-header, --implementation-header, and
795 --parsefun-source options (and corresponding directives) now also accept
796 path-specifications.
797
798 * The man-page and manual have been updated accordingly.
799
800 -- Frank B. Brokken <[email protected]> Sun, 26 May 2013 14:22:50 +0200
801
802 bisonc++ (4.03.00)
803
804 * Bisonc++ before 4.03.00 failed to notice the --debug option. Now repaired.
805
806 * Added the rpn example to the manual, and repaired typos in the manual.
807
808 * Options/directives that can only accept file names (like
809 --baseclass-header) no longer accept path names.
810
811 -- Frank B. Brokken <[email protected]> Sun, 31 Mar 2013 11:25:49 +0200
812
813 bisonc++ (4.02.01)
814
815 * Parser-class header files (e.g., Parser.h) and parser-class internal
816 header files (e.g., Parser.hh) generated with bisonc++ < 4.02.00 require
817 two hand-modifications when used in combination with bisonc++ >= 4.02.00:
818
819 In Parser.h, just below the declaration
820 void print__();
821 add:
822 void exceptionHandler__(std::exception const &exc);
823
824 In Parser.hh, assuming the name of the generated class is `Parser', add
825 the following member definition (if a namespace is used: within the
826 namespace's scope):
827 inline void Parser::exceptionHandler__(std::exception const &exc)
828 {
829 throw; // re-implement to handle exceptions thrown by actions
830 }
831 This function may be re-implemented, see the man-page for further details.
832
833 -- Frank B. Brokken <[email protected]> Mon, 11 Mar 2013 16:50:26 +0100
834
835 bisonc++ (4.02.00)
836
837 * Added member Parser::exceptionHandler(std::exception const &exc), handling
838 std::exceptions thrown from the parser's action blocks.
839
840 * The --namespace option was removed, since it does not affect once
841 generated parser.h files, resulting in inconsistent namespace
842 definitions.
843
844 * Include guards of parser.h and parserbase.h include the namespace
845 identifier, if %namespace has been used.
846
847 * Provided print()'s implementation in bisonc++.hh with a correct
848 class-prifix (was a fixed Parser::)
849
850 * Textual corrections of the man-page and manual.
851
852 -- Frank B. Brokken <[email protected]> Thu, 07 Mar 2013 09:57:07 +0100
853
854 bisonc++ (4.01.02)
855
856 * Bisonc++ returns 0 for options --help and --version
857
858 * Catching Errno exceptions is replaced by catching std::exception
859 exceptions
860
861 -- Frank B. Brokken <[email protected]> Thu, 24 Jan 2013 08:14:59 +0100
862
863 bisonc++ (4.01.01)
864
865 * The following #defines in INSTALL.im can be overruled by defining
866 identically named environment variables:
867 CXX defines the name of the compiler to use. By default `g++'
868 CXXFLAGS the options passed to the compiler.
869 By default `-Wall --std=c++0x -O2 -g'
870 LDFLAGS the options passed to the linker. By default no options are
871 passed to the linker.
872 SKEL the directory where the skeletons are stored
873
874 -- Frank B. Brokken <[email protected]> Sun, 15 Jul 2012 14:44:46 +0200
875
876 bisonc++ (4.01.00)
877
878 * Repaired a long-existing bug due to which some S/R conflicts are solved by
879 a reduce, where a shift should have been used. See
880 README.states-and-conflicts for details.
881
882 * Removed line-numbers from final warning/error messages
883
884 * This version requires Bobcat >= 3.00.00
885
886 -- Frank B. Brokken <[email protected]> Thu, 03 May 2012 21:21:47 +0200
887
888 bisonc++ (4.00.00)
889
890 * Implemented the %polymorphic directive. Bisonc++ itself uses %polymorphic
891 to implement its own polymorphic semantic values; man-page and manual
892 extended with sections about polymorphic semantic values.
893
894 * Implemented the %weak-tags directive. By default %polymorphic declares
895 an `enum class Tag__', resulting in strongly typed polymorphic tags. If
896 the traditional tag declaration is preferred, the %weak-tags directive can
897 be specified in addition to %polymorphic, resulting in the declaration
898 `enum Tag__'.
899
900 * The previously used class spSemBase and derivatives (e.g., SemBase,
901 Semantic) are now obsolete and the directories sembase and spsembase
902 implementing these classes were removed.
903
904 * The Parser's inline functions are all private and were moved to the
905 parser's .hh file. This doesn't affect current implementations, as
906 parser.h and parser.hh are only generated once, but newly generated
907 parsers no longer define the Parser's inline members (error, print__, and
908 lex) in parser.h but in parser.hh
909
910 * @@ can be used (instead of d_loc__) to refer to a rule's location stack
911 value.
912
913 * The generated parser now uses unordered_maps instead of maps.
914
915 -- Frank B. Brokken <[email protected]> Fri, 13 Apr 2012 14:10:12 +0200
916
917 bisonc++ (3.01.00)
918
919 * The `%print-tokens' directive was accidentally omitted from
920 3.00.00. Repaired in this release.
921
922 * Starting this release all release tags (using names that are identical to
923 the version number, so for this release the tag is 3.01.00) are signed to
924 allow authentication.
925
926 -- Frank B. Brokken <[email protected]> Mon, 27 Feb 2012 13:33:20 +0100
927
928 bisonc++ (3.00.00)
929
930 * This release's scanner was built by flexc++
931
932 * Option handling was separated from parsing, following the method also used
933 in flexc++: a class Options holds and maintains directives and options
934 that are used in multiple points in bisonc++'s sources. The Parser passes
935 directive specifications to set-functions defined by the class Options.
936
937 * The parser's semantic value handling recevied a complete overhaul. Unions
938 are no longer used; instead a light-weight polymorphic base class in
939 combination with some template meta programming was used to handle the
940 semantic values. See sembase/sembase.h for a description of the appproach.
941
942 * Options and directives were rationalized/standardized. See the man-page
943 for details. Grammar specification files should no longer use %print, but
944 should either use %print-tokens or %own-tokens (or the equivalent
945 command-line options).
946
947 * NOTE: Existing Parser class interfaces (i.e. parser.h) must be
948 (hand-) modified by declaring a private member
949
950 void print__();
951
952 See the man-page and/or manual for details about print__.
953
954 * All regression tests (in documentation/regression) are now expecting
955 that flexc++ (>= 0.93.00) is available.
956
957 -- Frank B. Brokken <[email protected]> Mon, 20 Feb 2012 16:32:01 +0100
958
959 bisonc++ (2.09.04)
960
961 * Replaced many for_each calls and lamda functions by range-based for-loops
962
963 * Used g++-4.7
964
965 -- Frank B. Brokken <[email protected]> Wed, 04 Jan 2012 12:26:01 +0100
966
967 bisonc++ (2.09.03)
968
969 * Replaced all FnWrap* calls by lambda function calls
970
971 * `build' script now recognizes CXXFLAGS and LDFLAGS for, resp. g++ and ld
972 flags. Default values are set in INSTALL.im, as before.
973
974 -- Frank B. Brokken <[email protected]> Thu, 23 Jun 2011 10:06:02 +0200
975
976 bisonc++ (2.09.02)
977
978 * Repaired flaws that emerged with g++ 4.6
979
980 -- Frank B. Brokken <[email protected]> Mon, 02 May 2011 16:30:43 +0200
981
982 bisonc++ (2.9.1)
983
984 * Documentation requires >= Yodl 3.00.0
985
986 -- Frank B. Brokken <[email protected]> Wed, 10 Nov 2010 10:30:51 +0100
987
988 bisonc++ (2.9.0)
989
990 * Changed Errno::what() call to Errno::why()
991
992 * Removed dependencies on Msg, using Mstreams and Errno::open
993 instead. Consequently, bisonc++ depends on at least Bobcat 2.9.0
994
995 -- Frank B. Brokken <[email protected]> Sat, 30 Oct 2010 22:05:30 +0200
996
997 bisonc++ (2.8.0)
998
999 * Grammars having states consisting of items in which a reduction from a
1000 (series of) non-terminals is indicated have automatically a higher
1001 precedence than items in which a shift is required. Therefore, in these
1002 cases the shift/reduce conflict is solved by a reduce, rather than a
1003 shift. See README.states-and-conflicts, srconflict/visitreduction.cc and
1004 the Bisonc++ manual, section 'Rule precedence' for examples and further
1005 information. These grammars are now showing S/R conflicts, which remained
1006 undetected in earlier versions of Bisonc++. The example was brought to my
1007 attention by Ramanand Mandayam (thanks, Ramanand!).
1008
1009 * To the set of regression tests another test was added containing a grammar
1010 having two S/R conflicts resulting from automatically selecting reductions
1011 rather than shifts. This test was named 'mandayam'.
1012
1013 * Output generated by --verbose and --construction now shows in more detail
1014 how S/R conflicts are handled. The Bisonc++ manual also received an
1015 additional section explaining when reduces are used with certain S/R
1016 conflicts.
1017
1018 * Previously the documentation stated that --construction writes the
1019 construction process to stdout, whereas it is written to the same file as
1020 used by --verbose. This is now repaired.
1021
1022 * The meaning/use of the data members of all classes are now described at
1023 the data members in all the classes' header files.
1024
1025 -- Frank B. Brokken <[email protected]> Sun, 08 Aug 2010 15:15:46 +0200
1026
1027
1028 bisonc++ (2.7.0)
1029
1030 * $-characters appearing in strings or character constants in action blocks
1031 no longer cause warnings about incorrect or negative $-indices
1032
1033 * Repaired incorrect interpretation of '{' and '}' character constants
1034 in action blocks.
1035
1036 * Added option --print (directive %print) displaying tokens received by the
1037 scanner used by the generated parser.
1038
1039 * Added option --scanner-token-function (directive %scanner-token-function)
1040 specifying the name of the function called from the generated parser's
1041 lex() function.
1042
1043 * The build script received an additional option: `build parser' can be used
1044 to force the reconstruction of parser/parse.cc and parser/parserbase.h
1045
1046 -- Frank B. Brokken <[email protected]> Wed, 31 Mar 2010 15:54:52 +0200
1047
1048 bisonc++ (2.6.0)
1049
1050 * Reorganized Bisonc++'s classes: public inheritance changed to private
1051 where possible, all virtual members now private. The parser->parserbase
1052 inheritance remains as-is (public) because parserbase essentially is a
1053 element of parser, defining types and the token-enum that must also be
1054 available to the users of the generated parser class. The alternative,
1055 defining types and tokens in the parser class would make it impossible to
1056 adapt the tokens without rewriting the parser class. Another alternative,
1057 defining the types and enum in a separate namespace imposes further
1058 restrictions on the users of the parser class, which is also considered
1059 undesirable. Public inheritance is now only used by NonTerminal, Terminal,
1060 and Symbol as these classes override virtual functions either in Symbol or
1061 in Element and the derived classes must all be usable where their base
1062 classes are expected (in accordance with the LSP).
1063
1064 bisonc++ (2.5.1)
1065
1066 * Token values written to parserbase.h are (again) suppressed when their
1067 values exceed the previous token's value by 1. All values were shown
1068 because writer/insertToken erroneously didn't receive a size_t
1069 &lastTokenValue anymore, but a size_t lastTokenValue.
1070
1071 * Removed Terminal's operator<< from the namespace std
1072
1073 * Now using initializer_lists to initialize static data (generator/data.cc
1074 main.cc)
1075
1076 -- Frank B. Brokken <[email protected]> Mon, 08 Mar 2010 20:51:22 +0100
1077
1078 bisonc++ (2.5.0)
1079
1080 * Renamed parser/spec/aux to parser/spec/auxiliary to avoid file/device
1081 confusion on some systems
1082
1083 * Removed inclusions of superfluous bobcat/fnwrap1c headers
1084
1085 * Replaced all FnWrap1c calls by FnWrap::unary
1086
1087 * Added check for d_currentRule == 0 in rules/addproduction. d_currentRule
1088 could be a 0-pointer, in which case addproduction shouldn't do anything.
1089 d_currentRule is a 0-pointer in, e.g. the erroneous grammar submitted
1090 by Justin Madru about which he rightfully remarked that even though
1091 erroneous bisonc++ shouldn't crash on it. This is his stripped-down
1092 grammar:
1093 %token X x_list
1094 %%
1095 x_list:
1096 x_list X
1097 |
1098 X
1099 ;
1100
1101 bisonc++ (2.4.8)
1102
1103 * Recompilation using option --std=c++0x, required because of Bobcat's use
1104 of C++0x syntax.
1105
1106 -- Frank B. Brokken <[email protected]> Sat, 05 Sep 2009 17:25:56 +0200
1107
1108 bisonc++ (2.4.7)
1109
1110 * Streams processed by an `#include' directive were not properly closed,
1111 resulting in a memory leak. The Scanner's code was modified to plug that
1112 leak.
1113
1114 -- Frank B. Brokken <[email protected]> Wed, 06 May 2009 09:36:02 +0200
1115
1116 bisonc++ (2.4.6)
1117
1118 * Changed the build script to allow finer control over construction and
1119 installation of parts of the package
1120
1121 -- Frank B. Brokken <[email protected]> Tue, 24 Mar 2009 19:16:10 +0100
1122
1123 bisonc++ (2.4.5)
1124
1125 * DateTime (generator/filter.cc) adapted due to change of Bobcat's DateTime
1126 interface
1127
1128 bisonc++ (2.4.4)
1129
1130 * typed terminal tokens (as used in, e.g., %type<fieldname>) were not
1131 included in the parserbase's Tokens__ enum since their symbol type is left
1132 at UNDETERMINED. tokens used in type lists can also be non-terminals, in
1133 which case their symbol type is changed accordingly. In 2.4.4. a symbol is
1134 selected for inclusion in the Tokens__ enum if it's a terminal token but
1135 also if it's a symbol that has been used in the grammar although its
1136 symbol type is left at UNDETERMINED (in generator/selectsymbolic.cc)
1137
1138 bisonc++ (2.4.3)
1139
1140 * repaired segfault generated when the name of a non-existing file was
1141 passed to bisonc++
1142
1143 bisonc++ (2.4.2)
1144
1145 * scanner/yylex.cc removed from the distribution: flex will create a new
1146 Scanner::yylex() member at each new distribution to prevent
1147 incompatibilities between earlier yylex.cc and later FlexLexer.h files.
1148
1149 bisonc++ (2.4.1)
1150
1151 * Implemented minor changes related to requirements imposed upon the code by
1152 g++ 4.3.
1153
1154 * Generator/filter now uses the Datetime::rfc2822(), implmented since Bobcat
1155 1.17.1
1156
1157 bisonc++ (2.4.0)
1158
1159 * Fixed missing entry in multiple reduction state tables:
1160
1161 State tables of multiple reduction states (e.g., REQ_RED states) were
1162 constructed incompletely. E.g., for the grammar:
1163
1164 expr:
1165 name
1166 |
1167 ident '(' ')'
1168 |
1169 NR
1170 ;
1171 name:
1172 IDENT
1173 ;
1174 ident:
1175 IDENT
1176 ;
1177
1178 the state following IDENT is either a reduce to 'name' or 'ident': the
1179 corresponding table was filled incompletely, using the number of the next
1180 token where the next token for the reduction should have been be
1181 mentioned, and an empty field in the table itself.
1182
1183 NOTE that in these situations d_val__ MUST be set by the scanner, as the
1184 reduction requires another token, and only once that token is available
1185 the reduction to, e.g., 'ident' can be performed, but at that time
1186 YYText() has already gone and is inaccessible in an action block like:
1187
1188 ident:
1189 IDENT
1190 {
1191 $$ = d_scanner.YYText();
1192 }
1193 ;
1194
1195 * The error recovery procedure in skeleton's bisonc++.cc skeleton file was
1196 reimplemented. As a side effect the internally used function
1197 'ParserBase::checkEOF()' could be removed.
1198
1199 * #line directives in rule action blocks now correctly identify the grammar
1200 specification file in which the action block was defined.
1201
1202 * Extra empty line at the end of state transition tables were removed
1203
1204 * Files generated by Bisonc++ report Bisonc++'s version and the file
1205 construction time (conform RFC 2822) as C++ comment in their first line.
1206
1207 bisonc++ (2.3.1)
1208
1209 * Fixed character returned in escaped constants. E.g., at '\'' the \ was
1210 returned instead of the ' character.
1211
1212 * Implemented the default assignment of $1 to $$ at the begin of action
1213 rules. This required another Block member: saveDollar1(), called for
1214 nested blocks. The function saveDollar1() prepends the code to save $$
1215 from $1 of the rule in which the nested block was defined. In
1216 share/bisonc++ the function executeAction() no longer saves the semantic
1217 value's TOS value as d_val__ but the rule's $1 value.
1218
1219 * To allow extraction of the archive under Cygwin (Windows) the directory
1220 parser/spec/aux was renamed to parser/spec/auxiliary (as Windows can't
1221 handle files or directories named 'aux').
1222
1223 bisonc++ (2.3.0)
1224
1225 * Dallas A. Clement uncovered a bug in handling semantic values, due to
1226 which semantic values of tokens returned by some grammars got lost. He
1227 intended to use a polymorphic semantic value class to pass different kinds
1228 of semantic values over from the scanner to the parser. This approach was
1229 the foundation of another regression test example, now added to the set of
1230 regression tests and described in Bisonc++'s manual. It will also appear
1231 as an annotated example in the C++ Annotations. Thanks, Dallas, for
1232 uncovering and reporting that bug.
1233
1234 * Dallas also noted that mid-rule actions could not refer to semantic values
1235 of rule components that had already been seen by Bisonc++. This has been
1236 fixed in this release. Dallas, thanks again!
1237
1238 * Earlier versions of Bisonc++ used the class OM (Output Mode) to define the
1239 way objects like (Non)Terminal tokens and (Non)Kernel Items were inserted
1240 into ostreams. Using OM did not result in the clarity of design I
1241 originally had in mind. OM is now removed, and instead relevant classes
1242 support a function `inserter()' allowing sources to specify (passing
1243 `inserter()' a pointer to a member function) what kind of insertion they
1244 need. For the Terminal class there is also a manipulator allowing sources
1245 to insert a insertion-member directly into the ostream.
1246
1247 * New option: --insert-stype
1248 The generated parser will now also display semantic values when %debug is
1249 specified if the new command-line option --insert-stype is provided. Of
1250 course, in this case users should make sure that the semantic value is
1251 actually insertable (e.g., by providing an overloaded operator
1252 std::ostream &std::operator<<(std::ostream &out, STYPE__ const &semVal).
1253
1254 bisonc++ (2.2.0)
1255
1256 * Repaired a bug in parsing action blocks of rules appearing only in
1257 versions 2.1.0 and 2.0.0. In these versions compound statements defined
1258 within the action blocks result in bisonc++ erroneously reporting an error
1259 caused by bisonc++'s scanner (scanner/lexer) interpreting the closing
1260 curly brace as the end of the action block.
1261
1262 * Repaired a flaw in terminal/terminal1.cc causing a segfault when using
1263 bisonc++ compiled with g++ 4.2.1
1264
1265 bisonc++ (2.1.0)
1266
1267 * In the skeleton bisonc++.cc $insert 4 staticdata is followed by $insert
1268 namespace-open. Since `staticdata' defined s_out if %debug is requested,
1269 it could be defined outside of the user's namespace (defined by
1270 %namespace). Repaired by defining s_out after (if applicable) opening the
1271 namespace (in Generator::namespaceOpen(), called from $insert
1272 namespace-open).
1273
1274 bisonc++ (2.0.0)
1275
1276 * Rebuilt Bisonc++'s parser and scanner, creating Bisonc++'s parser from the
1277 file parser/grammar. Initially Bisonc++ 1.6.1 was used to create the
1278 Parser class header and parsing function. Once Bisonc++ 2.0.0 was
1279 available, the grammar file was split into various subfiles (see below)
1280 and Bisonc++ 2.0.0 was used to implement its own parsing function. As a
1281 direct consequence of using a grammar rather than a hand-implemented
1282 parsing function quite a few members of the Parser and Scanner class were
1283 reimplemented, new members were added and some could be removed. Parts of
1284 other classes (Rules, Block) were significantly modified as well.
1285
1286 * Minor hand-modifications may be necessary with previously designed code
1287 using identifiers that are defined by the parser class generated by
1288 Bisonc++. The following names have changed:
1289
1290 -------------------------------------------------------------------------
1291 old name change into new name: Protected
1292 -------------------------------------------------------------------------
1293 Parser::LTYPE Parser::LTYPE__
1294 Parser::STYPE Parser::STYPE__
1295 Parser::Tokens Parser::Tokens__
1296
1297 Parser::DEFAULT_RECOVERY_MODE Parser::DEFAULT_RECOVERY_MODE__ Yes
1298 Parser::ErrorRecovery Parser::ErrorRecovery__ Yes
1299 Parser::Return Parser::Return__ Yes
1300 Parser::UNEXPECTED_TOKEN Parser::UNEXPECTED_TOKEN__ Yes
1301 Parser::d_debug Parser::d_debug__ Yes
1302 Parser::d_loc Parser::d_loc__ Yes
1303 Parser::d_lsp Parser::d_lsp__ Yes
1304 Parser::d_nErrors Parser::d_nErrors__ Yes
1305 Parser::d_nextToken Parser::d_nextToken__ Yes
1306 Parser::d_state Parser::d_state__ Yes
1307 Parser::d_token Parser::d_token__ Yes
1308 Parser::d_val Parser::d_val__ Yes
1309 Parser::d_vsp Parser::d_vsp__ Yes
1310 -------------------------------------------------------------------------
1311
1312 The symbols marked `Protected' can only occur in classes that were derived
1313 from the parser class generated by Bisonc++. Unless you derived a class
1314 from the parser class generated by Bisonc++ these changes should not
1315 affect your code. The first three symbols may have been used in other
1316 classes as well (for an example now using LTYPE__ and STYPE__ see the file
1317 documentation/regression/location/scanner/scanner.h).
1318
1319 Note that the only required modification in all these cases is to append
1320 two underscores to the previously defined identifiers.
1321
1322 * The grammar file may now be split into several grammar specification
1323 files. The directive %include may be specified to include grammar files
1324 into other grammar files (much like the way C/C++'s #include preprocessor
1325 directive operates). Starting point of the grammar recognized by Bisonc++
1326 2.0.0 is the file parser/grammar, using subfiles in the parser/spec
1327 directory. The file README.parser documents the grammar specification
1328 files in some detail.
1329
1330 * Previous releases implicitly enforced several restrictions on the
1331 identifiers used for the grammar's tokens. These restrictions resulted
1332 from name collisions with names defined in the parser's base class. While
1333 the restrictions cannot be completely resolved without giving up backward
1334 compatibility, they can be relieved greatly. Tokens cannot be ABORT,
1335 ACCEPT, ERROR, clearin, debug, error and setDebug. Furthermore, tokens
1336 should not end in two underscores (__).
1337
1338 * Implemented various new options and directives:
1339
1340 - the option --analyze-only, merely analyzing the provided grammar, not
1341 writing any source or header files.
1342
1343 - the option --error-verbose as well as the directive %error-verbose
1344 dumping the state-stack when a syntactic error is reported.
1345
1346 - the option --include-only, catenating all grammar files in their order
1347 of processing to the standard output stream (and terminating).
1348
1349 - the option --max-inclusion-depth, defining the maximum number of nested
1350 grammar files (default: 10).
1351
1352 - the option --required-tokens (also available as the directive
1353 %required-tokens). Error recovery is now configurable in the sense that
1354 a configurable number of tokens must have been successfully processed
1355 before new error messages can be generated (see
1356 documentation/manual/error/intro.yo)
1357
1358 - the option --scanner-debug writing the contents and locations (in
1359 scanner/lexer) of matched regular expresions as well as the names/values
1360 of returned tokens to the standard error stream.
1361
1362 - the option --skeleton-directory. This option overrides the default
1363 location of the director containing the skeleton files. In turn it is
1364 overridden by the options specifying specific skeleton files (e.g.,
1365 --baseclass-skeleton).
1366
1367 - the option --thread-safe. If specified, Bisonc++ will generate code that
1368 is thread-safe. I.e., no static data will be modified by the parse()
1369 function. As a consequence, all static data in the file containing the
1370 parse() function are defined as const. Manpage and manual adapted
1371 accordingly.
1372
1373 * As a convenience, filenames in the grammar files may optionally be
1374 surrounded by double quotes ("...") or pointed brackets <...>. Delimiting
1375 pointed brackets are only kept with the %scanner and %baseclass-preinclude
1376 directives, in all other cases they are replaced by double quotes and a
1377 warning is displayed.
1378
1379 * Token Handling in the generated parsing member function was improved: the
1380 share/bisonc++.cc skeleton now defines pushToken__() and popToken__() as
1381 the standard interface to the tiny two-element token stack. The member
1382 nextToken() was redesigned.
1383
1384 * Documentation was extended and updated. The Bisonc++ manual now contains an
1385 extensive description of the grammar-analysis process as implemented in
1386 Bisonc++ (see documentation/manual/algorith.yo). All new options and
1387 directives, as well as the token-name requirements are covered by the
1388 man-page and by the manual.
1389
1390 * Various other repairs and cosmetic changes:
1391 - The --construction option as implemented in Bisonc++ 1.6.1 showed the
1392 FIRST set where the FOLLOW set was labeled. Repaired: now the FOLLOW set
1393 is actually displayed.
1394 - The --show-filenames option now shows `(not requested)' as default for
1395 d_verboseName instead of `-' if no --verbose was requested.
1396 - The --construction option no longer displays the `LA expanded' value
1397 from the state's descriptions since it's always 0
1398 - The --class-name option was not actually mentioned in the set of
1399 recognized long options: repaired.
1400 - The %type directive now allows you to specify semantic type associations
1401 of terminal tokens as well.
1402 - The %token, %left, %right and %nonassoc directives now all use the same
1403 syntax (as they always should have). These directives all define
1404 terminal tokens
1405 - Added `rebuild' command to the `build' script to recreate the parser
1406
1407 bisonc++ (1.6.1)
1408
1409 * Changed the error recovery procedure preventing stack underflows with
1410 unrecoverable input errors.
1411
1412 * Added protected parser base class member checkEOF(), terminating the
1413 parse() member's activities (man-page adapted accordingly).
1414
1415 * Changed small support member functions in the share/bisonc++.cc skeleton
1416 file into inline members, some were moved to share/bisonc++base.h
1417
1418 * The skeleton files now use `\@' as baseclass-flag rather than `@'. The
1419 baseclass-flag is now defined as a static data member in Generator. This
1420 change prevents the `@' in e-mail addresses from being changed into the
1421 parser's class name.
1422
1423 * Removed the class Support since it is now covered by Bobcat's (1.15.0)
1424 default implementation of FBB::TableSupport
1425
1426 bisonc++ (1.6.0)
1427
1428 * NOTE: THE PROTOTYPE OF THE PARSER'S lookup() FUNCTION CHANGED. IT IS NOW:
1429 int lookup(bool recovery);
1430 OLD parser.h HEADER FILES CAN BE REUSED AFTER ADDING THE PARAMETER
1431 bool recovery
1432
1433 * Segfaults were caused by some grammars due to an erroneous index in
1434 (formerly state/setitems.cc) state/adddependents.cc, where idx,
1435 representing an index in d_itemVector was used to index an element in
1436 d_nextVector (for which the index variable `nextIdx' should have been
1437 used. Repaired.
1438
1439 * For some unknown reason, priority and association rules were not
1440 implemented in earlier versions of bisonc++. Consequently priority and
1441 association values of rules were left at their default values. This was
1442 repaired by defining the function Rules::updatePrecedences(), which
1443 defines priorities of productions as either their values assigned by a
1444 %prec specification or as the priority of their first terminal token.
1445
1446 * The accepting State no longer has default reductions. It doesn't need them
1447 since EOF__ in those states terminates the parser. Accepting States
1448 now have search sentinels, allowing the parser to do proper error
1449 recovery.
1450
1451 * The implementation of the shift/reduce algorithm and error handling in
1452 share/bisonc++.cc was modified, now using bitflags indicating
1453 state-requirements (e.g., requiring a token, having a default reduction,
1454 having an `error' continuation, etc.). Also, the functions nextToken() and
1455 lookup() were reimplemented.
1456
1457 * The share/bisonc++.cc parser function skeleton's initial comment was
1458 improved.
1459
1460 * The function state/state1.cc contained the superfluous intialization
1461 d_itemVector(0). The line has been removed.
1462
1463 * The class `Rules' lacked facilities to detect properly whether a grammar
1464 file without rules was specified. Solved by defining a Rules constructor
1465 and an additional member indicating whether there weree any rules at all.
1466
1467 * In grammar files, rules must now be terminated by a semicolon. Previous
1468 versions did not explicitly check this. Also, improperly formed
1469 character-tokens are now recognized as errors.
1470
1471 * In correspondence with bison, the default verbose grammar output file is
1472 now called <grammar filename>.output rather than <parsing function base
1473 name>.output
1474
1475 * The description of the State information shown when --construction is
1476 specified was clarified.
1477
1478 * The debug output generated by parse.cc was improved.
1479
1480 * The setDebug() member is now a public member. Manual page and
1481 documentation changed accordingly.
1482
1483 * The description of the setItems() algorithm in state/setItems was
1484 improved.
1485
1486 * The `build' script was given an additional command (installprog) to
1487 install just the program and the skeletons.
1488
1489 * Added several missing headers fixing gcc/g++ 4.3 problems
1490
1491 -- Frank B. Brokken <[email protected]> Mon, 09 Apr 2007 14:54:46 +0200
1492
1493 bisonc++ (1.5.3)
1494
1495 * Using Bobcat's FnWrap* classes instead of Bobcat's Wrap* classes
1496
1497 * The INSTALL.im file has received a (by default commented out)
1498 #define PROFILE. By activating this define, bisonc++ is compiled with
1499 support for the gprof profiler. This define should not be activated for
1500 production versions of bisonc++
1501
1502 * Not released.
1503
1504 -- Frank B. Brokken <[email protected]> Sat, 17 Feb 2007 20:44:19 +0100
1505
1506 bisonc++ (1.5.2)
1507
1508 * It turns out that the modification in 1.5.1. is not necessary. The
1509 compilation problems mentioned there were the result of a presumed small
1510 g++ compiler bug. A workaround is implemented in Bobcat 1.12.1, preventing
1511 the bug from occurring. In fact, this release has the same contents as
1512 release 1.5.0. Release 1.5.1. can be considered obsolete. It is available
1513 from the svn repository only.
1514
1515 -- Frank B. Brokken <[email protected]> Thu, 30 Nov 2006 17:05:09 +0100
1516
1517 bisonc++ (1.5.1)
1518
1519 * Building the usage support program failed because of implied dependencies
1520 on the bobcat library, resulting from superfluously including bobcat.h in
1521 the documentation/usage/usage.cc program source. This is solved by
1522 setting bisonc++.h's include guard identifier just before inserting
1523 ../../usage.cc in the documentation/usage/usage.cc program source.
1524
1525 bisonc++ (1.5.0)
1526
1527 * The algorithms for lookahead propagation and detection of grammars not
1528 deriving sentences have been redesigned and rewritten. The previously used
1529 algorithm propagating lookaheads suffered from spurious reduce/reduce
1530 conflicts for some grammars (e.g., see the one in
1531 documentation/regression/icmake1). Also, 1.4.0 choked on a (fairly)
1532 complex grammar like the one used by icmake V 7.00. These problems are now
1533 solved, and comparable problems should no longer occur.
1534
1535 The layout and organization of the output has been changed as well. Now
1536 there are basically three forms of verbose output: No verbose output, in
1537 which the file *.output is not written, standard verbose output, in which
1538 an overview of the essential parts of the grammar is written to the file
1539 *.output, and --construction, in which case all lookaheadsets, as well as
1540 the first and follow sets are written to *.output.
1541
1542 Multiple new classes were added, and some previously existing classes were
1543 removed. See the file README.class-setup and the file CLASSES for details.
1544
1545 The man-page and manual were adapted on minor points.
1546
1547 bisonc++ (1.4.0)
1548
1549 * It turned out that in the previous versions, S/R conflicts were also
1550 produced for empty default reductions. Now detectSR() checks whether there
1551 is one empty reduction. If so, no S/R conflicts are possible in that
1552 state. Instead a SHIFT (which is already the default solution of a S/R
1553 conflict) is performed in these situations. So, now for all
1554 tokens for which a known continuation state exist the known continuation
1555 state is selected; for all other tokens the default reduction (reducing to
1556 its associated state) is selected. See state/detectsr.cc for details.
1557
1558 Since the above change also represents a change of algorithm, the
1559 subversion was incremented. I added a sub-subversion to have a separate
1560 level of version-numbers for minor modifications.
1561
1562 The documentation/regression/run script did not properly return to its
1563 initial working directory, and it called a test that no longer
1564 existed. Both errors have been repaired.
1565
1566 Some leftover references to the Academic Free License were replaced by
1567 references to the GPL.
1568
1569 The previously used scripts below make/ are obsolete and were removed from
1570 this and future distributions. Icmake should be used instead, for which a
1571 top-level script (build) and support scripts in the ./icmake/ directory
1572 are available. Icmake is available on a great many architectures. See the
1573 file INSTALL (and INSTALL.im, replacing the previously used INSTALL.cf)
1574 for further details.
1575
1576 All plain `unsigned' variables were changed to `size_t'
1577
1578 bisonc++ (1.03-1) unstable; urgency=low
1579
1580 * License changed to the GNU GENERAL PUBLIC LICENSE. See the file
1581 `copyright'.
1582
1583 According to the manual page, the debug-output generated by parsers
1584 created using the --debug option should be user-controllable through the
1585 `setDebug()' member. These feature is now actually implemented.
1586
1587 The usage info now correctly shows the -V flag as a synonym for the
1588 --verbose option.
1589
1590 From now on this file will contain the `upstream' changes. The Debian
1591 related changes are in changelog.Debian.gz
1592
1593 -- Frank B. Brokken <[email protected]> Wed, 19 Jul 2006 13:12:39 +0200
1594
1595 bisonc++ (1.02) unstable; urgency=low
1596
1597 * Following suggestions made by George Danchev, this version was compiled by
1598 the unstable's g++ compiler (version >= 4.1), which unveiled several flaws
1599 in the library's class header files. These flaws were removed (i.e.,
1600 repaired).
1601
1602 In order to facilitate compiler selection, the compiler to use is defined
1603 in the INSTALL.cf file.
1604
1605 The debian control-files (i.e., all files under the debian subdirectory)
1606 were removed from the source distribution, which is now also named in
1607 accordance with the Debian policy. A diff.gz file was added.
1608
1609 -- Frank B. Brokken <[email protected]> Thu, 6 Jul 2006 12:41:43 +0200
1610
1611 bisonc++ (1.01) unstable; urgency=low
1612
1613 * Synchronized the version back to numbers-only, adapted the debian
1614 standards and the required bobcat library in the debian/control file.
1615 No implementation changes as compared to the previous version, but I felt
1616 the need to join various sub-sub-versions back to just one standard
1617 version.
1618
1619 -- Frank B. Brokken <[email protected]> Mon, 26 Jun 2006 12:11:15 +0200
1620
1621 bisonc++ (1.00a) unstable; urgency=low
1622
1623 * Debian's Linda and lintian errors, warnings and notes processed. No
1624 messages are generated by linda and lintian in this version.
1625
1626 -- Frank B. Brokken <[email protected]> Sun, 28 May 2006 14:26:03 +0200
1627
1628 bisonc++ (1.00) unstable; urgency=low
1629
1630 * Bisonc++ Version 1.00 has changed markedly as compared to its predecessor,
1631 bisonc++ 0.98.510.
1632
1633 The main reason for upgrading to 1.00 following a year of testing the 0.98
1634 series is that the grammar analysis and lookahead propagation algorithms
1635 as used in bisonc++ 0.98.510 were either too cumbersome and contained some
1636 unfortunate errors.
1637
1638 The errors were discovered during my 2005-2006 C++ class, where some
1639 students produced grammars which were simple, but were incorrectly
1640 analyzed by bisonc++ 0.98. It turned out that the lookahead (LA)
1641 propagation contained several flaws. Furthermore, a plain and simple bug
1642 assigned the last-used priority to terminal tokens appearing literally in
1643 the grammar (i.e., without explicitly defining them in a %token or
1644 comparable directive). A simple, but potentially very confusing bug.
1645
1646 At the cosmetic level, the information produced with the --construction
1647 option was modified, aiming at better legibility of the construction
1648 process.
1649
1650 The `examples' directory was reduced in size, moving most examples to a
1651 new directory `regression', which now contains a script `run' that can be
1652 used to try each of the examples below the `regression' directory. Some of
1653 the examples call `bison', so in order to run those examples `bison' must
1654 be installed as well. It usually is.
1655
1656 A minor backward IN-compatibility results from a change in prototype of
1657 some private parser member functions. This should only affect exising
1658 Parser.h header files. Simply replacing the `support functions for
1659 parse()' section shown at the end of the header file by the following
1660 lines should make your header file up-to-date again. Note that bisonc++
1661 does not by itself rewrite Parser.h to prevent undoing any modifications
1662 you may have implemented in the parser-class header file:
1663
1664 // support functions for parse():
1665 void executeAction(int ruleNr);
1666 void errorRecovery();
1667 int lookup();
1668 void nextToken();
1669
1670 Please note that this version depends on bobcat 1.7.1 or beyond. If you
1671 compile bobcat yourself, then you may want to know that bobcat's Milter
1672 and Xpointer classes are not used by bisonc++, so they could optionally be
1673 left out of bobcat's compilation.
1674
1675
1676 -- Frank B. Brokken <[email protected]> Sun, 7 May 2006 15:10:05 +0200
1677
1678 bisonc++ (0.98.510) unstable; urgency=low
1679
1680 * When no %union has been declared, no $$ warnings are issued anymore about
1681 non-exisiting types;
1682 When no %union has been declared a $<type>i or $<type>$ warning is issued
1683 about non-exisiting types.
1684
1685 The State table (in the generated parse.cc file) containing `PARSE_ACCEPT'
1686 was created with a `REDUCE' indication for grammars whose start symbol's
1687 production rules were non-repetitive. This was repaired in
1688 state/writestatearray.cc by setting the (positive) non-reduce indication
1689 for states using shifts and/or the accept state.
1690
1691 The logic in writeStateArray() was modifed: a separate ShiftReduce::Status
1692 variable is now used to store the possible actions: SHIFT, REDUCE or
1693 ACCEPT. The tables show `SHIFTS' if a state uses shifts; `ACCEPTS' if a
1694 state contains PARSE_ACCEPT; and `REDUCE' otherwise.
1695
1696 -- Frank B. Brokken <[email protected]> Tue, 21 Mar 2006 20:47:49 +0100
1697
1698 bisonc++ (0.98.500) unstable; urgency=low
1699
1700 * Handling of $<type>i and $<type>$ repaired, added the
1701 %negative-dollar-indices directive.
1702
1703 $<type> specifications were not properly parsed. Instead of $<type>i or
1704 $<type>$ constructions like $i<type> and $$<type> were parsed, which is
1705 contrary to the manual's specification. The function parsing the $-values
1706 is defined in parser/handledollar.cc.
1707
1708 The handling of negative $-indices is improved. Negative $-indices are
1709 used when synthesizing attributes. In that context, $0 is useful, since it
1710 refers to the nonterminal matched before the current rule is starting to
1711 be used, allowing rules like `vardef: typename varlist ' where `varlist'
1712 inherits the type specification defined at `typename'.
1713
1714 In most situations indices are positive. Therefore bisonc++ will warn when
1715 zero or non-positive $-indices are seen. The %negative-dollar-indices
1716 directive may be used to suppress these warnings.
1717
1718 $-indices exceeding the number of elements continue to cause an error.
1719
1720 -- Frank B. Brokken <[email protected]> Sun, 5 Mar 2006 13:59:08 +0100
1721
1722 bisonc++ (0.98.402) unstable; urgency=low
1723
1724 * links against bobcat 1.6.0, using bobcat's new Arg:: interface
1725
1726 -- Frank B. Brokken <[email protected]> Mon, 26 Dec 2005 19:25:42 +0100
1727
1728 bisonc++ (0.98.400) unstable; urgency=low
1729
1730 * state/writestatearray.cc adds {} around individual union values to allow
1731 warningless compilation of the generated parse.cc file by g++-4.0.
1732
1733 bisonc++ is now itself too compiled by g++-4.0.
1734
1735 -- Frank B. Brokken <[email protected]> Fri, 18 Nov 2005 22:46:06 +0100
1736
1737 bisonc++ (0.98.007) unstable; urgency=low
1738
1739 * Added a README.flex file giving some background information about the
1740 provided implementation of the lexical scanner (bisonc++/scanner/yylex.cc)
1741
1742 Modified the compilation scripts: bisconc++/flex/FlexLexer.h is now
1743 included by default. This FlexLexer.h file is expected by
1744 bisonc++/scanner/yylex.cc and by the Scanner class.
1745
1746 Simplified some compilation scripts.
1747
1748 -- Frank B. Brokken <[email protected]> Fri, 9 Sep 2005 11:42:24 +0200
1749
1750 bisonc++ (0.98.006) unstable; urgency=low
1751
1752 * Removed the dependency on `icmake'. No change of functionality
1753 See the instructions in the `INSTALL' file when you want to compile and
1754 install `bisonc++' yourself, rather than using the binary (.deb)
1755 distribution.
1756
1757 -- Frank B. Brokken <[email protected]> Sat, 3 Sep 2005 17:42:29 +0200
1758
1759 bisonc++ (0.98.005) unstable; urgency=low
1760
1761 * Removed the classes Arg, Errno, Msg and Wrap1, using the Bobcat library's
1762 versions of these classes from now on. No feature-changes.
1763
1764 Added minor modifications to the `build' script.
1765
1766 Annoying Error: The function `ItemSets::deriveAction()' did not recognize
1767 the `ACCEPT' action, so some (most ?) grammars could not be properly
1768 recognized. I applied a quick hack: if an action isn't `shift' or
1769 `reduce', it can be `accept', resulting in acceptance of the grammar. This
1770 solves the actual problem, but I'll have to insepct this in a bit more
1771 detail. For now, it should work ok.
1772
1773 -- Frank B. Brokken <[email protected]> Mon, 22 Aug 2005 13:05:28 +0200
1774
1775 bisonc++ (0.98.004) unstable; urgency=low
1776
1777 * When new lookahead set elements are added to existing states,
1778 d_recheckState in itemsets/lookaheads.cc (ItemSets::checkLookaheads()) was
1779 reassigned to the state index whose lookaheadset was enlarged. However, if
1780 that happened for existing state `i' and then, during the same
1781 state-inspection, for state `j' where j > i, then the recheck would start
1782 at `j' rather than `i'. This problem was solved by giving d_recheckState
1783 only a lower value than its current value.
1784
1785 With R/R conflicts involving `ACCEPT' reductions (with, e.g., `S_$: S .'),
1786 ACCEPT is selected as the chosen alternative. See State::setReduce()
1787 (state/setreduce.cc). Since this matches with the `first reduction rule'
1788 principle, it should be ok.
1789
1790 %stype specifications may consist of multiple elements: the remainder of
1791 the line beyond %stype is interpreted as the type definition. The
1792 specification should (therefore) not contain comment or other characters
1793 that are not part of the actual type definition. The man-page is adapted
1794 accordingly. Same holds true for the %ltype directive
1795
1796 Added a check whether the grammar derives a sentence
1797 (itemsets/derivesentence.cc). If not, a fatal error is issued. This
1798 happens at the end of the program's actions, and at this point files
1799 etc. have already been generated. They are kept rather than removed for
1800 further reference. Grammars not deriving sentences should probably not be
1801 used.
1802
1803 The original Bison documentation has been converted to a Bisonc++ user
1804 guide. Furthermore, a html-converted manual page is now available under
1805 /usr/share/doc/bisonc++/man
1806
1807 The `calculator' example used in the man-page is now under
1808 /usr/share/doc/bisonc++/man/calculator
1809
1810 Bisonc++ is distributed under the Academic Free License, see the file
1811 COPYING in /usr/share/doc/bisonc++
1812
1813 -- Frank B. Brokken <[email protected]> Sun, 7 Aug 2005 13:49:07 +0200
1814
1815 bisonc++ (0.98.003) unstable; urgency=low
1816
1817 * Incomplete default State constructor now explicitly defined, prevents
1818 the incidental erroneous rapporting of conflicts for some states.
1819
1820 -- Frank B. Brokken <[email protected]> Thu, 26 May 2005 07:21:20 +0200
1821
1822 bisonc++ (0.98.002) unstable; urgency=low
1823
1824 * The Wrap1 configurable unary predicate template class replaces various
1825 other templates (WrapStatic, Wrap, Pred1Wrap). No further usage or
1826 implementation changes/modifications.
1827
1828 -- Frank B. Brokken <[email protected]> Sun, 22 May 2005 15:27:19 +0200
1829
1830 bisonc++ (0.98.001) unstable; urgency=low
1831
1832 * This is a complete rewrite of the former bisonc++ (0.91) version. The
1833 program bisonc++ is now a C++ program, producing C++ sources, using the
1834 algorithm for creating LALR-1 grammars as outlined by Aho, Sethi and
1835 Ullman's (1986) `Dragon' book. The release number will remain 0.98 for a
1836 while, and 0.98.001 holds the initial package, new style. Also see the
1837 man-page, since some things have been changed (augmented) since the
1838 previous version. No dramatic changes in the grammar specification method:
1839 Bisonc++ still uses bison's way to specify grammars, but some features,
1840 already obsolete in bisonc++ 0.91 were removed.
1841
1842 Also note my e-mail address: the U. of Groningen's official policy now is
1843 to remove department specific information, so it's `@rug.nl' rather than
1844 `@rc.rug.nl', as used before.
1845
1846 -- Frank B. Brokken <[email protected]> Mon, 16 May 2005 13:39:38 +0200
1847
1848 bisonc++ (0.91) unstable; urgency=low
1849
1850 * Added several missing short options (like -B etc) to the getopt() function
1851 call. I forgot to add them to the previous version(s). Internally, all old
1852 C style allocations were changed to C++ style allocations, using operators
1853 new and delete. Where it was immediately obvious that a vector could be
1854 used, I now use vectors. The internally used types `core' `shifts' and
1855 'reductions' (types.h) now use a vector data member rather than an int [1]
1856 member, which is then allocated to its proper (I may hope) size when the
1857 structs are allocated.
1858
1859 -- Frank B. Brokken <[email protected]> Sat, 19 Feb 2005 10:21:58 +0100
1860
1861 bisonc++ (0.90) unstable; urgency=low
1862
1863 * Command-line options now override matching declarations specified in the
1864 grammar specification file.
1865
1866 All %define declarations have been removed. Instead their first arguments
1867 are now used to specify declarations. E.g., %parser-skeleton instead of
1868 %define parser-skeleton.
1869
1870 All declarations use lower-case letters, and use only separating hyphens,
1871 no underscores. E.g., %lsp-needed rather than %define LSP_NEEDED
1872 The declaration %class-name replaces the former %name declaration
1873
1874 All yy and YY name prefixes of symbols defined by bisonc++ have been
1875 removed. The parser-state `yydefault' has been renamed to `defaultstate'.
1876
1877 -- Frank B. Brokken <[email protected]> Sun, 6 Feb 2005 12:50:40 +0100
1878
1879 bisonc++ (0.82) unstable; urgency=low
1880
1881 * Added d_nError as protected data member to the base class. Missed it
1882 during the initial conversion. d_nErrors counts the number of parsing
1883 errors. Replaces yynerrs from bison(++)
1884
1885 -- Frank B. Brokken <[email protected]> Sat, 29 Jan 2005 18:58:24 +0100
1886
1887 bisonc++ (0.81) unstable; urgency=low
1888
1889 * Added the option --show-files to display the names of the files that are
1890 used or generated by bisonc++.
1891
1892 -- Frank B. Brokken <[email protected]> Fri, 28 Jan 2005 14:50:48 +0100
1893
1894 bisonc++ (0.80) unstable; urgency=low
1895
1896 * Completed the initial debian release. No changes in the software.
1897
1898 -- Frank B. Brokken <[email protected]> Fri, 28 Jan 2005 14:30:05 +0100
1899
1900 bisonc++ (0.70-1) unstable; urgency=low
1901
1902 * Initial Release.
1903
1904 -- Frank B. Brokken <[email protected]> Thu, 27 Jan 2005 22:34:50 +0100