d: reduce verbosity for returning the location from yylex()
commitcc04459cfee92905a635c36958d66f0edb25a257
authorAdela Vais <adela.vais99@gmail.com>
Thu, 10 Dec 2020 21:27:53 +0000 (10 23:27 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Mon, 21 Dec 2020 05:54:35 +0000 (21 06:54 +0100)
treeafd704a83036b90bbfdd8e8f09f494f8dcf53793
parentee4ec08513c3960bea38c14d143b62c70e81edd8
d: reduce verbosity for returning the location from yylex()

* examples/d/calc/calc.y (start, end): Replace by this...
(location): new member variable in the Lexer class.
Use it.
* tests/calc.at: Use the defined location variable.
examples/d/calc/calc.y
tests/calc.at