1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-12 03:28:07 +00:00

Add integer parsing to pegs.

This commit is contained in:
Calvin Rose
2020-09-27 12:18:12 -05:00
parent 0a1d902f46
commit 45feb55483
7 changed files with 122 additions and 7 deletions

View File

@@ -1652,6 +1652,7 @@ typedef enum {
RULE_TO, /* [rule] */
RULE_THRU, /* [rule] */
RULE_LENPREFIX, /* [rule_a, rule_b (repeat rule_b rule_a times)] */
RULE_READINT, /* [(signedness << 4) | (endianess << 5) | bytewidth, tag] */
} JanetPegOpcode;
typedef struct {