aboutsummaryrefslogtreecommitdiff
path: root/lpcode.h
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2016-06-27 15:24:09 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2016-06-27 15:24:09 -0300
commitd9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428 (patch)
tree662f1cfe618eae04d8180b817a67b4b21dff239e /lpcode.h
parent450cb2596448c19e672a30616bbd22d98b8c6588 (diff)
downloadlpeglabel-d9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428.tar.gz
lpeglabel-d9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428.tar.bz2
lpeglabel-d9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428.zip
Updating lpeglabel to lpeg-1.0
Diffstat (limited to 'lpcode.h')
-rw-r--r--lpcode.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lpcode.h b/lpcode.h
index 72d2bb9..896d3c7 100644
--- a/lpcode.h
+++ b/lpcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lpcode.h,v 1.6 2013/11/28 14:56:02 roberto Exp $ 2** $Id: lpcode.h,v 1.7 2015/06/12 18:24:45 roberto Exp $
3*/ 3*/
4 4
5#if !defined(lpcode_h) 5#if !defined(lpcode_h)
@@ -24,7 +24,15 @@ int sizei (const Instruction *i);
24#define PEnullable 0 24#define PEnullable 0
25#define PEnofail 1 25#define PEnofail 1
26 26
27/*
28** nofail(t) implies that 't' cannot fail with any input
29*/
27#define nofail(t) checkaux(t, PEnofail) 30#define nofail(t) checkaux(t, PEnofail)
31
32/*
33** (not nullable(t)) implies 't' cannot match without consuming
34** something
35*/
28#define nullable(t) checkaux(t, PEnullable) 36#define nullable(t) checkaux(t, PEnullable)
29 37
30#define fixedlen(t) fixedlenx(t, 0, 0) 38#define fixedlen(t) fixedlenx(t, 0, 0)