Hi Sean,
It seems everything lpeg.Cf can do can be done with lpeg.Cmt.
Under what circumstances would using lpeg.Cmt INSTEAD of lpeg.Cf be considered a severe design failure ?
I tried using lpeg.Cf recursively and its quite convoluted.
For parsing thing like this:
[[[]]]
Its quite a bit easier with Cmt since I can create an empty table ( state ) at the start of the loop. with Cf you are not sure if you at the start,middle or end of the loop.
I had a look at the moon-script code base ( written using LPEG ) and there seems no usage of lpeg.Cf.
What I am trying to find is the minimum number of functions that is needed for LPEG.
Up until now I haven't found a function that cannot be used uniquely in a given situation, so I am quite curious to be proven wrong.
best wishes,
Joy