summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAdela Vais <adela.vais99@gmail.com>2020-11-19 23:03:56 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-11-20 22:09:31 +0100
commite5854bbddd10d6b834622dc1e6b67c91b9c43f48 (patch)
tree1594fdc8374760c92f66da964b44998de5351fa7 /doc
parent10305f3e941591f1f915402f1c1076024129e624 (diff)
downloadbison-e5854bbddd10d6b834622dc1e6b67c91b9c43f48.tar.gz
d: change YYLocation's type from class to struct
This avoids heap allocation and gives minimal costs for the creation and destruction of the YYParser.Symbol struct if the location tracking is active. Suggested by H. S. Teoh. * data/skeletons/lalr1.d: Here. * doc/bison.texi: Document it. * examples/d/calc/calc.y: Adjust. * tests/calc.at: Test it.
Diffstat (limited to 'doc')
-rw-r--r--doc/bison.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/bison.texi b/doc/bison.texi
index 18b5dd2e..959a4039 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -13844,8 +13844,8 @@ can be used to print the semantic values. This however may change
@c - class Location
When the directive @code{%locations} is used, the D parser supports
-location tracking, see @ref{Tracking Locations}. The position
-structure and the location class are provided.
+location tracking, see @ref{Tracking Locations}. The position and
+the location structures are provided.
@deftypeivar {YYLocation} {YYPosition} begin
@deftypeivarx {YYLocation} {YYPosition} end