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.
This commit is contained in:
Akim Demaille
2020-12-26 11:24:57 +01:00
parent 3e6826aff1
commit 94701b4e5e
8 changed files with 24 additions and 87 deletions

View File

@@ -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