aboutsummaryrefslogtreecommitdiff
path: root/lpcap.h
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2017-07-06 11:21:56 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2017-07-06 11:21:56 -0300
commit8ee42c29131e1c7de48575d6d8a9b24ea6977cbd (patch)
tree4267e0cf0609a909be1f2eaea17d11b0efc12c98 /lpcap.h
parentaad9b29e755d67d6cb4e4b861111df0d173819ce (diff)
downloadlpeglabel-8ee42c29131e1c7de48575d6d8a9b24ea6977cbd.tar.gz
lpeglabel-8ee42c29131e1c7de48575d6d8a9b24ea6977cbd.tar.bz2
lpeglabel-8ee42c29131e1c7de48575d6d8a9b24ea6977cbd.zip
Updating lpeglabel to the codebase of LPeg 1.0.1
Diffstat (limited to 'lpcap.h')
-rw-r--r--lpcap.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/lpcap.h b/lpcap.h
index d762fdc..6133df2 100644
--- a/lpcap.h
+++ b/lpcap.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lpcap.h,v 1.2 2015/02/27 17:13:17 roberto Exp $ 2** $Id: lpcap.h,v 1.3 2016/09/13 17:45:58 roberto Exp $
3*/ 3*/
4 4
5#if !defined(lpcap_h) 5#if !defined(lpcap_h)
@@ -11,8 +11,21 @@
11 11
12/* kinds of captures */ 12/* kinds of captures */
13typedef enum CapKind { 13typedef enum CapKind {
14 Cclose, Cposition, Cconst, Cbackref, Carg, Csimple, Ctable, Cfunction, 14 Cclose, /* not used in trees */
15 Cquery, Cstring, Cnum, Csubst, Cfold, Cruntime, Cgroup 15 Cposition,
16 Cconst, /* ktable[key] is Lua constant */
17 Cbackref, /* ktable[key] is "name" of group to get capture */
18 Carg, /* 'key' is arg's number */
19 Csimple, /* next node is pattern */
20 Ctable, /* next node is pattern */
21 Cfunction, /* ktable[key] is function; next node is pattern */
22 Cquery, /* ktable[key] is table; next node is pattern */
23 Cstring, /* ktable[key] is string; next node is pattern */
24 Cnum, /* numbered capture; 'key' is number of value to return */
25 Csubst, /* substitution capture; next node is pattern */
26 Cfold, /* ktable[key] is function; next node is pattern */
27 Cruntime, /* not used in trees (is uses another type for tree) */
28 Cgroup /* ktable[key] is group's "name" */
16} CapKind; 29} CapKind;
17 30
18 31