18#define YY_USER_ACTION \
19 yylloc->first_line = yylloc->last_line = yylineno; \
20 yylloc->first_column = yylloc->last_column + 1; \
21 yylloc->last_column += yyleng;
25#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED && defined NSGENBIND_STYPE_IS_DECLARED
26#define YYSTYPE NSGENBIND_STYPE
29#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED && defined NSGENBIND_LTYPE_IS_DECLARED
30#define YYLTYPE NSGENBIND_LTYPE
33static struct YYLTYPE *locations = NULL;
40 res = calloc(1,
sizeof(
struct YYLTYPE));
73%option never-interactive
76%option bison-locations
79%option prefix="nsgenbind_"
85USP (\xe1\x9a\x80)|(\xe1\xa0\x8e)|(\xe2\x80[\x80-\x8a])|(\xe2\x80\xaf)|(\xe2\x81\x9f)|(\xe3\x80\x80)
96whitespace ([ \t\v\f]|{NBSP}|{USP})
98lineend ([\n\r]|{LS}|{PS})
100multicomment \/\*(([^*])|(\*[^/]))*\*\/
102quotedstring [^\"\\\n\r]
104identifier [A-Z_a-z][0-9A-Z_a-z]*
106other [^\t\n\r 0-9A-Z_a-z]
113poundsign ^{whitespace}*#
125{lineend} if (
yytext[0] !=
'\r') {
187{other} return (
int)
yytext[0];
203 fprintf(stderr,
"Unable to open include %s\n",
yytext);
FILE * genbindopen(const char *filename)
#define yypush_buffer_state
223 locations = pop_location(locations,
yylloc);
#define YY_CURRENT_BUFFER
#define yypop_buffer_state