dlang-community / Pegged

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

opIndex, opDollar and opSlice override on ParseTree #275

Closed Zardoz89 closed 4 years ago

Zardoz89 commented 4 years ago

Override opIndex, opDoller and OpSlice like is suggested in #258

So p.children[x].children[y] could be p[x][y] or p.children[1..$-1] could be p[1..$-1] , etc.

veelo commented 4 years ago

Thanks! Would you mind documenting this in the wiki? No hurry, this becomes only relevant when we tag a new release I guess.

Zardoz89 commented 4 years ago

I would take a look, but my english it's horrible. Any idea when the next version would be ready ? (also I noticed that the unit tests are actually failing on the master branch)

veelo commented 4 years ago

If you want, I can brush off language mistakes. Otherwise I can take over the documentation. I could tag a new release anytime, were it not for #272. I hope that situation can be improved.