diff options
Diffstat (limited to 'lpcap.h')
-rw-r--r-- | lpcap.h | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -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 */ |
13 | typedef enum CapKind { | 13 | typedef 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 | ||