Browse Source

- fix to supress wrong "#line 0"

development
Andreas Romeyke 2 years ago
parent
commit
bdeaecb3e1
2 changed files with 1 additions and 49 deletions
  1. +1
    -1
      src/Makefile
  2. +0
    -48
      src/parser/config_dsl.grammar.c

+ 1
- 1
src/Makefile View File

@ -34,7 +34,7 @@ parser/config_dsl.grammar.c: parser/config_dsl.grammar.peg
# produce parser via PEG
%.c: %.peg
peg $< > $@
peg -P $< > $@
-include version.mk


+ 0
- 48
src/parser/config_dsl.grammar.c View File

@ -323,7 +323,6 @@ YY_ACTION(void) yy_1_EndOfLine(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_EndOfLine\n"));
{
#line 0
incrlineno();;
}
#undef yythunkpos
@ -337,7 +336,6 @@ YY_ACTION(void) yy_1_RegEx(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_RegEx\n"));
{
#line 0
regex_push ( yytext ); ;
}
#undef yythunkpos
@ -351,7 +349,6 @@ YY_ACTION(void) yy_1_Only(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Only\n"));
{
#line 0
;
}
#undef yythunkpos
@ -365,7 +362,6 @@ YY_ACTION(void) yy_6_ValueReference(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_6_ValueReference\n"));
{
#line 0
parser_state.any_reference = only_ref; ;
}
#undef yythunkpos
@ -379,7 +375,6 @@ YY_ACTION(void) yy_5_ValueReference(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_5_ValueReference\n"));
{
#line 0
parser_state.any_reference = ntupel_ref; ;
}
#undef yythunkpos
@ -393,7 +388,6 @@ YY_ACTION(void) yy_4_ValueReference(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_4_ValueReference\n"));
{
#line 0
parser_state.any_reference = range_ref; ;
}
#undef yythunkpos
@ -407,7 +401,6 @@ YY_ACTION(void) yy_3_ValueReference(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_3_ValueReference\n"));
{
#line 0
parser_state.any_reference = regex_ref; ;
}
#undef yythunkpos
@ -421,7 +414,6 @@ YY_ACTION(void) yy_2_ValueReference(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_2_ValueReference\n"));
{
#line 0
parser_state.any_reference = only_ref; i_push(atol(yytext) );;
}
#undef yythunkpos
@ -435,7 +427,6 @@ YY_ACTION(void) yy_1_ValueReference(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_ValueReference\n"));
{
#line 0
parser_state.any_reference = any_ref; ;
}
#undef yythunkpos
@ -449,7 +440,6 @@ YY_ACTION(void) yy_1_NTupel(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_NTupel\n"));
{
#line 0
int v=parser_state.valuelist; i_push(v); reset_valuelist(); ;
}
#undef yythunkpos
@ -463,7 +453,6 @@ YY_ACTION(void) yy_1_Value(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Value\n"));
{
#line 0
incr_values(); ;
}
#undef yythunkpos
@ -477,7 +466,6 @@ YY_ACTION(void) yy_3_Number(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_3_Number\n"));
{
#line 0
i_push(atol(yytext) );;
}
#undef yythunkpos
@ -491,7 +479,6 @@ YY_ACTION(void) yy_2_Number(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_2_Number\n"));
{
#line 0
i_push(2<<atol(yytext) ); ;
}
#undef yythunkpos
@ -505,7 +492,6 @@ YY_ACTION(void) yy_1_Number(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Number\n"));
{
#line 0
i_push(strtol(yytext, NULL, 0) ); ;
}
#undef yythunkpos
@ -519,7 +505,6 @@ YY_ACTION(void) yy_8_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_8_Content\n"));
{
#line 0
v_push( iccprofile ); ;
}
#undef yythunkpos
@ -533,7 +518,6 @@ YY_ACTION(void) yy_7_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_7_Content\n"));
{
#line 0
v_push( datetime ); ;
}
#undef yythunkpos
@ -547,7 +531,6 @@ YY_ACTION(void) yy_6_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_6_Content\n"));
{
#line 0
v_push( printable_ascii ); ;
}
#undef yythunkpos
@ -561,7 +544,6 @@ YY_ACTION(void) yy_5_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_5_Content\n"));
{
#line 0
v_push( regex ); ;
}
#undef yythunkpos
@ -575,7 +557,6 @@ YY_ACTION(void) yy_4_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_4_Content\n"));
{
#line 0
v_push( ntupel ); reset_valuelist() ;
}
#undef yythunkpos
@ -589,7 +570,6 @@ YY_ACTION(void) yy_3_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_3_Content\n"));
{
#line 0
v_push( only ); ;
}
#undef yythunkpos
@ -603,7 +583,6 @@ YY_ACTION(void) yy_2_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_2_Content\n"));
{
#line 0
v_push( range); ;
}
#undef yythunkpos
@ -617,7 +596,6 @@ YY_ACTION(void) yy_1_Content(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Content\n"));
{
#line 0
v_push( any ); ;
}
#undef yythunkpos
@ -631,7 +609,6 @@ YY_ACTION(void) yy_4_Requirements(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_4_Requirements\n"));
{
#line 0
set_optional(); ;
}
#undef yythunkpos
@ -645,7 +622,6 @@ YY_ACTION(void) yy_3_Requirements(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_3_Requirements\n"));
{
#line 0
set_optdepends(); ;
}
#undef yythunkpos
@ -659,7 +635,6 @@ YY_ACTION(void) yy_2_Requirements(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_2_Requirements\n"));
{
#line 0
set_ifdepends(); ;
}
#undef yythunkpos
@ -673,7 +648,6 @@ YY_ACTION(void) yy_1_Requirements(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Requirements\n"));
{
#line 0
set_mandatory(); ;
}
#undef yythunkpos
@ -687,7 +661,6 @@ YY_ACTION(void) yy_1_TagReference(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_TagReference\n"));
{
#line 0
int tag = i_pop();
if (tag < 254) set_parse_error("wrong tagreference (should be >253)", yytext);
@ -706,7 +679,6 @@ YY_ACTION(void) yy_1_Tag(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Tag\n"));
{
#line 0
int tag = i_pop();
/* rule_tagorder_in_dsl( tag ); */
@ -726,7 +698,6 @@ YY_ACTION(void) yy_2_TagLine(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_2_TagLine\n"));
{
#line 0
set_rule_logical_close(); ;
}
#undef yythunkpos
@ -740,7 +711,6 @@ YY_ACTION(void) yy_1_TagLine(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_TagLine\n"));
{
#line 0
rule_addtag_config(); ;
}
#undef yythunkpos
@ -754,7 +724,6 @@ YY_ACTION(void) yy_5_Mode(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_5_Mode\n"));
{
#line 0
i_push(mode_enable_deep_geotiff_checks); ;
}
#undef yythunkpos
@ -768,7 +737,6 @@ YY_ACTION(void) yy_4_Mode(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_4_Mode\n"));
{
#line 0
i_push(mode_enable_ifd_checks); ;
}
#undef yythunkpos
@ -782,7 +750,6 @@ YY_ACTION(void) yy_3_Mode(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_3_Mode\n"));
{
#line 0
i_push(mode_enable_offset_checks); ;
}
#undef yythunkpos
@ -796,7 +763,6 @@ YY_ACTION(void) yy_2_Mode(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_2_Mode\n"));
{
#line 0
i_push(mode_enable_type_checks); ;
}
#undef yythunkpos
@ -810,7 +776,6 @@ YY_ACTION(void) yy_1_Mode(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Mode\n"));
{
#line 0
i_push(mode_baseline ); ;
}
#undef yythunkpos
@ -824,7 +789,6 @@ YY_ACTION(void) yy_7_LogicalOrListElement(yycontext *yy, char *yytext, int yylen
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_7_LogicalOrListElement\n"));
{
#line 0
v_push( printable_ascii ); incr_logical_elements();;
}
#undef yythunkpos
@ -838,7 +802,6 @@ YY_ACTION(void) yy_6_LogicalOrListElement(yycontext *yy, char *yytext, int yylen
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_6_LogicalOrListElement\n"));
{
#line 0
v_push( regex ); incr_logical_elements();;
}
#undef yythunkpos
@ -852,7 +815,6 @@ YY_ACTION(void) yy_5_LogicalOrListElement(yycontext *yy, char *yytext, int yylen
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_5_LogicalOrListElement\n"));
{
#line 0
v_push( ntupel); incr_logical_elements();;
}
#undef yythunkpos
@ -866,7 +828,6 @@ YY_ACTION(void) yy_4_LogicalOrListElement(yycontext *yy, char *yytext, int yylen
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_4_LogicalOrListElement\n"));
{
#line 0
v_push( only ); incr_logical_elements();;
}
#undef yythunkpos
@ -880,7 +841,6 @@ YY_ACTION(void) yy_3_LogicalOrListElement(yycontext *yy, char *yytext, int yylen
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_3_LogicalOrListElement\n"));
{
#line 0
v_push( only ); incr_logical_elements();;
}
#undef yythunkpos
@ -894,7 +854,6 @@ YY_ACTION(void) yy_2_LogicalOrListElement(yycontext *yy, char *yytext, int yylen
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_2_LogicalOrListElement\n"));
{
#line 0
v_push( range); incr_logical_elements();;
}
#undef yythunkpos
@ -908,7 +867,6 @@ YY_ACTION(void) yy_1_LogicalOrListElement(yycontext *yy, char *yytext, int yylen
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_LogicalOrListElement\n"));
{
#line 0
v_push( any ); incr_logical_elements();;
}
#undef yythunkpos
@ -922,7 +880,6 @@ YY_ACTION(void) yy_1_LogicalOrClose(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_LogicalOrClose\n"));
{
#line 0
;
}
#undef yythunkpos
@ -936,7 +893,6 @@ YY_ACTION(void) yy_1_LogicalOrOpen(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_LogicalOrOpen\n"));
{
#line 0
set_rule_logical_open();;
}
#undef yythunkpos
@ -950,7 +906,6 @@ YY_ACTION(void) yy_1_ModeLine(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_ModeLine\n"));
{
#line 0
int i = i_pop(); set_mode( i ); ;
}
#undef yythunkpos
@ -964,7 +919,6 @@ YY_ACTION(void) yy_1_IncludeLine(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_IncludeLine\n"));
{
#line 0
set_include ( yytext ); ;
}
#undef yythunkpos
@ -978,7 +932,6 @@ YY_ACTION(void) yy_1_CommentLine(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_CommentLine\n"));
{
#line 0
commentline(); ;
}
#undef yythunkpos
@ -992,7 +945,6 @@ YY_ACTION(void) yy_1_Line(yycontext *yy, char *yytext, int yyleng)
#define yythunkpos yy->__thunkpos
yyprintf((stderr, "do yy_1_Line\n"));
{
#line 0
fprintf(stderr, "grammar parser error at line %i (error at '%s')\n", parser_state.lineno, yytext); exit(EXIT_FAILURE); ;
}
#undef yythunkpos


Loading…
Cancel
Save