aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include/janet.h
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2021-09-19 13:02:16 -0500
committerCalvin Rose <calsrose@gmail.com>2021-09-19 13:02:16 -0500
commitcccbdc164c532393d5af91c656d1a564b97eaa7c (patch)
tree010eb76884e86c85c91bf305776af5e1edd56785 /src/include/janet.h
parentFix typo in changelog. (diff)
Add (number combinator to peg).
This allows using Janet's number parser without creating intermediate strings.
Diffstat (limited to 'src/include/janet.h')
-rw-r--r--src/include/janet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index 9c741b0f..a718efae 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -2040,7 +2040,8 @@ typedef enum {
RULE_READINT, /* [(signedness << 4) | (endianess << 5) | bytewidth, tag] */
RULE_LINE, /* [tag] */
RULE_COLUMN, /* [tag] */
- RULE_UNREF /* [rule, tag] */
+ RULE_UNREF, /* [rule, tag] */
+ RULE_CAPTURE_NUM /* [rule, tag] */
} JanetPegOpcod;
typedef struct {