d: change the return value of yylex from int to TokenKind
commitf296669c0f23af63716050593865475471054941
authorAdela Vais <adela.vais99@gmail.com>
Sat, 26 Sep 2020 05:12:42 +0000 (26 07:12 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sat, 26 Sep 2020 06:08:25 +0000 (26 08:08 +0200)
tree581c91e73048f252dcdb17afa544facf5a8be8cb
parentde638df10447bde11a2a79c9c3233be1f7c406b6
d: change the return value of yylex from int to TokenKind

* data/skeletons/lalr1.d: Change the return value.
* examples/d/calc/calc.y, examples/d/simple/calc.y: Adjust.
* tests/scanner.at: Adjust.
* tests/calc.at (_AT_DATA_CALC_Y(d)): New, extracted from...
(_AT_DATA_CALC_Y(c)): here.
The two grammars have been sufficiently different to be separated.
Still trying to be them together results in a maintenance burden.  For
the same reason, instead of specifying the results for D and for the
rest, compute the expected results with D from the regular case.
TODO
data/skeletons/lalr1.d
examples/d/calc/calc.y
examples/d/simple/calc.y
tests/calc.at
tests/scanner.at