diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-12-26 11:24:57 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-12-26 14:26:23 +0100 |
commit | 94701b4e5e18b742191c1dd59c384cb011d3ea6e (patch) | |
tree | b16f369e0b2673b2d9bb38f8b96495093888fd7a /examples | |
parent | 3e6826aff14cb20c448791e97c5a66e3495397ff (diff) | |
download | bison-94701b4e5e18b742191c1dd59c384cb011d3ea6e.tar.gz |
style: rename semanticVal as value
* data/skeletons/README-D.txt: Remove, now useless and obsolete.
* data/skeletons/glr2.cc, examples/d/calc/calc.y,
* tests/calc.at, tests/d.at, tests/scanner.at (semanticVal): Replace
with...
(value): this.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/d/calc/calc.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/d/calc/calc.y b/examples/d/calc/calc.y index 2c79c158..572b10b6 100644 --- a/examples/d/calc/calc.y +++ b/examples/d/calc/calc.y @@ -106,7 +106,7 @@ if (isInputRange!R && is(ElementType!R : dchar)) stderr.writeln(loc.toString(), ": ", s); } - Value semanticVal_; + Value value_; Symbol yylex() { @@ -129,7 +129,7 @@ if (isInputRange!R && is(ElementType!R : dchar)) int lenChars = 0; auto copy = input; import std.conv : parse; - semanticVal_.ival = input.parse!int; + value_.ival = input.parse!int; while (!input.empty && copy.front != input.front) { lenChars++; @@ -137,7 +137,7 @@ if (isInputRange!R && is(ElementType!R : dchar)) } location.begin = location.end; location.end.column += lenChars; - return Symbol(TokenKind.NUM, semanticVal_.ival, location); + return Symbol(TokenKind.NUM, value_.ival, location); } // Individual characters |