doc: c++: complete the location documentation.

* data/location.cc (position::initialize, location::initialize):
Also accept line and column, with default values.
* doc/bison.texinfo (C++ position, C++ location): New nodes.
Describe more thoroughly these classes.
Fix several Texinfo misuses.
This commit is contained in:
Akim Demaille
2012-03-31 09:46:12 +02:00
parent 2091988f7e
commit 936c88d178
3 changed files with 95 additions and 27 deletions

6
NEWS
View File

@@ -34,6 +34,12 @@ Bison News
C and C++ parsers use nullptr instead of 0 when __cplusplus is
201103L or higher.
** C++ locations:
The position and location constructors (and their initialize
methods) accept new arguments for line and column. Several issues
in the documentation were fixed.
* Changes in version 2.5 (2011-05-14):
** Grammar symbol names can now contain non-initial dashes: