indent_puts ("yy_current_state = *--YY_G(yy_state_ptr);");
indent_puts ("YY_G(yy_lp) = yy_accept[yy_current_state];");
- if (!variable_trailing_context_rules)
- outn ("m4_ifdef( [[M4_YY_USES_REJECT]],\n[[");
- outn ("find_rule: /* we branch to this label when backing up */");
- if (!variable_trailing_context_rules)
- outn ("]])\n");
+ if(reject_really_used)
+ outn ("find_rule: /* we branch to this label when backing up */");
indent_puts
("for ( ; ; ) /* until we find what rule we matched */");
%}
-%option caseless nodefault stack noyy_top_state
+%option caseless nodefault noreject stack noyy_top_state
%option nostdinit
%x SECT2 SECT2PROLOG SECT3 CODEBLOCK PICKUPDEF SC CARETISBOL NUM QUOTE
#include <stdlib.h>
#include <string.h>
#include "config.h"
-#include "parser.h"
-#include "scanner.h"
+#include "bison_nr_parser.h"
+#include "bison_nr_scanner.h"
#define YYERROR_VERBOSE 1
/* #define YYPARSE_PARAM scanner */
#include <stdlib.h>
#include <string.h>
#include "config.h"
-#include "parser.h"
-#include "scanner.h"
+#include "bison_yylloc_parser.h"
+#include "bison_yylloc_scanner.h"
int yyerror(YYLTYPE *location, void* scanner, const char* msg);
#include <stdlib.h>
#include <string.h>
#include "config.h"
-#include "parser.h"
-#include "scanner.h"
+#include "bison_yylval_parser.h"
+#include "bison_yylval_scanner.h"
#define YYERROR_VERBOSE 1
* PURPOSE.
*/
-#include <assert.h>
-
#include "multiple_scanners_nr_1.h"
#include "multiple_scanners_nr_2.h"
(void)argc;
(void)argv;
-<<<<<<< HEAD:tests/multiple_scanners_nr_main.c
int S1_ok=1, S2_ok=1;
YY_BUFFER_STATE buff1, buff2;
S1_out = S2_out = stdout;
buff1 = S1__scan_string("foo on bar off");
buff2 = S2__scan_string("on blah blah off foo on bar off");
-=======
- yyscan_t scanner;
- FILE *fp;
- char * extra = "EXTRA";
-
- testlex_init(&scanner);
- testset_in(stdin,scanner);
- testset_out(stdout,scanner);
- testset_extra(extra,scanner);
-
- fp = testget_in(scanner);
- assert(fp == stdin);
- fp = testget_out(scanner);
- assert(fp == stdout);
->>>>>>> Remove a few `unused variable` warnings:tests/test-linedir-r/main.c
/* scan simultaneously. */
while(S1_ok || S2_ok)
printf("TEST RETURNING OK.\n");
return 0;
}
-
-
-/* vim:set tabstop=8 softtabstop=4 shiftwidth=4: */