diff options
| -rw-r--r-- | lpcode.c | 5 | ||||
| -rw-r--r-- | makefile | 3 | ||||
| -rw-r--r-- | re.html | 3 |
3 files changed, 6 insertions, 5 deletions
| @@ -365,9 +365,8 @@ static int getfirst (TTree *tree, const Charset *follow, Charset *firstset) { | |||
| 365 | if (tocharset(sib1(tree), firstset)) { | 365 | if (tocharset(sib1(tree), firstset)) { |
| 366 | cs_complement(firstset); | 366 | cs_complement(firstset); |
| 367 | return 1; | 367 | return 1; |
| 368 | } | 368 | } /* else */ |
| 369 | /* else go through */ | 369 | } /* FALLTHROUGH */ |
| 370 | } | ||
| 371 | case TBehind: { /* instruction gives no new information */ | 370 | case TBehind: { /* instruction gives no new information */ |
| 372 | /* call 'getfirst' only to check for math-time captures */ | 371 | /* call 'getfirst' only to check for math-time captures */ |
| 373 | int e = getfirst(sib1(tree), follow, firstset); | 372 | int e = getfirst(sib1(tree), follow, firstset); |
| @@ -1,8 +1,9 @@ | |||
| 1 | LIBNAME = lpeg | 1 | LIBNAME = lpeg |
| 2 | LUADIR = ../lua/ | 2 | LUADIR = ../lua/ |
| 3 | 3 | ||
| 4 | COPT = -O2 -DNDEBUG | 4 | # COPT = -O2 -DNDEBUG |
| 5 | # COPT = -g | 5 | # COPT = -g |
| 6 | # COPT = -DLPEG_DEBUG | ||
| 6 | 7 | ||
| 7 | CWARNS = -Wall -Wextra -pedantic \ | 8 | CWARNS = -Wall -Wextra -pedantic \ |
| 8 | -Waggregate-return \ | 9 | -Waggregate-return \ |
| @@ -423,6 +423,7 @@ primary <- '(' exp ')' / string / class / defined | |||
| 423 | / '=' name | 423 | / '=' name |
| 424 | / '{}' | 424 | / '{}' |
| 425 | / '{~' exp '~}' | 425 | / '{~' exp '~}' |
| 426 | / '{|' exp '|}' | ||
| 426 | / '{' exp '}' | 427 | / '{' exp '}' |
| 427 | / '.' | 428 | / '.' |
| 428 | / name S !arrow | 429 | / name S !arrow |
| @@ -436,7 +437,7 @@ item <- defined / range / . | |||
| 436 | range <- . '-' [^]] | 437 | range <- . '-' [^]] |
| 437 | 438 | ||
| 438 | S <- (%s / '--' [^%nl]*)* -- spaces and comments | 439 | S <- (%s / '--' [^%nl]*)* -- spaces and comments |
| 439 | name <- [A-Za-z][A-Za-z0-9_]* | 440 | name <- [A-Za-z_][A-Za-z0-9_]* |
| 440 | arrow <- '<-' | 441 | arrow <- '<-' |
| 441 | num <- [0-9]+ | 442 | num <- [0-9]+ |
| 442 | string <- '"' [^"]* '"' / "'" [^']* "'" | 443 | string <- '"' [^"]* '"' / "'" [^']* "'" |
