mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +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:
committed by
Akim Demaille
parent
b00fa62e95
commit
20d657c1dd
@@ -562,12 +562,12 @@ class CalcLexer(R) : Lexer
|
||||
Value semanticVal_;]AT_LOCATION_IF([[
|
||||
Location location;
|
||||
|
||||
public final @property YYPosition startPos()
|
||||
public final @property Position startPos()
|
||||
{
|
||||
return location.begin;
|
||||
}
|
||||
|
||||
public final @property YYPosition endPos()
|
||||
public final @property Position endPos()
|
||||
{
|
||||
return location.end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user