aboutsummaryrefslogtreecommitdiff
path: root/lpvm.h
diff options
context:
space:
mode:
authorSergio Medeiros <sqmedeiros@gmail.com>2015-03-23 14:13:25 -0300
committerSergio Medeiros <sqmedeiros@gmail.com>2015-03-23 14:13:25 -0300
commit0e93d536ba2d312502737cce2ab0cc21393c4842 (patch)
tree7de1e3ae967c90a43e7086ccef61d1722881b20c /lpvm.h
parenta5a4b257e626847be3be4878c603adb51cbb420f (diff)
downloadlpeglabel-0e93d536ba2d312502737cce2ab0cc21393c4842.tar.gz
lpeglabel-0e93d536ba2d312502737cce2ab0cc21393c4842.tar.bz2
lpeglabel-0e93d536ba2d312502737cce2ab0cc21393c4842.zip
Updating to lpeg 0.12.2
Diffstat (limited to 'lpvm.h')
-rw-r--r--lpvm.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/lpvm.h b/lpvm.h
index bb485af..c996e22 100644
--- a/lpvm.h
+++ b/lpvm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lpvm.h,v 1.2 2013/04/03 20:37:18 roberto Exp $ 2** $Id: lpvm.h,v 1.3 2014/02/21 13:06:41 roberto Exp $
3*/ 3*/
4 4
5#if !defined(lpvm_h) 5#if !defined(lpvm_h)
@@ -34,8 +34,8 @@ typedef enum Opcode {
34 IOpenCapture, /* start a capture */ 34 IOpenCapture, /* start a capture */
35 ICloseCapture, 35 ICloseCapture,
36 ICloseRunTime, 36 ICloseRunTime,
37 IThrow, /* "fails" with a specific label labeled failure */ 37 IThrow, /* "fails" with a specific label labeled failure */
38 ILabChoice /* labeled choice */ 38 ILabChoice /* labeled choice */
39} Opcode; 39} Opcode;
40 40
41 41
@@ -52,14 +52,9 @@ typedef union Instruction {
52} Instruction; 52} Instruction;
53 53
54 54
55int getposition (lua_State *L, int t, int i);
56void printpatt (Instruction *p, int n); 55void printpatt (Instruction *p, int n);
57const char *match (lua_State *L, const char *o, const char *s, const char *e, 56const char *match (lua_State *L, const char *o, const char *s, const char *e,
58 Instruction *op, Capture *capture, int ptop, Labelset *labelf); 57 Instruction *op, Capture *capture, int ptop, Labelset *labelf); /* labeled failure */
59int verify (lua_State *L, Instruction *op, const Instruction *p,
60 Instruction *e, int postable, int rule);
61void checkrule (lua_State *L, Instruction *op, int from, int to,
62 int postable, int rule);
63 58
64 59
65#endif 60#endif