dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
534 stars 66 forks source link

Changing the Pegged directories #175

Open PhilippeSigaud opened 8 years ago

PhilippeSigaud commented 8 years ago

After some time without touching Pegged, I had a look at the project directories and I found them a mess.

For example, why should /dev contain a readme.md or TODO/md? No real reason. Readme and such should be in the root dir, I think.

Also, the three directories test, performancetest and tester should be either merged or even dropped.

And we should have a hard look at the dynamic directory, though I probably will not touch it, since the way D manage its modules more or less impose such a hierarchy.

What do you think?

veelo commented 8 years ago

The dev/readme.md explains the dev dir, I see no problem. Maybe it should describe regenerate.d and how to use it.

I have no strong opinion on the directories. I think I have tried grammartester once in a unittest, but I don't use it anymore. The test dir I think can be replaced with a test rule in the Makefile:

rdmd -unittest -main pegged/grammar.d

should suffice.