mirror of
https://github.com/janet-lang/janet
synced 2025-12-12 19:48:07 +00:00
Add lenprefix combinator to pegs.
This lets peg match n repeitions of a pattern, where n is supplied from other parsed input and is not a constant.
This commit is contained in:
@@ -1576,6 +1576,7 @@ typedef enum {
|
||||
RULE_ERROR, /* [rule] */
|
||||
RULE_DROP, /* [rule] */
|
||||
RULE_BACKMATCH, /* [tag] */
|
||||
RULE_LENPREFIX, /* [rule_a, rule_b (repeat rule_b rule_a times)] */
|
||||
} JanetPegOpcode;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user