Closed bvssvni closed 8 years ago
I haven't yet had a use case where this would help a lot. It could improve structure accuracy, but this usually does not matter. The problem piston-meta solves is to parse text where you else would need to write a parser, and the text is usually structured similar to JSON. With other words, no complex formats.
Currently, there is no way to reuse a rule pattern.
For example, if we have a rule for parsing a struct:
A "generic rule" would allow you to pass rules as arguments and change aspect of a rule.
For example: