mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-21 23:18:11 +00:00
d: create alias Position for YYPosition
* data/skeletons/d.m4 (b4_public_types_declare): Here. * data/skeletons/lalr1.d: Adjust. * doc/bison.texi: Document it. * examples/d/calc/calc.y: Use it. * tests/calc.at: Test it.
This commit is contained in:
1 parent
b00fa62e95
commit
20d657c1dd
5 files changed
+16
-15
No files matched your search
@@ -168,12 +168,12 @@ if (isInputRange!R && is(ElementType!R : dchar))
|
||||
}
|
||||
}
|
||||
|
||||
YYPosition startPos() const
|
||||
Position startPos() const
|
||||
{
|
||||
return location.begin;
|
||||
}
|
||||
|
||||
YYPosition endPos() const
|
||||
Position endPos() const
|
||||
{
|
||||
return location.end;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user