diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-06-06 17:50:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-06-06 17:50:31 -0300 |
commit | e31e13f59ef1a4df1698b15ff1fe0198553cc3c2 (patch) | |
tree | c16ea4f41bdd378734afd4e475d7d7973a5a2b5d /lpprint.c | |
parent | 44fab2a44d06a956c3121ceba2b39ca7b00dc428 (diff) | |
download | lpeg-e31e13f59ef1a4df1698b15ff1fe0198553cc3c2.tar.gz lpeg-e31e13f59ef1a4df1698b15ff1fe0198553cc3c2.tar.bz2 lpeg-e31e13f59ef1a4df1698b15ff1fe0198553cc3c2.zip |
First implementation for the accumulator capture
Diffstat (limited to 'lpprint.c')
-rw-r--r-- | lpprint.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -60,7 +60,7 @@ static void printTcharset (TTree *tree) { | |||
60 | static const char *capkind (int kind) { | 60 | static const char *capkind (int kind) { |
61 | const char *const modes[] = { | 61 | const char *const modes[] = { |
62 | "close", "position", "constant", "backref", | 62 | "close", "position", "constant", "backref", |
63 | "argument", "simple", "table", "function", | 63 | "argument", "simple", "table", "function", "replace", |
64 | "query", "string", "num", "substitution", "fold", | 64 | "query", "string", "num", "substitution", "fold", |
65 | "runtime", "group"}; | 65 | "runtime", "group"}; |
66 | return modes[kind]; | 66 | return modes[kind]; |
@@ -147,7 +147,6 @@ void printpatt (Instruction *p) { | |||
147 | } | 147 | } |
148 | 148 | ||
149 | 149 | ||
150 | #if defined(LPEG_DEBUG) | ||
151 | static void printcap (Capture *cap) { | 150 | static void printcap (Capture *cap) { |
152 | printf("%s (idx: %d - size: %d) -> %p\n", | 151 | printf("%s (idx: %d - size: %d) -> %p\n", |
153 | capkind(cap->kind), cap->idx, cap->siz, cap->s); | 152 | capkind(cap->kind), cap->idx, cap->siz, cap->s); |
@@ -160,7 +159,6 @@ void printcaplist (Capture *cap, Capture *limit) { | |||
160 | printcap(cap); | 159 | printcap(cap); |
161 | printf("=======\n"); | 160 | printf("=======\n"); |
162 | } | 161 | } |
163 | #endif | ||
164 | 162 | ||
165 | /* }====================================================== */ | 163 | /* }====================================================== */ |
166 | 164 | ||