dlang-community / Pegged

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

Grammar Examples do not compile #266

Closed FraMecca closed 1 year ago

FraMecca commented 4 years ago

I think that some grammar exaples got out of date.

I suggest to put them into the tests so that for every test run you can check that they still compile and work as examples.

In particular, I am referring to https://github.com/PhilippeSigaud/Pegged/blob/master/pegged/examples/PEG.d

Zardoz89 commented 4 years ago

Actually all grammar examples, except the C Grammar, at least compiles (dub build). The CI servers try to build every example, except the C grammar that need to be fixed. How ever, many examples need to be improved to test better.

baryluk commented 4 years ago

I can confirm. All grammar examples, except the C grammar , compile for me too, using LDC 1.12.0.

veelo commented 1 year ago

The C grammar has been fixed, some grammars are now more thoroughly tested.