mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
d: create alias Value for YYSemanticType
* data/skeletons/d.m4: Here. * data/skeletons/lalr1.d, examples/d/calc/calc.y, examples/d/simple/calc.y: Adjust. * tests/calc.at, tests/d.at, tests/scanner.at: Test it.
This commit is contained in:
committed by
Akim Demaille
parent
8e44b24ba8
commit
b00fa62e95
@@ -559,7 +559,7 @@ class CalcLexer(R) : Lexer
|
||||
|
||||
]AT_YYERROR_DEFINE[
|
||||
|
||||
YYSemanticType semanticVal_;]AT_LOCATION_IF([[
|
||||
Value semanticVal_;]AT_LOCATION_IF([[
|
||||
Location location;
|
||||
|
||||
public final @property YYPosition startPos()
|
||||
@@ -572,7 +572,7 @@ class CalcLexer(R) : Lexer
|
||||
return location.end;
|
||||
}
|
||||
]])[
|
||||
public final @property YYSemanticType semanticVal()
|
||||
public final @property Value semanticVal()
|
||||
{
|
||||
return semanticVal_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user