2 #if defined(i386_unknown_nt4_0)
4 #define YY_NEVER_INTERACTIVE 1
13 #include "BPatch_snippet.h"
14 #include "dyner.tab.h"
17 void set_lex_input(char *);
20 static char *input_str = NULL;
25 #define YY_INPUT(b,r,ms) (r = my_yyinput(b, ms))
27 int my_yyinput(char *buf, int max_size);
32 #define input() (*input_str++)
33 #define unput(c) (*--input_str = c)
38 static int yyinput(void);
40 static int doubleQuote()
44 bool backSlash = false;
54 yytext[count++] = '"';
58 dynerlval.sval = strdup(yytext);
64 /* New line before end of string */
75 yytext[count-1] = '\n';
98 [0-9]+ { dynerlval.ival = atoi(yytext); return NUMBER; }
100 [A-za-z][A-Za-z0-9_]* { dynerlval.sval = strdup(yytext); return IDENTIFIER; }
102 \<= { return LESS_EQ; }
104 \>= { return GREATER_EQ; }
112 != { return NOT_EQ; }
114 \{ { return START_BLOCK; }
116 \} { return END_BLOCK; }
118 \$ { return DOLLAR; }
124 [()<>+*/-] { return yytext[0]; }
130 [ \t\n]+ { /* Nothing */; }
137 "++" { return PLUSPLUS; }
139 "--" { return MINUSMINUS; }
145 void set_lex_input(char *str)
147 static int firstCall = 1;
151 if (!firstCall) yy_flush_buffer(YY_CURRENT_BUFFER);
156 int my_yyinput(char *buf, int max_size)
160 while (*input_str != '\0' && sz < max_size) {
161 *buf++ = *input_str++;
169 #if !defined(i386_unknown_nt4_0)