diff options
author | Adela Vais <adela.vais99@gmail.com> | 2020-12-18 17:31:57 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-12-21 07:13:17 +0100 |
commit | 8e44b24ba844df5c94b0eca380a694a07a9484d2 (patch) | |
tree | c083ce6ebf603d9d7bbdc07774953c8c0cf6ce24 /examples | |
parent | 6692df8992efe7e1ade449b2585caef8313be6ea (diff) | |
download | bison-8e44b24ba844df5c94b0eca380a694a07a9484d2.tar.gz |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/d/calc/calc.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/d/calc/calc.y b/examples/d/calc/calc.y index c9a7df96..4353237b 100644 --- a/examples/d/calc/calc.y +++ b/examples/d/calc/calc.y @@ -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); |