1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/include/ulib/flex/bison_head.yy
stefanocasazza 877766b00d bug fixing
2015-07-10 19:16:37 +02:00

49 lines
620 B
Plaintext

%{
/*
#define YYDEBUG 1
#define DEBUG_DEBUG
*/
#include <ulib/flex/bison.h>
#include <%.h>
#define YYPARSE_RETURN_TYPE int
YYPARSE_RETURN_TYPE yyparse(void*);
int yyerror(char*);
#define yylex ((UBison*)obj)->yylex
#define YYLEX_PARAM &yylval
%}
/* BISON Declarations */
/* va commentato YYLEX_PARAM se abilitato parser rientrante...
%pure_parser
*/
%union {
int number;
UFlexerReference ref;
}
/*
%token ...
%type ...
*/
/* Grammar follows */
%%
%%
int yyerror(char* s)
{
U_INTERNAL_TRACE("yyerror(\"%s\")", s);
/*
extern int yylineno;
U_INTERNAL_TRACE("yylineno=%d", yylineno)
*/
return -1;
}