diff options
author | Adela Vais <adela.vais99@gmail.com> | 2020-12-10 22:49:28 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-12-21 06:47:57 +0100 |
commit | 13bb2b78b3bb4a9f4af830f073d17f078562d295 (patch) | |
tree | c79380838a215ad7bcffa5c5dcc79e103b9b5aa0 /tests/d.at | |
parent | 848a17fa336ad7399e7c2baf40dd4c7dcbe1971e (diff) | |
download | bison-13bb2b78b3bb4a9f4af830f073d17f078562d295.tar.gz |
d: create alias Symbol for YYParse.Symbol
* data/skeletons/lalr1.d: Here.
* doc/bison.texi: Document it.
* examples/d/calc/calc.y, examples/d/simple/calc.y: Adjust.
* tests/calc.at, tests/d.at, tests/scanner.at: Test it.
Diffstat (limited to 'tests/d.at')
-rw-r--r-- | tests/d.at | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -81,7 +81,7 @@ class CalcLexer(R) : Lexer YYSemanticType semanticVal_; YYSemanticType semanticVal() @property { return semanticVal_; } - YYParser.Symbol yylex() + Symbol yylex() { $2 } @@ -143,16 +143,16 @@ AT_KEYWORDS([d]) AT_CHECK_D_MINIMAL_W_LEXER([ %define api.token.raw true -%union { int ival; }], [return YYParser.Symbol(TokenKind.END);]) +%union { int ival; }], [return Symbol(TokenKind.END);]) AT_CHECK_D_GREP([[ END = 3,]]) AT_CHECK_D_MINIMAL_W_LEXER([ %define api.token.raw false -%union { int ival; }], [return YYParser.Symbol(TokenKind.END);]) +%union { int ival; }], [return Symbol(TokenKind.END);]) AT_CHECK_D_GREP([[ END = 258,]]) AT_CHECK_D_MINIMAL_W_LEXER([ -%union { int ival; }], [return YYParser.Symbol(TokenKind.END);]) +%union { int ival; }], [return Symbol(TokenKind.END);]) AT_CHECK_D_GREP([[ END = 3,]]) AT_CLEANUP |