Permalink
Browse files

moved declaration of sycklex to separate header, regenerated grammar …

…(for real, this time)
  • Loading branch information...
1 parent 648d322 commit 0ed438c6703647964c08596512008a46bb941910 @indeyets committed Mar 31, 2008
Showing with 965 additions and 1,199 deletions.
  1. +1 −1 lib/Makefile.am
  2. +1 −0 lib/gram.y
  3. +0 −2 lib/syck.h
  4. +3 −0 lib/sycklex.h
  5. +960 −1,196 lib/token.c
View
2 lib/Makefile.am
@@ -5,7 +5,7 @@ SUFFIXES = .re
CFLAGS = -fPIC
.re.c:
- $(REC) $< > $@.new && mv $@.new $@
+ $(REC) -b $< > $@.new && mv $@.new $@
lib_LIBRARIES = libsyck.a
include_HEADERS = syck.h syck_st.h
View
1 lib/gram.y
@@ -20,6 +20,7 @@
#endif
#include "syck.h"
+#include "sycklex.h"
void apply_seq_in_map( SyckParser *parser, SyckNode *n );
View
2 lib/syck.h
@@ -469,10 +469,8 @@ long syck_seq_count( SyckNode * );
/*
* Lexer prototypes
*/
-#include "gram.h"
void syckerror( const char * );
int syckparse( void * );
-int sycklex( YYSTYPE *sycklval, SyckParser *parser );
#if defined(__cplusplus)
} /* extern "C" { */
View
3 lib/sycklex.h
@@ -0,0 +1,3 @@
+#include "gram.h"
+
+int sycklex( YYSTYPE *sycklval, SyckParser *parser );
View
2,156 lib/token.c
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.12.3 on Wed Oct 24 23:16:24 2007 */
+/* Generated by re2c 0.13.1 on Mon Mar 31 23:50:06 2008 */
#line 1 "token.re"
/*
* token.re
@@ -312,47 +312,87 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
{
YYCTYPE yych;
unsigned int yyaccept = 0;
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 48, 64, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 208, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ };
if((YYLIMIT - YYCURSOR) < 5) YYFILL(5);
yych = *YYCURSOR;
- switch(yych) {
- case 0x00: goto yy7;
- case 0x09:
- case ' ': goto yy12;
- case 0x0A: goto yy9;
- case 0x0D: goto yy11;
- case '#': goto yy5;
- case '-': goto yy2;
- case '.': goto yy4;
- default: goto yy14;
+ if(yych <= 0x1F) {
+ if(yych <= 0x09) {
+ if(yych <= 0x00) goto yy7;
+ if(yych <= 0x08) goto yy14;
+ goto yy12;
+ } else {
+ if(yych <= 0x0A) goto yy9;
+ if(yych == 0x0D) goto yy11;
+ goto yy14;
+ }
+ } else {
+ if(yych <= '#') {
+ if(yych <= ' ') goto yy12;
+ if(yych <= '"') goto yy14;
+ goto yy5;
+ } else {
+ if(yych <= ',') goto yy14;
+ if(yych <= '-') goto yy2;
+ if(yych <= '.') goto yy4;
+ goto yy14;
+ }
}
yy2:
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case '-': goto yy30;
- default: goto yy3;
- }
+ if(yych == '-') goto yy30;
yy3:
#line 379 "token.re"
{ YYPOS(0);
goto Document;
}
-#line 342 "<stdout>"
+#line 384 "<stdout>"
yy4:
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case '.': goto yy23;
- default: goto yy3;
- }
+ if(yych == '.') goto yy23;
+ goto yy3;
yy5:
++YYCURSOR;
#line 361 "token.re"
{ eat_comments( parser );
goto Header;
}
-#line 356 "<stdout>"
+#line 396 "<stdout>"
yy7:
++YYCURSOR;
#line 365 "token.re"
@@ -361,7 +401,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
YYPOS(0);
return 0;
}
-#line 365 "<stdout>"
+#line 405 "<stdout>"
yy9:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
@@ -371,13 +411,11 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
{ GOBBLE_UP_YAML_INDENT( doc_level, YYTOKEN );
goto Header;
}
-#line 375 "<stdout>"
+#line 415 "<stdout>"
yy11:
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy17;
- default: goto yy3;
- }
+ if(yych == 0x0A) goto yy17;
+ goto yy3;
yy12:
++YYCURSOR;
yych = *YYCURSOR;
@@ -387,7 +425,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
{ doc_level = YYCURSOR - YYLINEPTR;
goto Header;
}
-#line 391 "<stdout>"
+#line 429 "<stdout>"
yy14:
yych = *++YYCURSOR;
goto yy3;
@@ -396,63 +434,56 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy16:
- switch(yych) {
- case 0x09:
- case ' ': goto yy15;
- default: goto yy13;
+ if(yybm[0+yych] & 16) {
+ goto yy15;
}
+ goto yy13;
yy17:
yyaccept = 1;
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy18:
- switch(yych) {
- case 0x09: goto yy17;
- case 0x0A:
- case ' ': goto yy19;
- case 0x0D: goto yy21;
- default: goto yy10;
+ if(yybm[0+yych] & 32) {
+ goto yy17;
+ }
+ if(yych <= 0x0C) {
+ if(yych != 0x0A) goto yy10;
+ } else {
+ if(yych <= 0x0D) goto yy21;
+ if(yych != ' ') goto yy10;
}
yy19:
yyaccept = 1;
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A:
- case ' ': goto yy19;
- case 0x0D: goto yy21;
- default: goto yy10;
+ if(yybm[0+yych] & 64) {
+ goto yy19;
}
+ if(yych != 0x0D) goto yy10;
yy21:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy19;
- default: goto yy22;
- }
+ if(yych == 0x0A) goto yy19;
yy22:
YYCURSOR = YYMARKER;
- switch(yyaccept) {
- case 0: goto yy3;
- case 1: goto yy10;
+ if(yyaccept <= 0) {
+ goto yy3;
+ } else {
+ goto yy10;
}
yy23:
yych = *++YYCURSOR;
- switch(yych) {
- case '.': goto yy24;
- default: goto yy22;
- }
-yy24:
+ if(yych != '.') goto yy22;
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy25;
- case 0x0D: goto yy29;
- case ' ': goto yy27;
- default: goto yy22;
+ if(yybm[0+yych] & 128) {
+ goto yy27;
}
+ if(yych == 0x0A) goto yy25;
+ if(yych == 0x0D) goto yy29;
+ goto yy22;
yy25:
++YYCURSOR;
yy26:
@@ -470,34 +501,29 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
}
return 0;
}
-#line 474 "<stdout>"
+#line 505 "<stdout>"
yy27:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case ' ': goto yy27;
- default: goto yy26;
+ if(yybm[0+yych] & 128) {
+ goto yy27;
}
+ goto yy26;
yy29:
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy25;
- default: goto yy22;
- }
+ if(yych == 0x0A) goto yy25;
+ goto yy22;
yy30:
yych = *++YYCURSOR;
- switch(yych) {
- case '-': goto yy31;
- default: goto yy22;
- }
-yy31:
+ if(yych != '-') goto yy22;
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy32;
- case 0x0D: goto yy36;
- case ' ': goto yy34;
- default: goto yy22;
+ if(yych <= 0x0C) {
+ if(yych != 0x0A) goto yy22;
+ } else {
+ if(yych <= 0x0D) goto yy36;
+ if(yych == ' ') goto yy34;
+ goto yy22;
}
yy32:
++YYCURSOR;
@@ -516,21 +542,17 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
return 0;
}
}
-#line 520 "<stdout>"
+#line 546 "<stdout>"
yy34:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case ' ': goto yy34;
- default: goto yy33;
- }
+ if(yych == ' ') goto yy34;
+ goto yy33;
yy36:
++YYCURSOR;
- switch((yych = *YYCURSOR)) {
- case 0x0A: goto yy32;
- default: goto yy22;
- }
+ if((yych = *YYCURSOR) == 0x0A) goto yy32;
+ goto yy22;
}
#line 383 "token.re"
@@ -546,37 +568,100 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
YYTOKEN = YYCURSOR;
-#line 550 "<stdout>"
+#line 572 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 68, 128, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 148, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 8, 0, 40, 0, 0,
+ 40, 40, 40, 40, 40, 40, 40, 40,
+ 40, 40, 0, 0, 0, 0, 0, 0,
+ 0, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 0, 0, 0, 0, 32,
+ 0, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 32, 32, 32, 32, 32,
+ 32, 32, 32, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ };
if((YYLIMIT - YYCURSOR) < 3) YYFILL(3);
yych = *YYCURSOR;
- switch(yych) {
- case 0x00: goto yy64;
- case 0x09:
- case ' ': goto yy62;
- case 0x0A: goto yy39;
- case 0x0D: goto yy41;
- case '!': goto yy53;
- case '"': goto yy57;
- case '#': goto yy60;
- case '&': goto yy51;
- case '\'': goto yy55;
- case '*': goto yy52;
- case ',':
- case ':': goto yy49;
- case '-':
- case '?': goto yy50;
- case '>':
- case '|': goto yy59;
- case '[': goto yy43;
- case ']':
- case '}': goto yy47;
- case '{': goto yy45;
- default: goto yy66;
- }
-yy39:
+ if(yych <= '*') {
+ if(yych <= ' ') {
+ if(yych <= 0x0A) {
+ if(yych <= 0x00) goto yy64;
+ if(yych <= 0x08) goto yy66;
+ if(yych <= 0x09) goto yy62;
+ } else {
+ if(yych == 0x0D) goto yy41;
+ if(yych <= 0x1F) goto yy66;
+ goto yy62;
+ }
+ } else {
+ if(yych <= '%') {
+ if(yych <= '!') goto yy53;
+ if(yych <= '"') goto yy57;
+ if(yych <= '#') goto yy60;
+ goto yy66;
+ } else {
+ if(yych <= '&') goto yy51;
+ if(yych <= '\'') goto yy55;
+ if(yych <= ')') goto yy66;
+ goto yy52;
+ }
+ }
+ } else {
+ if(yych <= '?') {
+ if(yych <= '9') {
+ if(yych <= '+') goto yy66;
+ if(yych <= ',') goto yy49;
+ if(yych <= '-') goto yy50;
+ goto yy66;
+ } else {
+ if(yych <= ':') goto yy49;
+ if(yych <= '=') goto yy66;
+ if(yych <= '>') goto yy59;
+ goto yy50;
+ }
+ } else {
+ if(yych <= ']') {
+ if(yych == '[') goto yy43;
+ if(yych <= '\\') goto yy66;
+ goto yy47;
+ } else {
+ if(yych <= '{') {
+ if(yych <= 'z') goto yy66;
+ goto yy45;
+ } else {
+ if(yych <= '|') goto yy59;
+ if(yych <= '}') goto yy47;
+ goto yy66;
+ }
+ }
+ }
+ }
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
goto yy94;
@@ -609,19 +694,16 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
}
return YAML_INDENT;
}
-#line 613 "<stdout>"
+#line 698 "<stdout>"
yy41:
++YYCURSOR;
- switch((yych = *YYCURSOR)) {
- case 0x0A: goto yy93;
- default: goto yy42;
- }
+ if((yych = *YYCURSOR) == 0x0A) goto yy93;
yy42:
#line 505 "token.re"
{ ENSURE_YAML_IOPEN(lvl, doc_level, 1);
goto Plain;
}
-#line 625 "<stdout>"
+#line 707 "<stdout>"
yy43:
++YYCURSOR;
#line 425 "token.re"
@@ -630,7 +712,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
ADD_LEVEL(lvl->spaces + 1, syck_lvl_iseq);
return YYTOKEN[0];
}
-#line 634 "<stdout>"
+#line 716 "<stdout>"
yy45:
++YYCURSOR;
#line 431 "token.re"
@@ -639,231 +721,128 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
ADD_LEVEL(lvl->spaces + 1, syck_lvl_imap);
return YYTOKEN[0];
}
-#line 643 "<stdout>"
+#line 725 "<stdout>"
yy47:
++YYCURSOR;
#line 437 "token.re"
{ POP_LEVEL();
return YYTOKEN[0];
}
-#line 650 "<stdout>"
+#line 732 "<stdout>"
yy49:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case 0x0A: goto yy88;
- case 0x0D: goto yy92;
- case ' ': goto yy90;
- default: goto yy42;
+ if(yych <= 0x0C) {
+ if(yych == 0x0A) goto yy88;
+ goto yy42;
+ } else {
+ if(yych <= 0x0D) goto yy92;
+ if(yych == ' ') goto yy90;
+ goto yy42;
}
yy50:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case 0x0A: goto yy83;
- case 0x0D: goto yy87;
- case ' ': goto yy85;
- default: goto yy42;
+ if(yych <= 0x0C) {
+ if(yych == 0x0A) goto yy83;
+ goto yy42;
+ } else {
+ if(yych <= 0x0D) goto yy87;
+ if(yych == ' ') goto yy85;
+ goto yy42;
}
yy51:
yych = *++YYCURSOR;
- switch(yych) {
- case '-':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy80;
- default: goto yy42;
+ if(yych <= '@') {
+ if(yych <= '-') {
+ if(yych <= ',') goto yy42;
+ goto yy80;
+ } else {
+ if(yych <= '/') goto yy42;
+ if(yych <= '9') goto yy80;
+ goto yy42;
+ }
+ } else {
+ if(yych <= '_') {
+ if(yych <= 'Z') goto yy80;
+ if(yych <= '^') goto yy42;
+ goto yy80;
+ } else {
+ if(yych <= '`') goto yy42;
+ if(yych <= 'z') goto yy80;
+ goto yy42;
+ }
}
yy52:
yych = *++YYCURSOR;
- switch(yych) {
- case '-':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy77;
- default: goto yy42;
+ if(yybm[0+yych] & 32) {
+ goto yy77;
}
+ goto yy42;
yy53:
++YYCURSOR;
#line 479 "token.re"
{ goto TransferMethod; }
-#line 811 "<stdout>"
+#line 787 "<stdout>"
yy55:
++YYCURSOR;
#line 481 "token.re"
{ ENSURE_YAML_IOPEN(lvl, doc_level, 1);
goto SingleQuote; }
-#line 817 "<stdout>"
+#line 793 "<stdout>"
yy57:
++YYCURSOR;
#line 484 "token.re"
{ ENSURE_YAML_IOPEN(lvl, doc_level, 1);
goto DoubleQuote; }
-#line 823 "<stdout>"
+#line 799 "<stdout>"
yy59:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case 0x0A: goto yy72;
- case 0x0D: goto yy76;
- case ' ': goto yy74;
- case '+':
- case '-':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9': goto yy69;
- default: goto yy42;
+ if(yybm[0+yych] & 16) {
+ goto yy74;
+ }
+ if(yych <= '*') {
+ if(yych <= 0x0A) {
+ if(yych <= 0x09) goto yy42;
+ goto yy72;
+ } else {
+ if(yych == 0x0D) goto yy76;
+ goto yy42;
+ }
+ } else {
+ if(yych <= '-') {
+ if(yych == ',') goto yy42;
+ goto yy69;
+ } else {
+ if(yych <= '/') goto yy42;
+ if(yych <= '9') goto yy69;
+ goto yy42;
+ }
}
yy60:
++YYCURSOR;
#line 494 "token.re"
{ eat_comments( parser );
goto Document;
}
-#line 851 "<stdout>"
+#line 830 "<stdout>"
yy62:
++YYCURSOR;
yych = *YYCURSOR;
goto yy68;
yy63:
#line 498 "token.re"
{ goto Document; }
-#line 859 "<stdout>"
+#line 838 "<stdout>"
yy64:
++YYCURSOR;
#line 500 "token.re"
{ ENSURE_YAML_IEND(lvl, -1);
YYPOS(0);
return 0;
}
-#line 867 "<stdout>"
+#line 846 "<stdout>"
yy66:
yych = *++YYCURSOR;
goto yy42;
@@ -872,38 +851,37 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy68:
- switch(yych) {
- case 0x09:
- case ' ': goto yy67;
- default: goto yy63;
+ if(yybm[0+yych] & 4) {
+ goto yy67;
}
+ goto yy63;
yy69:
++YYCURSOR;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy72;
- case 0x0D: goto yy76;
- case ' ': goto yy74;
- case '+':
- case '-':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9': goto yy69;
- default: goto yy71;
+ if(yybm[0+yych] & 16) {
+ goto yy74;
+ }
+ if(yych <= '*') {
+ if(yych <= 0x0A) {
+ if(yych >= 0x0A) goto yy72;
+ } else {
+ if(yych == 0x0D) goto yy76;
+ }
+ } else {
+ if(yych <= '-') {
+ if(yych != ',') goto yy69;
+ } else {
+ if(yych <= '/') goto yy71;
+ if(yych <= '9') goto yy69;
+ }
}
yy71:
YYCURSOR = YYMARKER;
- switch(yyaccept) {
- case 0: goto yy40;
- case 1: goto yy42;
+ if(yyaccept <= 0) {
+ goto yy40;
+ } else {
+ goto yy42;
}
yy72:
++YYCURSOR;
@@ -915,169 +893,51 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
}
goto ScalarBlock;
}
-#line 919 "<stdout>"
+#line 897 "<stdout>"
yy74:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case ' ': goto yy74;
- default: goto yy73;
+ if(yybm[0+yych] & 16) {
+ goto yy74;
}
+ goto yy73;
yy76:
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy72;
- default: goto yy71;
- }
+ if(yych == 0x0A) goto yy72;
+ goto yy71;
yy77:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case '-':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy77;
- default: goto yy79;
- }
-yy79:
+ if(yybm[0+yych] & 32) {
+ goto yy77;
+ }
#line 474 "token.re"
{ ENSURE_YAML_IOPEN(lvl, doc_level, 1);
sycklval->name = syck_strndup( YYTOKEN + 1, YYCURSOR - YYTOKEN - 1 );
return YAML_ALIAS;
}
-#line 1011 "<stdout>"
+#line 922 "<stdout>"
yy80:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case '-':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy80;
- default: goto yy82;
+ if(yych <= '@') {
+ if(yych <= '-') {
+ if(yych >= '-') goto yy80;
+ } else {
+ if(yych <= '/') goto yy82;
+ if(yych <= '9') goto yy80;
+ }
+ } else {
+ if(yych <= '_') {
+ if(yych <= 'Z') goto yy80;
+ if(yych >= '_') goto yy80;
+ } else {
+ if(yych <= '`') goto yy82;
+ if(yych <= 'z') goto yy80;
+ }
}
yy82:
#line 463 "token.re"
@@ -1091,7 +951,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
syck_hdlr_remove_anchor(parser, sycklval->name);
return YAML_ANCHOR;
}
-#line 1095 "<stdout>"
+#line 955 "<stdout>"
yy83:
++YYCURSOR;
yy84:
@@ -1109,21 +969,17 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
}
return YYTOKEN[0];
}
-#line 1113 "<stdout>"
+#line 973 "<stdout>"
yy85:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case ' ': goto yy85;
- default: goto yy84;
- }
+ if(yych == ' ') goto yy85;
+ goto yy84;
yy87:
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy83;
- default: goto yy71;
- }
+ if(yych == 0x0A) goto yy83;
+ goto yy71;
yy88:
++YYCURSOR;
yy89:
@@ -1135,53 +991,47 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
YYPOS(1);
return YYTOKEN[0];
}
-#line 1139 "<stdout>"
+#line 995 "<stdout>"
yy90:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case ' ': goto yy90;
- default: goto yy89;
- }
+ if(yych == ' ') goto yy90;
+ goto yy89;
yy92:
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy88;
- default: goto yy71;
- }
+ if(yych == 0x0A) goto yy88;
+ goto yy71;
yy93:
yyaccept = 0;
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy94:
- switch(yych) {
- case 0x09: goto yy93;
- case 0x0A:
- case ' ': goto yy95;
- case 0x0D: goto yy97;
- default: goto yy40;
+ if(yybm[0+yych] & 64) {
+ goto yy93;
+ }
+ if(yych <= 0x0C) {
+ if(yych != 0x0A) goto yy40;
+ } else {
+ if(yych <= 0x0D) goto yy97;
+ if(yych != ' ') goto yy40;
}
yy95:
yyaccept = 0;
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A:
- case ' ': goto yy95;
- case 0x0D: goto yy97;
- default: goto yy40;
+ if(yybm[0+yych] & 128) {
+ goto yy95;
}
+ if(yych != 0x0D) goto yy40;
yy97:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy95;
- default: goto yy71;
- }
+ if(yych == 0x0A) goto yy95;
+ goto yy71;
}
#line 509 "token.re"
@@ -1192,116 +1042,76 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
YYTOKTMP = YYCURSOR;
-#line 1196 "<stdout>"
+#line 1046 "<stdout>"
{
YYCTYPE yych;
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 32, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 32, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 192, 192,
+ 192, 192, 192, 192, 192, 192, 192, 192,
+ 192, 192, 128, 192, 192, 192, 192, 192,
+ 192, 192, 192, 192, 192, 192, 192, 192,
+ 192, 192, 192, 192, 192, 192, 192, 192,
+ 192, 192, 192, 192, 192, 192, 192, 192,
+ 192, 192, 192, 192, 192, 192, 192, 192,
+ 0, 192, 192, 192, 192, 192, 192, 192,
+ 192, 192, 192, 192, 192, 192, 192, 192,
+ 192, 192, 192, 192, 192, 192, 192, 192,
+ 192, 192, 192, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ };
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
- switch(yych) {
- case 0x00: goto yy100;
- case 0x09:
- case ' ': goto yy103;
- case '%': goto yy101;
- default: goto yy105;
+ if(yych <= 0x1F) {
+ if(yych <= 0x00) goto yy100;
+ if(yych == 0x09) goto yy103;
+ goto yy105;
+ } else {
+ if(yych <= ' ') goto yy103;
+ if(yych == '%') goto yy101;
+ goto yy105;
}
yy100:
YYCURSOR = YYMARKER;
goto yy102;
yy101:
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case '.':
- case '/':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case ':':
- case ';':
- case '<':
- case '=':
- case '>':
- case '?':
- case '@':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '[':
- case '\\':
- case ']':
- case '^':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy108;
- default: goto yy102;
- }
+ if(yych <= '-') goto yy102;
+ if(yych == '`') goto yy102;
+ if(yych <= 'z') goto yy108;
yy102:
#line 522 "token.re"
{ YYCURSOR = YYTOKTMP;
return YAML_DOCSEP;
}
-#line 1297 "<stdout>"
+#line 1107 "<stdout>"
yy103:
++YYCURSOR;
yych = *YYCURSOR;
goto yy107;
yy104:
#line 520 "token.re"
{ goto Directive; }
-#line 1305 "<stdout>"
+#line 1115 "<stdout>"
yy105:
yych = *++YYCURSOR;
goto yy102;
@@ -1310,262 +1120,33 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy107:
- switch(yych) {
- case 0x09:
- case ' ': goto yy106;
- default: goto yy104;
+ if(yybm[0+yych] & 32) {
+ goto yy106;
}
+ goto yy104;
yy108:
++YYCURSOR;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
- switch(yych) {
- case '.':
- case '/':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case ';':
- case '<':
- case '=':
- case '>':
- case '?':
- case '@':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '[':
- case '\\':
- case ']':
- case '^':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy108;
- case ':': goto yy110;
- default: goto yy100;
- }
-yy110:
+ if(yybm[0+yych] & 64) {
+ goto yy108;
+ }
+ if(yych != ':') goto yy100;
yych = *++YYCURSOR;
- switch(yych) {
- case '.':
- case '/':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case ':':
- case ';':
- case '<':
- case '=':
- case '>':
- case '?':
- case '@':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '[':
- case '\\':
- case ']':
- case '^':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy111;
- default: goto yy100;
+ if(yybm[0+yych] & 128) {
+ goto yy111;
}
+ goto yy100;
yy111:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case '.':
- case '/':
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case ':':
- case ';':
- case '<':
- case '=':
- case '>':
- case '?':
- case '@':
- case 'A':
- case 'B':
- case 'C':
- case 'D':
- case 'E':
- case 'F':
- case 'G':
- case 'H':
- case 'I':
- case 'J':
- case 'K':
- case 'L':
- case 'M':
- case 'N':
- case 'O':
- case 'P':
- case 'Q':
- case 'R':
- case 'S':
- case 'T':
- case 'U':
- case 'V':
- case 'W':
- case 'X':
- case 'Y':
- case 'Z':
- case '[':
- case '\\':
- case ']':
- case '^':
- case '_':
- case 'a':
- case 'b':
- case 'c':
- case 'd':
- case 'e':
- case 'f':
- case 'g':
- case 'h':
- case 'i':
- case 'j':
- case 'k':
- case 'l':
- case 'm':
- case 'n':
- case 'o':
- case 'p':
- case 'q':
- case 'r':
- case 's':
- case 't':
- case 'u':
- case 'v':
- case 'w':
- case 'x':
- case 'y':
- case 'z': goto yy111;
- default: goto yy113;
- }
-yy113:
+ if(yybm[0+yych] & 128) {
+ goto yy111;
+ }
#line 518 "token.re"
{ goto Directive; }
-#line 1569 "<stdout>"
+#line 1150 "<stdout>"
}
#line 525 "token.re"
@@ -1590,25 +1171,71 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
Plain3:
-#line 1594 "<stdout>"
+#line 1175 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 64, 128, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 160, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ };
if((YYLIMIT - YYCURSOR) < 3) YYFILL(3);
yych = *YYCURSOR;
- switch(yych) {
- case 0x00: goto yy128;
- case 0x09: goto yy130;
- case 0x0A: goto yy116;
- case 0x0D: goto yy118;
- case ' ': goto yy126;
- case ',': goto yy121;
- case ':': goto yy120;
- case ']': goto yy124;
- case '}': goto yy122;
- default: goto yy131;
- }
-yy116:
+ if(yych <= ' ') {
+ if(yych <= 0x0A) {
+ if(yych <= 0x00) goto yy128;
+ if(yych <= 0x08) goto yy131;
+ if(yych <= 0x09) goto yy130;
+ } else {
+ if(yych == 0x0D) goto yy118;
+ if(yych <= 0x1F) goto yy131;
+ goto yy126;
+ }
+ } else {
+ if(yych <= ':') {
+ if(yych == ',') goto yy121;
+ if(yych <= '9') goto yy131;
+ goto yy120;
+ } else {
+ if(yych <= ']') {
+ if(yych <= '\\') goto yy131;
+ goto yy124;
+ } else {
+ if(yych == '}') goto yy122;
+ goto yy131;
+ }
+ }
+ }
yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
goto yy146;
@@ -1649,37 +1276,36 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
goto Plain2;
}
-#line 1653 "<stdout>"
+#line 1280 "<stdout>"
yy118:
++YYCURSOR;
- switch((yych = *YYCURSOR)) {
- case 0x0A: goto yy145;
- default: goto yy119;
- }
+ if((yych = *YYCURSOR) == 0x0A) goto yy145;
yy119:
#line 635 "token.re"
{ QUOTECATS(qstr, qcapa, qidx, YYTOKEN, YYCURSOR - YYTOKEN);
goto Plain2;
}
-#line 1665 "<stdout>"
+#line 1289 "<stdout>"
yy120:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case 0x0A: goto yy140;
- case 0x0D: goto yy144;
- case ' ': goto yy142;
- default: goto yy119;
+ if(yych <= 0x0C) {
+ if(yych == 0x0A) goto yy140;
+ goto yy119;
+ } else {
+ if(yych <= 0x0D) goto yy144;
+ if(yych == ' ') goto yy142;
+ goto yy119;
}
yy121:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case 0x0A: goto yy134;
- case 0x0D: goto yy138;
- case ' ': goto yy136;
- default: goto yy119;
+ if(yybm[0+yych] & 32) {
+ goto yy136;
}
+ if(yych == 0x0A) goto yy134;
+ if(yych == 0x0D) goto yy138;
+ goto yy119;
yy122:
++YYCURSOR;
#line 597 "token.re"
@@ -1693,7 +1319,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
}
RETURN_IMPLICIT();
}
-#line 1697 "<stdout>"
+#line 1323 "<stdout>"
yy124:
++YYCURSOR;
#line 608 "token.re"
@@ -1707,13 +1333,10 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
}
RETURN_IMPLICIT();
}
-#line 1711 "<stdout>"
+#line 1337 "<stdout>"
yy126:
++YYCURSOR;
- switch((yych = *YYCURSOR)) {
- case '#': goto yy132;
- default: goto yy127;
- }
+ if((yych = *YYCURSOR) == '#') goto yy132;
yy127:
#line 625 "token.re"
{ if ( qidx == 0 )
@@ -1725,12 +1348,12 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
goto Plain3;
}
}
-#line 1729 "<stdout>"
+#line 1352 "<stdout>"
yy128:
++YYCURSOR;
#line 623 "token.re"
{ RETURN_IMPLICIT(); }
-#line 1734 "<stdout>"
+#line 1357 "<stdout>"
yy130:
yych = *++YYCURSOR;
goto yy127;
@@ -1743,7 +1366,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
{ eat_comments( parser );
RETURN_IMPLICIT();
}
-#line 1747 "<stdout>"
+#line 1370 "<stdout>"
yy134:
++YYCURSOR;
yy135:
@@ -1758,79 +1381,71 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
}
RETURN_IMPLICIT();
}
-#line 1762 "<stdout>"
+#line 1385 "<stdout>"
yy136:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case ' ': goto yy136;
- default: goto yy135;
+ if(yybm[0+yych] & 32) {
+ goto yy136;
}
+ goto yy135;
yy138:
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy134;
- default: goto yy139;
- }
+ if(yych == 0x0A) goto yy134;
yy139:
YYCURSOR = YYMARKER;
- switch(yyaccept) {
- case 0: goto yy117;
- case 1: goto yy119;
+ if(yyaccept <= 0) {
+ goto yy117;
+ } else {
+ goto yy119;
}
yy140:
++YYCURSOR;
yy141:
#line 584 "token.re"
{ RETURN_IMPLICIT(); }
-#line 1788 "<stdout>"
+#line 1409 "<stdout>"
yy142:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case ' ': goto yy142;
- default: goto yy141;
- }
+ if(yych == ' ') goto yy142;
+ goto yy141;
yy144:
yych = *++YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy140;
- default: goto yy139;
- }
+ if(yych == 0x0A) goto yy140;
+ goto yy139;
yy145:
yyaccept = 0;
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy146:
- switch(yych) {
- case 0x09: goto yy145;
- case 0x0A:
- case ' ': goto yy147;
- case 0x0D: goto yy149;
- default: goto yy117;
+ if(yybm[0+yych] & 64) {
+ goto yy145;
+ }
+ if(yych <= 0x0C) {
+ if(yych != 0x0A) goto yy117;
+ } else {
+ if(yych <= 0x0D) goto yy149;
+ if(yych != ' ') goto yy117;
}
yy147:
yyaccept = 0;
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A:
- case ' ': goto yy147;
- case 0x0D: goto yy149;
- default: goto yy117;
+ if(yybm[0+yych] & 128) {
+ goto yy147;
}
+ if(yych != 0x0D) goto yy117;
yy149:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy147;
- default: goto yy139;
- }
+ if(yych == 0x0A) goto yy147;
+ goto yy139;
}
#line 639 "token.re"
@@ -1846,19 +1461,53 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
YYTOKEN = YYCURSOR;
-#line 1850 "<stdout>"
+#line 1465 "<stdout>"
{
YYCTYPE yych;
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 64, 128, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 128, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ };
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
- switch(yych) {
- case 0x00: goto yy158;
- case 0x0A: goto yy152;
- case 0x0D: goto yy154;
- case '\'': goto yy156;
- default: goto yy159;
- }
-yy152:
+ if(yych <= 0x0C) {
+ if(yych <= 0x00) goto yy158;
+ if(yych != 0x0A) goto yy159;
+ } else {
+ if(yych <= 0x0D) goto yy154;
+ if(yych == '\'') goto yy156;
+ goto yy159;
+ }
yych = *(YYMARKER = ++YYCURSOR);
goto yy163;
yy153:
@@ -1902,25 +1551,19 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
goto SingleQuote2;
}
-#line 1906 "<stdout>"
+#line 1555 "<stdout>"
yy154:
++YYCURSOR;
- switch((yych = *YYCURSOR)) {
- case 0x0A: goto yy162;
- default: goto yy155;
- }
+ if((yych = *YYCURSOR) == 0x0A) goto yy162;
yy155:
#line 720 "token.re"
{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
goto SingleQuote2;
}
-#line 1918 "<stdout>"
+#line 1564 "<stdout>"
yy156:
++YYCURSOR;
- switch((yych = *YYCURSOR)) {
- case '\'': goto yy160;
- default: goto yy157;
- }
+ if((yych = *YYCURSOR) == '\'') goto yy160;
yy157:
#line 697 "token.re"
{ SyckLevel *lvl;
@@ -1945,7 +1588,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
sycklval->nodeData = n;
return YAML_PLAIN;
}
-#line 1949 "<stdout>"
+#line 1592 "<stdout>"
yy158:
yych = *++YYCURSOR;
goto yy157;
@@ -1958,38 +1601,34 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
{ QUOTECAT(qstr, qcapa, qidx, '\'');
goto SingleQuote2;
}
-#line 1962 "<stdout>"
+#line 1605 "<stdout>"
yy162:
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy163:
- switch(yych) {
- case 0x09: goto yy162;
- case 0x0A:
- case ' ': goto yy164;
- case 0x0D: goto yy166;
- default: goto yy153;
+ if(yybm[0+yych] & 64) {
+ goto yy162;
+ }
+ if(yych <= 0x0C) {
+ if(yych != 0x0A) goto yy153;
+ } else {
+ if(yych <= 0x0D) goto yy166;
+ if(yych != ' ') goto yy153;
}
yy164:
YYMARKER = ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A:
- case ' ': goto yy164;
- case 0x0D: goto yy166;
- default: goto yy153;
+ if(yybm[0+yych] & 128) {
+ goto yy164;
}
+ if(yych != 0x0D) goto yy153;
yy166:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- switch(yych) {
- case 0x0A: goto yy164;
- default: goto yy167;
- }
-yy167:
+ if(yych == 0x0A) goto yy164;
YYCURSOR = YYMARKER;
goto yy153;
}
@@ -2011,19 +1650,63 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
-#line 2015 "<stdout>"
+#line 1654 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept = 0;
+ static const unsigned char yybm[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 64, 128, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 160, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ };
if((YYLIMIT - YYCURSOR) < 4) YYFILL(4);
yych = *YYCURSOR;
- switch(yych) {
- case 0x00: goto yy175;
- case 0x0A: goto yy170;
- case 0x0D: goto yy172;
- case '"': goto yy177;
- case '\\': goto yy174;
- default: goto yy178;
+ if(yych <= 0x0D) {
+ if(yych <= 0x09) {
+ if(yych <= 0x00) goto yy175;
+ goto yy178;
+ } else {
+ if(yych <= 0x0A) goto yy170;
+ if(yych <= 0x0C) goto yy178;
+ goto yy172;
+ }
+ } else {
+ if(yych <= '"') {
+ if(yych <= '!') goto yy178;
+ goto yy177;
+ } else {
+ if(yych == '\\') goto yy174;
+ goto yy178;
+ }
}
yy170:
yyaccept = 0;
@@ -2074,39 +1757,63 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
keep_nl = 1;
goto DoubleQuote2;
}
-#line 2078 "<stdout>"
+#line 1761 "<stdout>"
yy172:
++YYCURSOR;
- switch((yych = *YYCURSOR)) {
- case 0x0A: goto yy191;
- default: goto yy173;
- }
+ if((yych = *YYCURSOR) == 0x0A) goto yy191;
yy173:
#line 828 "token.re"
{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
goto DoubleQuote2;
}
-#line 2090 "<stdout>"
+#line 1770 "<stdout>"
yy174:
yyaccept = 1;
yych = *(YYMARKER = ++YYCURSOR);
- switch(yych) {
- case 0x0A: goto yy182;
- case 0x0D: goto yy184;
- case ' ': goto yy179;
- case '"':
- case '0':
- case '\\':
- case 'a':
- case 'b':
- case 'e':
- case 'f':
- case 'n':
- case 'r':
- case 't':
- case 'v': goto yy186;
- case 'x': goto yy185;
- default: goto yy173;
+ if(yybm[0+yych] & 32) {
+ goto yy179;
+ }
+ if(yych <= 'b') {
+ if(yych <= '"') {
+ if(yych <= 0x0C) {
+ if(yych == 0x0A) goto yy182;
+ goto yy173;
+ } else {
+ if(yych <= 0x0D) goto yy184;
+ if(yych <= '!') goto yy173;
+ goto yy186;
+ }
+ } else {
+ if(yych <= '[') {
+ if(yych == '0') goto yy186;
+ goto yy173;
+ } else {
+ if(yych <= '\\') goto yy186;
+ if(yych <= '`') goto yy173;
+ goto yy186;
+ }
+ }
+ } else {
+ if(yych <= 'r') {
+ if(yych <= 'm') {
+ if(yych <= 'd') goto yy173;
+ if(yych <= 'f') goto yy186;
+ goto yy173;
+ } else {
+ if(yych <= 'n') goto yy186;
+ if(yych <= 'q') goto yy173;
+ goto yy186;
+ }
+ }