On Wednesday, 17 June 2020 at 14:32:09 UTC, Adam D. Ruppe wrote: > On Wednesday, 17 June 2020 at 14:24:01 UTC, Stefan Koch wrote: >> Parser in dmd does even inherit from Lexer. > > why would a parser ever inherit from a lexer? So you can write nextToken() instead of lexer.nextToken()