October 18, 2022

Hello!

This week I added initial implementations for the following visitor:
imports_sortedness

Also created a pull request in dmd that
adds an API in ASTBase, for the Expression class, to check if an expression is of
a particular type.

I am also exploring and planning to add an API that can store all the tokens in a file.
Here there are 2 options: 1) I will have to create for my project a custom lexer that
extends the dmd one, and 2) Updating the dmd lexer to have the possibility to store all
the lexed tokens, maybe under version(DMDLIB). What do you think, is that something
worth having in dmd?

October 19, 2022
On 19/10/2022 3:36 AM, Lucian Danescu wrote:
> 1) I will have to create for my project a custom lexer that
> extends the `dmd` one

That wouldn't be a custom lexer, however you don't need to do that.

https://github.com/dlang/dmd/blob/master/compiler/test/dub_package/lexer.d