2006-06-20 20:30:39 +00:00
|
|
|
/* Generated by re2c 0.10.5 */
|
|
|
|
#line 1 "src/sc_man_scanner.re"
|
|
|
|
#define YYCTYPE char
|
|
|
|
#define YYCURSOR cursor
|
|
|
|
#define YYLIMIT limit
|
|
|
|
#define YYMARKER marker
|
|
|
|
|
|
|
|
// This buffer must be as large as the largest YYFILL call
|
|
|
|
YYCTYPE eofbuf[2];
|
|
|
|
#define YYFILL(n) { if(n == 2) { eofbuf[0] = *cursor; } eofbuf[n-1] = '\n'; cursor = eofbuf; limit = eofbuf + n - 1; sc_End = true; }
|
|
|
|
|
|
|
|
//#define YYDEBUG(s,c) { Printf ("%d: %02x\n", s, c); }
|
|
|
|
#define YYDEBUG(s,c)
|
|
|
|
|
|
|
|
char *cursor = ScriptPtr;
|
|
|
|
char *limit = ScriptEndPtr;
|
|
|
|
|
2006-06-20 22:26:04 +00:00
|
|
|
std1:
|
2006-06-20 20:30:39 +00:00
|
|
|
tok = YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
std2:
|
|
|
|
#line 33 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
|
|
|
|
if (!CMode)
|
|
|
|
{
|
|
|
|
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 27 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
{
|
|
|
|
YYCTYPE yych;
|
|
|
|
|
|
|
|
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
if(yych <= '/') {
|
|
|
|
if(yych <= ' ') {
|
|
|
|
if(yych == 0x0A) goto yy8;
|
|
|
|
goto yy6;
|
|
|
|
} else {
|
|
|
|
if(yych == '"') goto yy10;
|
|
|
|
if(yych <= '.') goto yy14;
|
|
|
|
goto yy3;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '<') {
|
|
|
|
if(yych == ';') goto yy4;
|
|
|
|
goto yy14;
|
|
|
|
} else {
|
|
|
|
if(yych <= '=') goto yy12;
|
|
|
|
if(yych <= 'z') goto yy14;
|
|
|
|
if(yych <= '}') goto yy12;
|
|
|
|
goto yy14;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yy2:
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 47 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 56 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy3:
|
|
|
|
yych = *++YYCURSOR;
|
|
|
|
if(yych == '*') goto yy28;
|
|
|
|
if(yych == '/') goto yy24;
|
|
|
|
goto yy19;
|
|
|
|
yy4:
|
|
|
|
yych = *++YYCURSOR;
|
|
|
|
goto yy25;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 49 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 67 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy6:
|
|
|
|
++YYCURSOR;
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
goto yy23;
|
|
|
|
yy7:
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 40 "src/sc_man_scanner.re"
|
2006-06-20 22:26:04 +00:00
|
|
|
{ goto std1; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 75 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy8:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 41 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto newline; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 80 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy10:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 42 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto string; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 85 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy12:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 44 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 90 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy14:
|
|
|
|
yych = *++YYCURSOR;
|
|
|
|
goto yy17;
|
|
|
|
yy15:
|
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
if(yych <= '/') {
|
|
|
|
if(yych <= '"') {
|
|
|
|
if(yych == '!') goto yy18;
|
|
|
|
goto yy2;
|
|
|
|
} else {
|
|
|
|
if(yych == '*') goto yy2;
|
|
|
|
if(yych <= '.') goto yy18;
|
|
|
|
goto yy2;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '<') {
|
|
|
|
if(yych == ';') goto yy2;
|
|
|
|
goto yy18;
|
|
|
|
} else {
|
|
|
|
if(yych <= '=') goto yy2;
|
|
|
|
if(yych <= 'z') goto yy18;
|
|
|
|
if(yych <= '}') goto yy2;
|
|
|
|
goto yy18;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yy16:
|
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
yy17:
|
|
|
|
if(yych <= ':') {
|
|
|
|
if(yych <= '"') {
|
|
|
|
if(yych == '!') goto yy16;
|
|
|
|
goto yy2;
|
|
|
|
} else {
|
|
|
|
if(yych == '/') goto yy15;
|
|
|
|
goto yy16;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '=') {
|
|
|
|
if(yych == '<') goto yy16;
|
|
|
|
goto yy2;
|
|
|
|
} else {
|
|
|
|
if(yych <= 'z') goto yy16;
|
|
|
|
if(yych <= '}') goto yy2;
|
|
|
|
goto yy16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yy18:
|
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
yy19:
|
|
|
|
if(yych <= '/') {
|
|
|
|
if(yych <= '"') {
|
|
|
|
if(yych == '!') goto yy18;
|
|
|
|
goto yy2;
|
|
|
|
} else {
|
|
|
|
if(yych == '*') goto yy20;
|
|
|
|
if(yych <= '.') goto yy18;
|
|
|
|
goto yy15;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '<') {
|
|
|
|
if(yych == ';') goto yy2;
|
|
|
|
goto yy18;
|
|
|
|
} else {
|
|
|
|
if(yych <= '=') goto yy2;
|
|
|
|
if(yych <= 'z') goto yy18;
|
|
|
|
if(yych <= '}') goto yy2;
|
|
|
|
goto yy18;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yy20:
|
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
if(yych == '*') goto yy20;
|
|
|
|
if(yych == '/') goto yy15;
|
|
|
|
goto yy2;
|
|
|
|
yy22:
|
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
yy23:
|
|
|
|
if(yych == 0x0A) goto yy7;
|
|
|
|
if(yych <= ' ') goto yy22;
|
|
|
|
goto yy7;
|
|
|
|
yy24:
|
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
yy25:
|
|
|
|
if(yych != 0x0A) goto yy24;
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 38 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto newline; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 190 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy28:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 37 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto comment; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 195 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 50 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 203 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
{
|
|
|
|
YYCTYPE yych;
|
|
|
|
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
if(yych <= '9') {
|
|
|
|
if(yych <= '%') {
|
|
|
|
if(yych <= ' ') {
|
|
|
|
if(yych == 0x0A) goto yy36;
|
|
|
|
goto yy34;
|
|
|
|
} else {
|
|
|
|
if(yych == '"') goto yy38;
|
2006-06-20 21:21:52 +00:00
|
|
|
goto yy50;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= ',') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '&') goto yy45;
|
|
|
|
if(yych <= '\'') goto yy51;
|
|
|
|
goto yy50;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
|
|
|
if(yych <= '-') goto yy40;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '.') goto yy44;
|
|
|
|
if(yych >= '0') goto yy42;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '^') {
|
|
|
|
if(yych <= '=') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= ';') goto yy50;
|
|
|
|
if(yych <= '<') goto yy48;
|
|
|
|
goto yy46;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '>') goto yy49;
|
|
|
|
if(yych <= '@') goto yy50;
|
|
|
|
if(yych <= 'Z') goto yy51;
|
|
|
|
goto yy50;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= 'z') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '`') goto yy50;
|
|
|
|
goto yy51;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '|') goto yy47;
|
|
|
|
if(yych <= '~') goto yy50;
|
|
|
|
goto yy51;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yych = *++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '*') goto yy75;
|
|
|
|
if(yych == '/') goto yy73;
|
2006-06-20 20:30:39 +00:00
|
|
|
yy33:
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 69 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 257 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy34:
|
|
|
|
++YYCURSOR;
|
|
|
|
yych = *YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
goto yy72;
|
2006-06-20 20:30:39 +00:00
|
|
|
yy35:
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 58 "src/sc_man_scanner.re"
|
2006-06-20 22:26:04 +00:00
|
|
|
{ goto std1; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 265 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy36:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 59 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto newline; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 270 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy38:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 60 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto string; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 275 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy40:
|
2006-06-20 21:21:52 +00:00
|
|
|
++YYCURSOR;
|
|
|
|
#line 62 "src/sc_man_scanner.re"
|
|
|
|
{ goto negative_check; }
|
|
|
|
#line 280 "src/sc_man_scanner.h"
|
|
|
|
yy42:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
|
|
|
if((yych = *YYCURSOR) <= '@') {
|
|
|
|
if(yych <= '-') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '\'') goto yy53;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '.') goto yy69;
|
|
|
|
if(yych <= '/') goto yy43;
|
|
|
|
if(yych <= '9') goto yy67;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '_') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= 'Z') goto yy53;
|
|
|
|
if(yych >= '_') goto yy53;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '`') goto yy43;
|
|
|
|
if(yych <= 'z') goto yy53;
|
|
|
|
if(yych >= 0x7F) goto yy53;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
yy43:
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 63 "src/sc_man_scanner.re"
|
|
|
|
{ goto normal_token; }
|
|
|
|
#line 304 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy44:
|
|
|
|
yych = *++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '/') goto yy33;
|
|
|
|
if(yych <= '9') goto yy65;
|
2006-06-20 20:30:39 +00:00
|
|
|
goto yy33;
|
|
|
|
yy45:
|
|
|
|
yych = *++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '&') goto yy63;
|
2006-06-20 20:30:39 +00:00
|
|
|
goto yy33;
|
|
|
|
yy46:
|
|
|
|
yych = *++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '=') goto yy61;
|
2006-06-20 20:30:39 +00:00
|
|
|
goto yy33;
|
|
|
|
yy47:
|
|
|
|
yych = *++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '|') goto yy59;
|
2006-06-20 20:30:39 +00:00
|
|
|
goto yy33;
|
|
|
|
yy48:
|
|
|
|
yych = *++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '<') goto yy57;
|
2006-06-20 20:30:39 +00:00
|
|
|
goto yy33;
|
|
|
|
yy49:
|
2006-06-20 21:21:52 +00:00
|
|
|
yych = *++YYCURSOR;
|
|
|
|
if(yych == '>') goto yy55;
|
|
|
|
goto yy33;
|
|
|
|
yy50:
|
|
|
|
yych = *++YYCURSOR;
|
|
|
|
goto yy33;
|
|
|
|
yy51:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
|
|
|
yych = *YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
goto yy54;
|
|
|
|
yy52:
|
|
|
|
#line 70 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 340 "src/sc_man_scanner.h"
|
|
|
|
yy53:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
yy54:
|
2006-06-20 20:30:39 +00:00
|
|
|
if(yych <= 'Z') {
|
|
|
|
if(yych <= '/') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '\'') goto yy53;
|
|
|
|
goto yy52;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '9') goto yy53;
|
|
|
|
if(yych <= '@') goto yy52;
|
|
|
|
goto yy53;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '`') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '_') goto yy53;
|
|
|
|
goto yy52;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= 'z') goto yy53;
|
|
|
|
if(yych <= '~') goto yy52;
|
|
|
|
goto yy53;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
yy55:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 68 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 369 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy57:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 67 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 374 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy59:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 66 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 379 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy61:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 65 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto normal_token; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 384 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
yy63:
|
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 64 "src/sc_man_scanner.re"
|
|
|
|
{ goto normal_token; }
|
|
|
|
#line 389 "src/sc_man_scanner.h"
|
|
|
|
yy65:
|
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
if(yych <= '/') goto yy43;
|
|
|
|
if(yych <= '9') goto yy65;
|
|
|
|
goto yy43;
|
|
|
|
yy67:
|
|
|
|
++YYCURSOR;
|
2006-06-20 20:30:39 +00:00
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
|
|
|
if(yych <= '@') {
|
|
|
|
if(yych <= '-') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == '\'') goto yy53;
|
|
|
|
goto yy43;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '.') goto yy69;
|
|
|
|
if(yych <= '/') goto yy43;
|
|
|
|
if(yych <= '9') goto yy67;
|
|
|
|
goto yy43;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if(yych <= '_') {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= 'Z') goto yy53;
|
|
|
|
if(yych <= '^') goto yy43;
|
|
|
|
goto yy53;
|
2006-06-20 20:30:39 +00:00
|
|
|
} else {
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '`') goto yy43;
|
|
|
|
if(yych <= 'z') goto yy53;
|
|
|
|
if(yych <= '~') goto yy43;
|
|
|
|
goto yy53;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
|
|
|
}
|
2006-06-20 21:21:52 +00:00
|
|
|
yy69:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= '/') goto yy43;
|
|
|
|
if(yych <= '9') goto yy69;
|
|
|
|
goto yy43;
|
|
|
|
yy71:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
yy72:
|
2006-06-20 20:30:39 +00:00
|
|
|
if(yych == 0x0A) goto yy35;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych <= ' ') goto yy71;
|
2006-06-20 20:30:39 +00:00
|
|
|
goto yy35;
|
2006-06-20 21:21:52 +00:00
|
|
|
yy73:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
|
|
|
if(YYLIMIT == YYCURSOR) YYFILL(1);
|
|
|
|
yych = *YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == 0x0A) goto yy77;
|
|
|
|
goto yy73;
|
2006-06-20 20:30:39 +00:00
|
|
|
yy75:
|
|
|
|
++YYCURSOR;
|
|
|
|
#line 55 "src/sc_man_scanner.re"
|
2006-06-20 21:21:52 +00:00
|
|
|
{ goto comment; }
|
2006-06-20 20:30:39 +00:00
|
|
|
#line 448 "src/sc_man_scanner.h"
|
2006-06-20 21:21:52 +00:00
|
|
|
yy77:
|
|
|
|
++YYCURSOR;
|
|
|
|
#line 56 "src/sc_man_scanner.re"
|
|
|
|
{ goto newline; }
|
|
|
|
#line 453 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 73 "src/sc_man_scanner.re"
|
|
|
|
|
|
|
|
}
|
2006-06-20 20:30:39 +00:00
|
|
|
|
2006-06-20 21:21:52 +00:00
|
|
|
negative_check:
|
|
|
|
if (YYCURSOR >= YYLIMIT)
|
|
|
|
{
|
|
|
|
goto normal_token;
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
2006-06-20 21:21:52 +00:00
|
|
|
if (*YYCURSOR >= '0' && *YYCURSOR <= '9')
|
|
|
|
{
|
|
|
|
goto std2;
|
|
|
|
}
|
|
|
|
if (*YYCURSOR != '.' || YYCURSOR+1 >= YYLIMIT)
|
|
|
|
{
|
|
|
|
goto normal_token;
|
|
|
|
}
|
|
|
|
if (*(YYCURSOR+1) >= '0' && *YYCURSOR <= '9')
|
|
|
|
{
|
|
|
|
goto std2;
|
|
|
|
}
|
|
|
|
goto normal_token;
|
2006-06-20 20:30:39 +00:00
|
|
|
|
|
|
|
comment:
|
|
|
|
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 480 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
{
|
|
|
|
YYCTYPE yych;
|
|
|
|
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
|
|
|
|
yych = *YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if(yych == 0x0A) goto yy83;
|
|
|
|
if(yych != '*') goto yy85;
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
if((yych = *YYCURSOR) == '/') goto yy86;
|
|
|
|
yy82:
|
|
|
|
#line 109 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{ goto comment; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 492 "src/sc_man_scanner.h"
|
|
|
|
yy83:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 99 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
{
|
|
|
|
if (YYCURSOR >= YYLIMIT)
|
|
|
|
{
|
|
|
|
ScriptPtr = ScriptEndPtr;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
sc_Line++;
|
|
|
|
sc_Crossed = true;
|
|
|
|
goto comment;
|
|
|
|
}
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 506 "src/sc_man_scanner.h"
|
|
|
|
yy85:
|
2006-06-20 20:30:39 +00:00
|
|
|
yych = *++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
goto yy82;
|
|
|
|
yy86:
|
2006-06-20 20:30:39 +00:00
|
|
|
++YYCURSOR;
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 97 "src/sc_man_scanner.re"
|
2006-06-20 22:26:04 +00:00
|
|
|
{ goto std1; }
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 514 "src/sc_man_scanner.h"
|
2006-06-20 20:30:39 +00:00
|
|
|
}
|
2006-06-20 21:21:52 +00:00
|
|
|
#line 110 "src/sc_man_scanner.re"
|
2006-06-20 20:30:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
newline:
|
|
|
|
if (YYCURSOR >= YYLIMIT)
|
|
|
|
{
|
|
|
|
ScriptPtr = ScriptEndPtr;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
sc_Line++;
|
|
|
|
sc_Crossed = true;
|
2006-06-20 22:26:04 +00:00
|
|
|
goto std1;
|
2006-06-20 20:30:39 +00:00
|
|
|
|
|
|
|
normal_token:
|
|
|
|
ScriptPtr = (YYCURSOR >= YYLIMIT) ? ScriptEndPtr : cursor;
|
|
|
|
sc_StringLen = MIN (ScriptPtr - tok, MAX_STRING_SIZE-1);
|
|
|
|
memcpy (sc_String, tok, sc_StringLen);
|
|
|
|
sc_String[sc_StringLen] = '\0';
|
|
|
|
return true;
|
|
|
|
|
|
|
|
string:
|
|
|
|
if (YYLIMIT != ScriptEndPtr)
|
|
|
|
{
|
|
|
|
ScriptPtr = ScriptEndPtr;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
ScriptPtr = cursor;
|
|
|
|
for (sc_StringLen = 0; cursor < YYLIMIT; ++cursor)
|
|
|
|
{
|
|
|
|
if (Escape && *cursor == '\\' && *(cursor + 1) == '"')
|
|
|
|
{
|
|
|
|
cursor++;
|
|
|
|
}
|
|
|
|
else if (*cursor == '"')
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (*cursor == '\n')
|
|
|
|
{
|
|
|
|
sc_Line++;
|
|
|
|
sc_Crossed = true;
|
|
|
|
}
|
|
|
|
if (sc_StringLen < MAX_STRING_SIZE-1)
|
|
|
|
{
|
|
|
|
sc_String[sc_StringLen++] = *cursor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ScriptPtr = cursor + 1;
|
|
|
|
sc_String[sc_StringLen] = '\0';
|
|
|
|
return true;
|