[SAoC2022] Replace libdparse with dmd-as-a-library in D-Scanner week 4

Lucian Danescu lucidanescu28 at yahoo.com
Tue Oct 18 14:36:27 UTC 2022


Hello!

This week I added initial implementations for the following 
visitor:
[imports_sortedness](https://github.com/Dlang-UPB/D-scanner/pull/28)

Also created a [pull 
request](https://github.com/dlang/dmd/pull/14578) 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`?


More information about the Digitalmars-d mailing list