mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33: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_;
|
||||
}
|
||||
|
||||
@@ -78,8 +78,8 @@ class CalcLexer(R) : Lexer
|
||||
|
||||
void yyerror(string s) {}
|
||||
|
||||
YYSemanticType semanticVal_;
|
||||
YYSemanticType semanticVal() @property { return semanticVal_; }
|
||||
Value semanticVal_;
|
||||
Value semanticVal() @property { return semanticVal_; }
|
||||
|
||||
Symbol yylex()
|
||||
{
|
||||
|
||||
@@ -115,8 +115,8 @@ class YYLexer(R) : Lexer
|
||||
|
||||
]AT_YYERROR_DEFINE[
|
||||
|
||||
YYSemanticType semanticVal_;
|
||||
public final @property YYSemanticType semanticVal ()
|
||||
Value semanticVal_;
|
||||
public final @property Value semanticVal ()
|
||||
{
|
||||
return semanticVal_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user