While we already have a parser in libd, we cannot use it here.
This is because libd's parser is meant to validate that the source
is well a formed D program. However, we want to be able to format
even incomplete programs as part of the developper's process.
This parser, on the other hand, is meant to recognize common patterns
in the language, without ensuring that they are indeed correct.
While we already have a parser in libd, we cannot use it here. This is because libd's parser is meant to validate that the source is well a formed D program. However, we want to be able to format even incomplete programs as part of the developper's process.
This parser, on the other hand, is meant to recognize common patterns in the language, without ensuring that they are indeed correct.