1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-13 20:18:06 +00:00

add a new (split) PEG special

This works similarly to string/split, but the separator is a PEG.
This commit is contained in:
Ian Henry
2023-12-27 08:26:50 -08:00
parent e8ed961572
commit 61f38fab37
3 changed files with 97 additions and 2 deletions

View File

@@ -2141,7 +2141,8 @@ typedef enum {
RULE_COLUMN, /* [tag] */
RULE_UNREF, /* [rule, tag] */
RULE_CAPTURE_NUM, /* [rule, tag] */
RULE_SUB /* [rule, rule] */
RULE_SUB, /* [rule, rule] */
RULE_SPLIT /* [rule, rule] */
} JanetPegOpcod;
typedef struct {