summaryrefslogtreecommitdiffstats
path: root/lexer.gen.c
diff options
context:
space:
mode:
authorDamian Gryski <damian@gryski.com>2012-10-24 09:31:21 +0200
committerDamian Gryski <damian@gryski.com>2012-10-24 09:31:21 +0200
commit0adf4638d1aa53549ef1e91b5a3f75f5e835f15d (patch)
tree3c879ce84e15dffa3fcded0673c963d4e37c2283 /lexer.gen.c
parente40778727b6bb0b9c714d0426abcdcd67896fc52 (diff)
Update generated lexer.gen.* and parser.gen.* files
Diffstat (limited to 'lexer.gen.c')
-rw-r--r--lexer.gen.c85
1 files changed, 44 insertions, 41 deletions
diff --git a/lexer.gen.c b/lexer.gen.c
index 7d8b953c..dbaf0abc 100644
--- a/lexer.gen.c
+++ b/lexer.gen.c
@@ -501,6 +501,9 @@ static yyconst flex_int16_t yy_chk[190] =
#line 1 "lexer.l"
#line 2 "lexer.l"
#include "compile.h"
+
+struct lexer_param;
+
#include "parser.gen.h" /* Generated by bison. */
#define YY_USER_ACTION \
@@ -515,11 +518,11 @@ static yyconst flex_int16_t yy_chk[190] =
-#line 20 "lexer.l"
+#line 23 "lexer.l"
static int enter(int opening, int state, yyscan_t yyscanner);
static int try_exit(int closing, int state, yyscan_t yyscanner);
#define YY_NO_INPUT 1
-#line 523 "lexer.gen.c"
+#line 526 "lexer.gen.c"
#define INITIAL 0
#define IN_PAREN 1
@@ -771,10 +774,10 @@ YY_DECL
register int yy_act;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-#line 32 "lexer.l"
+#line 35 "lexer.l"
-#line 778 "lexer.gen.c"
+#line 781 "lexer.gen.c"
yylval = yylval_param;
@@ -863,138 +866,138 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
-#line 34 "lexer.l"
+#line 37 "lexer.l"
{ /* comments */ }
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 36 "lexer.l"
+#line 39 "lexer.l"
{ return NEQ; }
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 37 "lexer.l"
+#line 40 "lexer.l"
{ return EQ; }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 38 "lexer.l"
+#line 41 "lexer.l"
{ return AS; }
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 39 "lexer.l"
+#line 42 "lexer.l"
{ return DEF; }
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 40 "lexer.l"
+#line 43 "lexer.l"
{ return IF; }
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 41 "lexer.l"
+#line 44 "lexer.l"
{ return THEN; }
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 42 "lexer.l"
+#line 45 "lexer.l"
{ return ELSE; }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 43 "lexer.l"
+#line 46 "lexer.l"
{ return ELSE_IF; }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 44 "lexer.l"
+#line 47 "lexer.l"
{ return AND; }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 45 "lexer.l"
+#line 48 "lexer.l"
{ return OR; }
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 46 "lexer.l"
+#line 49 "lexer.l"
{ return END; }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 47 "lexer.l"
+#line 50 "lexer.l"
{ return DEFINEDOR; }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 48 "lexer.l"
+#line 51 "lexer.l"
{ return SETPIPE; }
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 49 "lexer.l"
+#line 52 "lexer.l"
{ return SETPLUS; }
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 50 "lexer.l"
+#line 53 "lexer.l"
{ return SETMINUS; }
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 51 "lexer.l"
+#line 54 "lexer.l"
{ return SETMULT; }
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 52 "lexer.l"
+#line 55 "lexer.l"
{ return SETDIV; }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 53 "lexer.l"
+#line 56 "lexer.l"
{ return SETDEFINEDOR; }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 54 "lexer.l"
+#line 57 "lexer.l"
{ return LESSEQ; }
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 55 "lexer.l"
+#line 58 "lexer.l"
{ return GREATEREQ; }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 56 "lexer.l"
+#line 59 "lexer.l"
{ return yytext[0];}
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 58 "lexer.l"
+#line 61 "lexer.l"
{
return enter(yytext[0], YY_START, yyscanner);
}
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 62 "lexer.l"
+#line 65 "lexer.l"
{
return try_exit(yytext[0], YY_START, yyscanner);
}
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 67 "lexer.l"
+#line 70 "lexer.l"
{
yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
}
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 71 "lexer.l"
+#line 74 "lexer.l"
{
yy_push_state(IN_QQSTRING, yyscanner);
return QQSTRING_START;
@@ -1003,14 +1006,14 @@ YY_RULE_SETUP
case 27:
YY_RULE_SETUP
-#line 77 "lexer.l"
+#line 80 "lexer.l"
{
return enter(QQSTRING_INTERP_START, YY_START, yyscanner);
}
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 80 "lexer.l"
+#line 83 "lexer.l"
{
yy_pop_state(yyscanner);
return QQSTRING_END;
@@ -1019,7 +1022,7 @@ YY_RULE_SETUP
case 29:
/* rule 29 can match eol */
YY_RULE_SETUP
-#line 84 "lexer.l"
+#line 87 "lexer.l"
{
/* pass escapes to the json parser */
jv escapes = jv_string_fmt("\"%.*s\"", yyleng, yytext);
@@ -1031,7 +1034,7 @@ YY_RULE_SETUP
case 30:
/* rule 30 can match eol */
YY_RULE_SETUP
-#line 91 "lexer.l"
+#line 94 "lexer.l"
{
yylval->literal = jv_string_sized(yytext, yyleng);
return QQSTRING_TEXT;
@@ -1039,7 +1042,7 @@ YY_RULE_SETUP
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 95 "lexer.l"
+#line 98 "lexer.l"
{
return INVALID_CHARACTER;
}
@@ -1047,26 +1050,26 @@ YY_RULE_SETUP
case 32:
YY_RULE_SETUP
-#line 101 "lexer.l"
+#line 104 "lexer.l"
{ yylval->literal = jv_string(yytext); return IDENT;}
YY_BREAK
case 33:
/* rule 33 can match eol */
YY_RULE_SETUP
-#line 103 "lexer.l"
+#line 106 "lexer.l"
{}
YY_BREAK
case 34:
YY_RULE_SETUP
-#line 105 "lexer.l"
+#line 108 "lexer.l"
{ return INVALID_CHARACTER; }
YY_BREAK
case 35:
YY_RULE_SETUP
-#line 107 "lexer.l"
+#line 110 "lexer.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
-#line 1070 "lexer.gen.c"
+#line 1073 "lexer.gen.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(IN_PAREN):
case YY_STATE_EOF(IN_BRACKET):
@@ -2249,7 +2252,7 @@ void jq_yyfree (void * ptr , yyscan_t yyscanner)
#define YYTABLES_NAME "yytables"
-#line 107 "lexer.l"
+#line 110 "lexer.l"
/* perhaps these should be calls... */