mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
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:
committed by
Akim Demaille
parent
6692df8992
commit
8e44b24ba8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user