d: create alias Location for YYLocation

* data/skeletons/d.m4: Here.
* doc/bison.texi: Document it.
* examples/d/calc/calc.y: Adjust.
* tests/calc.at: Test it.
This commit is contained in:
Adela Vais
2020-12-18 17:31:57 +02:00
committed by Akim Demaille
parent 6692df8992
commit 8e44b24ba8
4 changed files with 22 additions and 19 deletions

View File

@@ -95,12 +95,12 @@ if (isInputRange!R && is(ElementType!R : dchar))
this(R r) { input = r; }
YYLocation location;
Location location;
// Should be a local in main, shared with %parse-param.
int exit_status = 0;
void yyerror(const YYLocation loc, string s)
void yyerror(const Location loc, string s)
{
exit_status = 1;
stderr.writeln(loc.toString(), ": ", s);