This is Unofficial EPICS BASE Doxygen Site
scan.c File Reference
#include <stdio.h>
#include <stdlib.h>
+ Include dependency graph for scan.c:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 

Macros

#define FLEX_SCANNER
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_END_TOK   0
 
#define ECHO   (void) fwrite( (char *) yytext, yyleng, 1, yyout )
 
#define YY_INPUT(buf, result, max_size)
 
#define YY_NULL   0
 
#define yyterminate()   return ( YY_NULL )
 
#define YY_FATAL_ERROR(msg)
 
#define yywrap()   1
 
#define BEGIN   yy_start = 1 + 2 *
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE
 
#define YY_DECL   int yylex ( void )
 
#define YY_BREAK   break;
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
 
#define YY_CHAR   unsigned char
 
#define INITIAL   0
 
#define ACTION_ECHO   fprintf( temp_action_file, "%s", yytext )
 
#define MARK_END_OF_PROLOG   fprintf( temp_action_file, "%%%% end of prolog\n" );
 
#define YY_DECL   int flexscan()
 
#define RETURNCHAR
 
#define RETURNNAME
 
#define PUT_BACK_STRING(str, start)
 
#define CHECK_REJECT(str)
 
#define CHECK_YYMORE(str)
 
#define SECT2   1
 
#define SECT2PROLOG   2
 
#define SECT3   3
 
#define CODEBLOCK   4
 
#define PICKUPDEF   5
 
#define SC   6
 
#define CARETISBOL   7
 
#define NUM   8
 
#define QUOTE   9
 
#define FIRSTCCL   10
 
#define CCL   11
 
#define ACTION   12
 
#define RECOVER   13
 
#define BRACEERROR   14
 
#define C_COMMENT   15
 
#define ACTION_COMMENT   16
 
#define ACTION_STRING   17
 
#define PERCENT_BRACE_ACTION   18
 
#define USED_LIST   19
 
#define CODEBLOCK_2   20
 
#define XLATION   21
 
#define YY_DO_BEFORE_ACTION
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define yyless(n)
 
#define unput(c)   yyunput( c, yytext )
 
#define EOF_NOT_SEEN   0
 
#define EOF_PENDING   1
 
#define EOF_DONE   2
 
#define YY_CURRENT_BUFFER   yy_current_buffer
 
#define YY_USER_ACTION
 
#define YY_USER_INIT
 
#define YY_END_OF_BUFFER   121
 
#define YY_TRAILING_MASK   0x2000
 
#define YY_TRAILING_HEAD_MASK   0x4000
 
#define REJECT
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define yy_new_buffer   yy_create_buffer
 

Typedefs

typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef int yy_state_type
 

Functions

void yyrestart (FILE *input_file)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
void yy_load_buffer_state (void)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 
void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
Char myesc ()
 
 if (yy_init)
 
 while (1)
 
void set_input_file (char *file)
 

Variables

YY_CHARyytext
 
int yyleng
 
FILE * yyin = (FILE *) 0
 
FILE * yyout = (FILE *) 0
 
 YY_DECL
 
YY_CHARyy_cp
 
YY_CHARyy_bp
 
int yy_act
 
int i
 
int indented_code = false
 
int checking_used = false
 
int new_xlation = false
 
int doing_codeblock = false
 
Char nmdef [MAXLINE]
 

Macro Definition Documentation

#define ACTION   12

Definition at line 197 of file scan.c.

#define ACTION_COMMENT   16

Definition at line 201 of file scan.c.

#define ACTION_ECHO   fprintf( temp_action_file, "%s", yytext )

Definition at line 160 of file scan.c.

#define ACTION_STRING   17

Definition at line 202 of file scan.c.

#define BEGIN   yy_start = 1 + 2 *

Definition at line 97 of file scan.c.

#define BRACEERROR   14

Definition at line 199 of file scan.c.

#define C_COMMENT   15

Definition at line 200 of file scan.c.

#define CARETISBOL   7

Definition at line 192 of file scan.c.

#define CCL   11

Definition at line 196 of file scan.c.

#define CHECK_REJECT (   str)
Value:
if ( all_upper( str ) ) \
reject = true;
#define str(v)
int all_upper(Char *)
Definition: misc.c:125
int reject
Definition: flex.c:69

Definition at line 179 of file scan.c.

#define CHECK_YYMORE (   str)
Value:
if ( all_lower( str ) ) \
yymore_used = true;
#define str(v)
int yymore_used
Definition: flex.c:69
int all_lower(Char *)
Definition: misc.c:104

Definition at line 183 of file scan.c.

#define CODEBLOCK   4

Definition at line 189 of file scan.c.

#define CODEBLOCK_2   20

Definition at line 205 of file scan.c.

#define ECHO   (void) fwrite( (char *) yytext, yyleng, 1, yyout )

Definition at line 49 of file scan.c.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 219 of file scan.c.

#define EOB_ACT_END_OF_FILE   1

Definition at line 220 of file scan.c.

#define EOB_ACT_LAST_MATCH   2

Definition at line 221 of file scan.c.

#define EOF_DONE   2

Definition at line 256 of file scan.c.

#define EOF_NOT_SEEN   0

Definition at line 251 of file scan.c.

#define EOF_PENDING   1

Definition at line 255 of file scan.c.

#define FIRSTCCL   10

Definition at line 195 of file scan.c.

#define FLEX_SCANNER

Definition at line 5 of file scan.c.

#define INITIAL   0

Definition at line 129 of file scan.c.

#define MARK_END_OF_PROLOG   fprintf( temp_action_file, "%%%% end of prolog\n" );

Definition at line 161 of file scan.c.

#define NUM   8

Definition at line 193 of file scan.c.

#define PERCENT_BRACE_ACTION   18

Definition at line 203 of file scan.c.

#define PICKUPDEF   5

Definition at line 190 of file scan.c.

#define PUT_BACK_STRING (   str,
  start 
)
Value:
for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
unput((str)[i])
int i
Definition: scan.c:967
#define str(v)
#define unput(c)
Definition: scan.c:234

Definition at line 175 of file scan.c.

#define QUOTE   9

Definition at line 194 of file scan.c.

#define RECOVER   13

Definition at line 198 of file scan.c.

#define REJECT
Value:
{ \
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
yy_lp = yy_full_lp; /* restore orig. accepting pos. */ \
yy_state_ptr = yy_full_state; /* restore orig. state */ \
yy_current_state = *yy_state_ptr; /* restore curr. state */ \
++yy_lp; \
goto find_rule; \
}
YY_CHAR * yy_cp
Definition: scan.c:962

Definition at line 920 of file scan.c.

#define RETURNCHAR
Value:
yylval = yytext[0]; \
return ( CHAR );
YY_CHAR * yytext
Definition: scan.c:287

Definition at line 167 of file scan.c.

#define RETURNNAME
Value:
(void) strcpy( nmstr, (char *) yytext ); \
return ( NAME );
char nmstr[MAXLINE]
Definition: flex.c:99
YY_CHAR * yytext
Definition: scan.c:287

Definition at line 171 of file scan.c.

#define SC   6

Definition at line 191 of file scan.c.

#define SECT2   1

Definition at line 186 of file scan.c.

#define SECT2PROLOG   2

Definition at line 187 of file scan.c.

#define SECT3   3

Definition at line 188 of file scan.c.

#define unput (   c)    yyunput( c, yytext )

Definition at line 234 of file scan.c.

#define USED_LIST   19

Definition at line 204 of file scan.c.

#define XLATION   21

Definition at line 206 of file scan.c.

#define YY_BREAK   break;

Definition at line 117 of file scan.c.

#define YY_BUF_SIZE   (YY_READ_BUF_SIZE * 2) /* size of default input buffer */

Definition at line 122 of file scan.c.

#define YY_CHAR   unsigned char

Definition at line 127 of file scan.c.

#define YY_CURRENT_BUFFER   yy_current_buffer

Definition at line 265 of file scan.c.

#define YY_DECL   int yylex ( void )

Definition at line 164 of file scan.c.

#define YY_DECL   int flexscan()

Definition at line 164 of file scan.c.

#define YY_DO_BEFORE_ACTION
Value:
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
int yyleng
Definition: scan.c:288
YY_CHAR * yy_cp
Definition: scan.c:962
YY_CHAR * yytext
Definition: scan.c:287
YY_CHAR * yy_bp
Definition: scan.c:962

Definition at line 212 of file scan.c.

#define YY_END_OF_BUFFER   121

Definition at line 292 of file scan.c.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 119 of file scan.c.

#define YY_END_TOK   0

Definition at line 41 of file scan.c.

#define YY_FATAL_ERROR (   msg)
Value:
do \
{ \
(void) fputs( msg, stderr ); \
(void) putc( '\n', stderr ); \
exit( 1 ); \
} \
while ( 0 )
while(1)
Definition: scan.c:995
#define stderr
Definition: epicsStdio.h:32

Definition at line 81 of file scan.c.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR( "read() in flex scanner failed" );
pvac::PutEvent result
Definition: clientSync.cpp:117
#define YY_FATAL_ERROR(msg)
Definition: scan.c:81
FILE * yyin
Definition: scan.c:290

Definition at line 54 of file scan.c.

#define YY_MORE_ADJ   0

Definition at line 931 of file scan.c.

#define yy_new_buffer   yy_create_buffer

Definition at line 957 of file scan.c.

#define YY_NEW_FILE
Value:
do \
{ \
yy_init_buffer( yy_current_buffer, yyin ); \
} \
while ( 0 )
while(1)
Definition: scan.c:995
void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: scan.c:2191
FILE * yyin
Definition: scan.c:290
void yy_load_buffer_state(void)
Definition: scan.c:2147

Definition at line 103 of file scan.c.

#define YY_NULL   0

Definition at line 57 of file scan.c.

#define YY_READ_BUF_SIZE   8192

Definition at line 37 of file scan.c.

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 100 of file scan.c.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 919 of file scan.c.

#define YY_TRAILING_MASK   0x2000

Definition at line 918 of file scan.c.

#define YY_USER_ACTION

Definition at line 276 of file scan.c.

#define YY_USER_INIT

Definition at line 280 of file scan.c.

#define yyless (   n)
Value:
do \
{ \
/* undo effects of setting up yytext */ \
*yy_cp = yy_hold_char; \
yy_c_buf_p = yy_cp = yy_bp + n; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
while(1)
Definition: scan.c:995
#define YY_DO_BEFORE_ACTION
Definition: scan.c:212
YY_CHAR * yy_cp
Definition: scan.c:962
YY_CHAR * yy_bp
Definition: scan.c:962

Definition at line 224 of file scan.c.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 930 of file scan.c.

#define yyterminate ( )    return ( YY_NULL )

Definition at line 63 of file scan.c.

int yywrap ( )    1

Definition at line 91 of file scan.c.

Typedef Documentation

Definition at line 125 of file scan.c.

typedef int yy_state_type

Definition at line 293 of file scan.c.

Function Documentation

if ( yy_init  )

Definition at line 972 of file scan.c.

973  {
974  YY_USER_INIT;
975 
976  if ( ! yy_start )
977  yy_start = 1; /* first start state */
978 
979  if ( ! yyin )
980  yyin = stdin;
981 
982  if ( ! yyout )
983  yyout = stdout;
984 
985  if ( yy_current_buffer )
986  yy_init_buffer( yy_current_buffer, yyin );
987  else
988  yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
989 
991 
992  yy_init = 0;
993  }
#define YY_USER_INIT
Definition: scan.c:280
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
Definition: scan.c:2156
FILE * yyout
Definition: scan.c:290
void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: scan.c:2191
#define YY_BUF_SIZE
Definition: scan.c:122
FILE * yyin
Definition: scan.c:290
#define stdout
Definition: epicsStdio.h:30
#define stdin
Definition: epicsStdio.h:28
void yy_load_buffer_state(void)
Definition: scan.c:2147
Char myesc ( )
void set_input_file ( char *  file)

Definition at line 2233 of file scan.c.

2236  {
2237  if ( file )
2238  {
2239  infilename = file;
2240  yyin = fopen( infilename, "r" );
2241 
2242  if ( yyin == NULL )
2243  lerrsf( "can't open %s", file );
2244  }
2245 
2246  else
2247  {
2248  yyin = stdin;
2249  infilename = "<stdin>";
2250  }
2251  }
#define NULL
Definition: catime.c:38
void lerrsf(char[], char[])
FILE * yyin
Definition: scan.c:290
char * infilename
Definition: flex.c:73
#define stdin
Definition: epicsStdio.h:28
while ( )

Definition at line 995 of file scan.c.

996  {
997  yy_cp = yy_c_buf_p;
998 
999  /* support of yytext */
1000  *yy_cp = yy_hold_char;
1001 
1002  /* yy_bp points to the position in yy_ch_buf of the start of the
1003  * current run.
1004  */
1005  yy_bp = yy_cp;
1006 
1007  yy_current_state = yy_start;
1008  if ( yy_bp[-1] == '\n' )
1009  ++yy_current_state;
1010  yy_state_ptr = yy_state_buf;
1011  *yy_state_ptr++ = yy_current_state;
1012 yy_match:
1013  do
1014  {
1015  YY_CHAR yy_c = yy_ec[(int)*yy_cp];
1016  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1017  {
1018  yy_current_state = yy_def[yy_current_state];
1019  if ( yy_current_state >= 391 )
1020  yy_c = yy_meta[(int)yy_c];
1021  }
1022  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1023  *yy_state_ptr++ = yy_current_state;
1024  ++yy_cp;
1025  }
1026  while ( yy_current_state != 390 );
1027 
1028 yy_find_action:
1029  yy_current_state = *--yy_state_ptr;
1030  yy_lp = yy_accept[yy_current_state];
1031 find_rule: /* we branch to this label when backtracking */
1032  for ( ; ; ) /* until we find what rule we matched */
1033  {
1034  if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1035  {
1036  yy_act = yy_acclist[yy_lp];
1037  if ( yy_act & YY_TRAILING_HEAD_MASK ||
1038  yy_looking_for_trail_begin )
1039  {
1040  if ( yy_act == yy_looking_for_trail_begin )
1041  {
1042  yy_looking_for_trail_begin = 0;
1044  break;
1045  }
1046  }
1047  else if ( yy_act & YY_TRAILING_MASK )
1048  {
1049  yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
1050  yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
1051  }
1052  else
1053  {
1054  yy_full_match = yy_cp;
1055  yy_full_state = yy_state_ptr;
1056  yy_full_lp = yy_lp;
1057  break;
1058  }
1059  ++yy_lp;
1060  goto find_rule;
1061  }
1062  --yy_cp;
1063  yy_current_state = *--yy_state_ptr;
1064  yy_lp = yy_accept[yy_current_state];
1065  }
1066 
1069 
1070 do_action: /* this label is used only to access EOF actions */
1071 
1072 
1073  switch ( yy_act )
1074  {
1075 case 1:
1076 # line 82 "scan.l"
1077 indented_code = true; BEGIN(CODEBLOCK);
1078  YY_BREAK
1079 case 2:
1080 # line 83 "scan.l"
1081 ++linenum; /* treat as a comment */
1082  YY_BREAK
1083 case 3:
1084 # line 84 "scan.l"
1085 ECHO; BEGIN(C_COMMENT);
1086  YY_BREAK
1087 case 4:
1088 # line 85 "scan.l"
1089 return ( SCDECL );
1090  YY_BREAK
1091 case 5:
1092 # line 86 "scan.l"
1093 return ( XSCDECL );
1094  YY_BREAK
1095 case 6:
1096 # line 87 "scan.l"
1097 {
1098  ++linenum;
1100  indented_code = false;
1101  BEGIN(CODEBLOCK);
1102  }
1103  YY_BREAK
1104 case 7:
1105 # line 94 "scan.l"
1106 return ( WHITESPACE );
1107  YY_BREAK
1108 case 8:
1109 # line 96 "scan.l"
1110 {
1111  sectnum = 2;
1113  BEGIN(SECT2PROLOG);
1114  return ( SECTEND );
1115  }
1116  YY_BREAK
1117 case 9:
1118 # line 103 "scan.l"
1119 {
1120  pinpoint_message( "warning - %%used/%%unused have been deprecated" );
1122  }
1123  YY_BREAK
1124 case 10:
1125 # line 107 "scan.l"
1126 {
1128  pinpoint_message( "warning - %%used/%%unused have been deprecated" );
1130  }
1131  YY_BREAK
1132 case 11:
1133 # line 114 "scan.l"
1134 {
1135 #ifdef NOTDEF
1136  fprintf( stderr,
1137  "old-style lex command at line %d ignored:\n\t%s",
1138  linenum, yytext );
1139 #endif
1140  ++linenum;
1141  }
1142  YY_BREAK
1143 case 12:
1144 # line 123 "scan.l"
1145 /* ignore old lex directive */
1146  YY_BREAK
1147 case 13:
1148 # line 125 "scan.l"
1149 {
1150  ++linenum;
1151  xlation =
1152  (int *) malloc( sizeof( int ) * (unsigned) csize );
1153 
1154  if ( ! xlation )
1155  flexfatal(
1156  "dynamic memory failure building %t table" );
1157 
1158  for ( i = 0; i < csize; ++i )
1159  xlation[i] = 0;
1160 
1161  num_xlations = 0;
1162 
1163  BEGIN(XLATION);
1164  }
1165  YY_BREAK
1166 case 14:
1167 # line 142 "scan.l"
1168 synerr( "unrecognized '%' directive" );
1169  YY_BREAK
1170 case 15:
1171 # line 144 "scan.l"
1172 {
1173  (void) strcpy( nmstr, (char *) yytext );
1174  didadef = false;
1175  BEGIN(PICKUPDEF);
1176  }
1177  YY_BREAK
1178 case 16:
1179 # line 150 "scan.l"
1180 RETURNNAME;
1181  YY_BREAK
1182 case 17:
1183 # line 151 "scan.l"
1184 ++linenum; /* allows blank lines in section 1 */
1185  YY_BREAK
1186 case 18:
1187 # line 152 "scan.l"
1188 ++linenum; return ( '\n' );
1189  YY_BREAK
1190 case 19:
1191 # line 153 "scan.l"
1192 synerr( "illegal character" ); BEGIN(RECOVER);
1193  YY_BREAK
1194 case 20:
1195 # line 156 "scan.l"
1196 ECHO; BEGIN(INITIAL);
1197  YY_BREAK
1198 case 21:
1199 # line 157 "scan.l"
1200 ++linenum; ECHO; BEGIN(INITIAL);
1201  YY_BREAK
1202 case 22:
1203 # line 158 "scan.l"
1204 ECHO;
1205  YY_BREAK
1206 case 23:
1207 # line 159 "scan.l"
1208 ECHO;
1209  YY_BREAK
1210 case 24:
1211 # line 160 "scan.l"
1212 ++linenum; ECHO;
1213  YY_BREAK
1214 case 25:
1215 # line 163 "scan.l"
1216 ++linenum; BEGIN(INITIAL);
1217  YY_BREAK
1218 case 26:
1219 # line 164 "scan.l"
1221  YY_BREAK
1222 case 27:
1223 # line 165 "scan.l"
1225  YY_BREAK
1226 case 28:
1227 # line 166 "scan.l"
1228 ECHO;
1229  YY_BREAK
1230 case 29:
1231 # line 167 "scan.l"
1232 {
1233  ++linenum;
1234  ECHO;
1235  if ( indented_code )
1236  BEGIN(INITIAL);
1237  }
1238  YY_BREAK
1239 case 30:
1240 # line 175 "scan.l"
1241 /* separates name and definition */
1242  YY_BREAK
1243 case 31:
1244 # line 177 "scan.l"
1245 {
1246  (void) strcpy( (char *) nmdef, (char *) yytext );
1247 
1248  for ( i = strlen( (char *) nmdef ) - 1;
1249  i >= 0 &&
1250  (nmdef[i] == ' ' || nmdef[i] == '\t');
1251  --i )
1252  ;
1253 
1254  nmdef[i + 1] = '\0';
1255 
1256  ndinstal( nmstr, nmdef );
1257  didadef = true;
1258  }
1259  YY_BREAK
1260 case 32:
1261 # line 192 "scan.l"
1262 {
1263  if ( ! didadef )
1264  synerr( "incomplete name definition" );
1265  BEGIN(INITIAL);
1266  ++linenum;
1267  }
1268  YY_BREAK
1269 case 33:
1270 # line 199 "scan.l"
1272  YY_BREAK
1273 case 34:
1274 # line 202 "scan.l"
1275 ++linenum; BEGIN(INITIAL);
1276  YY_BREAK
1277 case 35:
1278 # line 203 "scan.l"
1279 
1280  YY_BREAK
1281 case 36:
1282 # line 204 "scan.l"
1283 {
1284  if ( all_upper( yytext ) )
1286  else
1287  synerr( "unrecognized %used/%unused construct" );
1288  }
1289  YY_BREAK
1290 case 37:
1291 # line 210 "scan.l"
1292 {
1293  if ( all_lower( yytext ) )
1295  else
1296  synerr( "unrecognized %used/%unused construct" );
1297  }
1298  YY_BREAK
1299 case 38:
1300 # line 216 "scan.l"
1301 synerr( "unrecognized %used/%unused construct" );
1302  YY_BREAK
1303 case 39:
1304 # line 219 "scan.l"
1305 ++linenum; BEGIN(INITIAL);
1306  YY_BREAK
1307 case 40:
1308 # line 220 "scan.l"
1309 ++num_xlations; new_xlation = true;
1310  YY_BREAK
1311 case 41:
1312 # line 221 "scan.l"
1313 synerr( "bad row in translation table" );
1314  YY_BREAK
1315 case 42:
1316 # line 222 "scan.l"
1317 /* ignore whitespace */
1318  YY_BREAK
1319 case 43:
1320 # line 224 "scan.l"
1321 {
1322  xlation[myesc( yytext )] =
1324  new_xlation = false;
1325  }
1326  YY_BREAK
1327 case 44:
1328 # line 229 "scan.l"
1329 {
1330  xlation[yytext[0]] =
1332  new_xlation = false;
1333  }
1334  YY_BREAK
1335 case 45:
1336 # line 235 "scan.l"
1337 ++linenum;
1338  YY_BREAK
1339 case 46:
1340 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1341 yy_c_buf_p = yy_cp -= 1;
1342 YY_DO_BEFORE_ACTION; /* set up yytext again */
1343 # line 238 "scan.l"
1344 {
1345  ++linenum;
1346  ACTION_ECHO;
1348  BEGIN(SECT2);
1349  }
1350  YY_BREAK
1351 case 47:
1352 # line 245 "scan.l"
1353 ++linenum; ACTION_ECHO;
1354  YY_BREAK
1356 # line 247 "scan.l"
1358  YY_BREAK
1359 case 49:
1360 # line 249 "scan.l"
1361 ++linenum; /* allow blank lines in section 2 */
1362  YY_BREAK
1363 case 50:
1364 # line 251 "scan.l"
1365 {
1366  indented_code = (yytext[0] != '%');
1367  doing_codeblock = true;
1368  bracelevel = 1;
1369 
1370  if ( indented_code )
1371  ACTION_ECHO;
1372 
1373  BEGIN(CODEBLOCK_2);
1374  }
1375  YY_BREAK
1376 case 51:
1377 # line 262 "scan.l"
1378 BEGIN(SC); return ( '<' );
1379  YY_BREAK
1380 case 52:
1381 # line 263 "scan.l"
1382 return ( '^' );
1383  YY_BREAK
1384 case 53:
1385 # line 264 "scan.l"
1386 BEGIN(QUOTE); return ( '"' );
1387  YY_BREAK
1388 case 54:
1389 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1390 yy_c_buf_p = yy_cp = yy_bp + 1;
1391 YY_DO_BEFORE_ACTION; /* set up yytext again */
1392 # line 265 "scan.l"
1393 BEGIN(NUM); return ( '{' );
1394  YY_BREAK
1395 case 55:
1396 # line 266 "scan.l"
1397 BEGIN(BRACEERROR);
1398  YY_BREAK
1399 case 56:
1400 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1401 yy_c_buf_p = yy_cp = yy_bp + 1;
1402 YY_DO_BEFORE_ACTION; /* set up yytext again */
1403 # line 267 "scan.l"
1404 return ( '$' );
1405  YY_BREAK
1406 case 57:
1407 # line 269 "scan.l"
1408 {
1409  bracelevel = 1;
1411  return ( '\n' );
1412  }
1413  YY_BREAK
1414 case 58:
1415 # line 274 "scan.l"
1416 continued_action = true; ++linenum; return ( '\n' );
1417  YY_BREAK
1418 case 59:
1419 # line 276 "scan.l"
1420 {
1421  /* this rule is separate from the one below because
1422  * otherwise we get variable trailing context, so
1423  * we can't build the scanner using -{f,F}
1424  */
1425  bracelevel = 0;
1426  continued_action = false;
1427  BEGIN(ACTION);
1428  return ( '\n' );
1429  }
1430  YY_BREAK
1431 case 60:
1432 # line 287 "scan.l"
1433 {
1434  bracelevel = 0;
1435  continued_action = false;
1436  BEGIN(ACTION);
1437  return ( '\n' );
1438  }
1439  YY_BREAK
1440 case 61:
1441 # line 294 "scan.l"
1442 ++linenum; return ( '\n' );
1443  YY_BREAK
1444 case 62:
1445 # line 296 "scan.l"
1446 return ( EOF_OP );
1447  YY_BREAK
1448 case 63:
1449 # line 298 "scan.l"
1450 {
1451  sectnum = 3;
1452  BEGIN(SECT3);
1453  return ( EOF ); /* to stop the parser */
1454  }
1455  YY_BREAK
1456 case 64:
1457 # line 304 "scan.l"
1458 {
1459  int cclval;
1460 
1461  (void) strcpy( nmstr, (char *) yytext );
1462 
1463  /* check to see if we've already encountered this ccl */
1464  if ( (cclval = ccllookup( (Char *) nmstr )) )
1465  {
1466  yylval = cclval;
1467  ++cclreuse;
1468  return ( PREVCCL );
1469  }
1470  else
1471  {
1472  /* we fudge a bit. We know that this ccl will
1473  * soon be numbered as lastccl + 1 by cclinit
1474  */
1475  cclinstal( (Char *) nmstr, lastccl + 1 );
1476 
1477  /* push back everything but the leading bracket
1478  * so the ccl can be rescanned
1479  */
1480  PUT_BACK_STRING((Char *) nmstr, 1);
1481 
1482  BEGIN(FIRSTCCL);
1483  return ( '[' );
1484  }
1485  }
1486  YY_BREAK
1487 case 65:
1488 # line 333 "scan.l"
1489 {
1490  Char *nmdefptr;
1491  Char *ndlookup();
1492 
1493  (void) strcpy( nmstr, (char *) yytext );
1494  nmstr[yyleng - 1] = '\0'; /* chop trailing brace */
1495 
1496  /* lookup from "nmstr + 1" to chop leading brace */
1497  if ( ! (nmdefptr = ndlookup( nmstr + 1 )) )
1498  synerr( "undefined {name}" );
1499 
1500  else
1501  { /* push back name surrounded by ()'s */
1502  unput(')');
1503  PUT_BACK_STRING(nmdefptr, 0);
1504  unput('(');
1505  }
1506  }
1507  YY_BREAK
1508 case 66:
1509 # line 352 "scan.l"
1510 return ( yytext[0] );
1511  YY_BREAK
1512 case 67:
1513 # line 353 "scan.l"
1514 RETURNCHAR;
1515  YY_BREAK
1516 case 68:
1517 # line 354 "scan.l"
1518 ++linenum; return ( '\n' );
1519  YY_BREAK
1520 case 69:
1521 # line 357 "scan.l"
1522 return ( ',' );
1523  YY_BREAK
1524 case 70:
1525 # line 358 "scan.l"
1526 BEGIN(SECT2); return ( '>' );
1527  YY_BREAK
1528 case 71:
1529 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1530 yy_c_buf_p = yy_cp = yy_bp + 1;
1531 YY_DO_BEFORE_ACTION; /* set up yytext again */
1532 # line 359 "scan.l"
1533 BEGIN(CARETISBOL); return ( '>' );
1534  YY_BREAK
1535 case 72:
1536 # line 360 "scan.l"
1537 RETURNNAME;
1538  YY_BREAK
1539 case 73:
1540 # line 361 "scan.l"
1541 synerr( "bad start condition name" );
1542  YY_BREAK
1543 case 74:
1544 # line 363 "scan.l"
1545 BEGIN(SECT2); return ( '^' );
1546  YY_BREAK
1547 case 75:
1548 # line 366 "scan.l"
1549 RETURNCHAR;
1550  YY_BREAK
1551 case 76:
1552 # line 367 "scan.l"
1553 BEGIN(SECT2); return ( '"' );
1554  YY_BREAK
1555 case 77:
1556 # line 369 "scan.l"
1557 {
1558  synerr( "missing quote" );
1559  BEGIN(SECT2);
1560  ++linenum;
1561  return ( '"' );
1562  }
1563  YY_BREAK
1564 case 78:
1565 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1566 yy_c_buf_p = yy_cp = yy_bp + 1;
1567 YY_DO_BEFORE_ACTION; /* set up yytext again */
1568 # line 377 "scan.l"
1569 BEGIN(CCL); return ( '^' );
1570  YY_BREAK
1571 case 79:
1572 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1573 yy_c_buf_p = yy_cp = yy_bp + 1;
1574 YY_DO_BEFORE_ACTION; /* set up yytext again */
1575 # line 378 "scan.l"
1576 return ( '^' );
1577  YY_BREAK
1578 case 80:
1579 # line 379 "scan.l"
1580 BEGIN(CCL); yylval = '-'; return ( CHAR );
1581  YY_BREAK
1582 case 81:
1583 # line 380 "scan.l"
1584 BEGIN(CCL); RETURNCHAR;
1585  YY_BREAK
1586 case 82:
1587 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1588 yy_c_buf_p = yy_cp = yy_bp + 1;
1589 YY_DO_BEFORE_ACTION; /* set up yytext again */
1590 # line 382 "scan.l"
1591 return ( '-' );
1592  YY_BREAK
1593 case 83:
1594 # line 383 "scan.l"
1595 RETURNCHAR;
1596  YY_BREAK
1597 case 84:
1598 # line 384 "scan.l"
1599 BEGIN(SECT2); return ( ']' );
1600  YY_BREAK
1601 case 85:
1602 # line 387 "scan.l"
1603 {
1604  yylval = myctoi( yytext );
1605  return ( NUMBER );
1606  }
1607  YY_BREAK
1608 case 86:
1609 # line 392 "scan.l"
1610 return ( ',' );
1611  YY_BREAK
1612 case 87:
1613 # line 393 "scan.l"
1614 BEGIN(SECT2); return ( '}' );
1615  YY_BREAK
1616 case 88:
1617 # line 395 "scan.l"
1618 {
1619  synerr( "bad character inside {}'s" );
1620  BEGIN(SECT2);
1621  return ( '}' );
1622  }
1623  YY_BREAK
1624 case 89:
1625 # line 401 "scan.l"
1626 {
1627  synerr( "missing }" );
1628  BEGIN(SECT2);
1629  ++linenum;
1630  return ( '}' );
1631  }
1632  YY_BREAK
1633 case 90:
1634 # line 409 "scan.l"
1635 synerr( "bad name in {}'s" ); BEGIN(SECT2);
1636  YY_BREAK
1637 case 91:
1638 # line 410 "scan.l"
1639 synerr( "missing }" ); ++linenum; BEGIN(SECT2);
1640  YY_BREAK
1641 case 92:
1642 # line 413 "scan.l"
1643 bracelevel = 0;
1644  YY_BREAK
1645 case 93:
1646 # line 414 "scan.l"
1647 {
1648  ACTION_ECHO;
1649  CHECK_REJECT(yytext);
1650  }
1651  YY_BREAK
1652 case 94:
1653 # line 418 "scan.l"
1654 {
1655  ACTION_ECHO;
1656  CHECK_YYMORE(yytext);
1657  }
1658  YY_BREAK
1659 case 95:
1660 # line 422 "scan.l"
1661 ACTION_ECHO;
1662  YY_BREAK
1663 case 96:
1664 # line 423 "scan.l"
1665 {
1666  ++linenum;
1667  ACTION_ECHO;
1668  if ( bracelevel == 0 ||
1670  {
1671  if ( ! doing_codeblock )
1672  fputs( "\tYY_BREAK\n", temp_action_file );
1673 
1674  doing_codeblock = false;
1675  BEGIN(SECT2);
1676  }
1677  }
1678  YY_BREAK
1679  /* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
1680 case 97:
1681 # line 439 "scan.l"
1682 ACTION_ECHO; ++bracelevel;
1683  YY_BREAK
1684 case 98:
1685 # line 440 "scan.l"
1686 ACTION_ECHO; --bracelevel;
1687  YY_BREAK
1688 case 99:
1689 # line 441 "scan.l"
1690 ACTION_ECHO;
1691  YY_BREAK
1692 case 100:
1693 # line 442 "scan.l"
1694 ACTION_ECHO;
1695  YY_BREAK
1696 case 101:
1697 # line 443 "scan.l"
1699  YY_BREAK
1700 case 102:
1701 # line 444 "scan.l"
1702 ACTION_ECHO; /* character constant */
1703  YY_BREAK
1704 case 103:
1705 # line 445 "scan.l"
1707  YY_BREAK
1708 case 104:
1709 # line 446 "scan.l"
1710 {
1711  ++linenum;
1712  ACTION_ECHO;
1713  if ( bracelevel == 0 )
1714  {
1715  fputs( "\tYY_BREAK\n", temp_action_file );
1716  BEGIN(SECT2);
1717  }
1718  }
1719  YY_BREAK
1720 case 105:
1721 # line 455 "scan.l"
1722 ACTION_ECHO;
1723  YY_BREAK
1724 case 106:
1725 # line 457 "scan.l"
1727  YY_BREAK
1728 case 107:
1729 # line 458 "scan.l"
1730 ACTION_ECHO;
1731  YY_BREAK
1732 case 108:
1733 # line 459 "scan.l"
1734 ACTION_ECHO;
1735  YY_BREAK
1736 case 109:
1737 # line 460 "scan.l"
1738 ++linenum; ACTION_ECHO;
1739  YY_BREAK
1740 case 110:
1741 # line 461 "scan.l"
1742 ACTION_ECHO;
1743  YY_BREAK
1744 case 111:
1745 # line 463 "scan.l"
1746 ACTION_ECHO;
1747  YY_BREAK
1748 case 112:
1749 # line 464 "scan.l"
1750 ACTION_ECHO;
1751  YY_BREAK
1752 case 113:
1753 # line 465 "scan.l"
1754 ++linenum; ACTION_ECHO;
1755  YY_BREAK
1756 case 114:
1757 # line 466 "scan.l"
1759  YY_BREAK
1760 case 115:
1761 # line 467 "scan.l"
1762 ACTION_ECHO;
1763  YY_BREAK
1764 case YY_STATE_EOF(ACTION):
1765 case YY_STATE_EOF(ACTION_COMMENT):
1766 case YY_STATE_EOF(ACTION_STRING):
1767 # line 469 "scan.l"
1768 {
1769  synerr( "EOF encountered inside an action" );
1770  yyterminate();
1771  }
1772  YY_BREAK
1773 case 117:
1774 # line 475 "scan.l"
1775 {
1776  yylval = myesc( yytext );
1777  return ( CHAR );
1778  }
1779  YY_BREAK
1780 case 118:
1781 # line 480 "scan.l"
1782 {
1783  yylval = myesc( yytext );
1784  BEGIN(CCL);
1785  return ( CHAR );
1786  }
1787  YY_BREAK
1788 case 119:
1789 # line 487 "scan.l"
1790 ECHO;
1791  YY_BREAK
1792 case 120:
1793 # line 488 "scan.l"
1794 ECHO;
1795  YY_BREAK
1796  case YY_STATE_EOF(INITIAL):
1797  case YY_STATE_EOF(SECT2):
1798  case YY_STATE_EOF(SECT3):
1799  case YY_STATE_EOF(CODEBLOCK):
1800  case YY_STATE_EOF(PICKUPDEF):
1801  case YY_STATE_EOF(SC):
1802  case YY_STATE_EOF(CARETISBOL):
1803  case YY_STATE_EOF(NUM):
1804  case YY_STATE_EOF(QUOTE):
1805  case YY_STATE_EOF(FIRSTCCL):
1806  case YY_STATE_EOF(CCL):
1807  case YY_STATE_EOF(RECOVER):
1808  case YY_STATE_EOF(BRACEERROR):
1809  case YY_STATE_EOF(C_COMMENT):
1810  case YY_STATE_EOF(PERCENT_BRACE_ACTION):
1811  case YY_STATE_EOF(USED_LIST):
1812  case YY_STATE_EOF(CODEBLOCK_2):
1813  case YY_STATE_EOF(XLATION):
1814  yyterminate();
1815 
1816  case YY_END_OF_BUFFER:
1817  {
1818  /* amount of text matched not including the EOB char */
1819  int yy_amount_of_matched_text = yy_cp - yytext - 1;
1820 
1821  /* undo the effects of YY_DO_BEFORE_ACTION */
1822  *yy_cp = yy_hold_char;
1823 
1824  /* note that here we test for yy_c_buf_p "<=" to the position
1825  * of the first EOB in the buffer, since yy_c_buf_p will
1826  * already have been incremented past the NUL character
1827  * (since all states make transitions on EOB to the end-
1828  * of-buffer state). Contrast this with the test in yyinput().
1829  */
1830  if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1831  /* this was really a NUL */
1832  {
1833  yy_state_type yy_next_state;
1834 
1835  yy_c_buf_p = yytext + yy_amount_of_matched_text;
1836 
1837  yy_current_state = yy_get_previous_state();
1838 
1839  /* okay, we're now positioned to make the
1840  * NUL transition. We couldn't have
1841  * yy_get_previous_state() go ahead and do it
1842  * for us because it doesn't know how to deal
1843  * with the possibility of jamming (and we
1844  * don't want to build jamming into it because
1845  * then it will run more slowly)
1846  */
1847 
1848  yy_next_state = yy_try_NUL_trans( yy_current_state );
1849 
1850  yy_bp = yytext + YY_MORE_ADJ;
1851 
1852  if ( yy_next_state )
1853  {
1854  /* consume the NUL */
1855  yy_cp = ++yy_c_buf_p;
1856  yy_current_state = yy_next_state;
1857  goto yy_match;
1858  }
1859 
1860  else
1861  {
1862  goto yy_find_action;
1863  }
1864  }
1865 
1866  else switch ( yy_get_next_buffer() )
1867  {
1868  case EOB_ACT_END_OF_FILE:
1869  {
1870  yy_did_buffer_switch_on_eof = 0;
1871 
1872  if ( yywrap() )
1873  {
1874  /* note: because we've taken care in
1875  * yy_get_next_buffer() to have set up yytext,
1876  * we can now set up yy_c_buf_p so that if some
1877  * total hoser (like flex itself) wants
1878  * to call the scanner after we return the
1879  * YY_NULL, it'll still work - another YY_NULL
1880  * will get returned.
1881  */
1882  yy_c_buf_p = yytext + YY_MORE_ADJ;
1883 
1884  yy_act = YY_STATE_EOF((yy_start - 1) / 2);
1885  goto do_action;
1886  }
1887 
1888  else
1889  {
1890  if ( ! yy_did_buffer_switch_on_eof )
1891  YY_NEW_FILE;
1892  }
1893  }
1894  break;
1895 
1896  case EOB_ACT_CONTINUE_SCAN:
1897  yy_c_buf_p = yytext + yy_amount_of_matched_text;
1898 
1899  yy_current_state = yy_get_previous_state();
1900 
1901  yy_cp = yy_c_buf_p;
1902  yy_bp = yytext + YY_MORE_ADJ;
1903  goto yy_match;
1904 
1905  case EOB_ACT_LAST_MATCH:
1906  yy_c_buf_p =
1907  &yy_current_buffer->yy_ch_buf[yy_n_chars];
1908 
1909  yy_current_state = yy_get_previous_state();
1910 
1911  yy_cp = yy_c_buf_p;
1912  yy_bp = yytext + YY_MORE_ADJ;
1913  goto yy_find_action;
1914  }
1915  break;
1916  }
1917 
1918  default:
1919 #ifdef FLEX_DEBUG
1920  printf( "action # %d\n", yy_act );
1921 #endif
1923  "fatal flex scanner internal error--no action found" );
1924  }
1925  }
Char nmdef[MAXLINE]
Definition: scan.c:969
int yyleng
Definition: scan.c:288
#define yyterminate()
Definition: scan.c:63
#define ACTION_ECHO
Definition: scan.c:160
int checking_used
Definition: scan.c:967
#define INITIAL
Definition: scan.c:129
#define YY_TRAILING_MASK
Definition: scan.c:918
Char * ndlookup(char *nd)
Definition: sym.c:219
int continued_action
Definition: flex.c:69
#define PUT_BACK_STRING(str, start)
Definition: scan.c:175
#define MARK_END_OF_PROLOG
Definition: scan.c:161
int yy_act
Definition: scan.c:963
#define SECT3
Definition: scan.c:188
int i
Definition: scan.c:967
int doing_codeblock
Definition: scan.c:968
int * xlation
Definition: flex.c:85
#define YY_FATAL_ERROR(msg)
Definition: scan.c:81
void cclinstal(Char[], int)
Char myesc()
#define YY_STATE_EOF(state)
Definition: scan.c:100
#define printf
Definition: epicsStdio.h:41
#define SECT2PROLOG
Definition: scan.c:187
int linenum
Definition: flex.c:71
char nmstr[MAXLINE]
Definition: flex.c:99
#define CHECK_REJECT(str)
Definition: scan.c:179
#define CODEBLOCK_2
Definition: scan.c:205
#define YY_CHAR
Definition: scan.c:127
#define EOB_ACT_END_OF_FILE
Definition: scan.c:220
int csize
Definition: flex.c:68
#define QUOTE
Definition: scan.c:194
#define YY_DO_BEFORE_ACTION
Definition: scan.c:212
int cclreuse
Definition: flex.c:96
#define RETURNNAME
Definition: scan.c:171
void synerr(char[])
#define yywrap()
Definition: scan.c:91
#define ACTION
Definition: scan.c:197
#define EOB_ACT_CONTINUE_SCAN
Definition: scan.c:219
#define CODEBLOCK
Definition: scan.c:189
#define CCL
Definition: scan.c:196
#define REALLY_USED
Definition: flexdef.h:340
char * line
Definition: reader.c:25
#define RECOVER
Definition: scan.c:198
YY_CHAR * yy_cp
Definition: scan.c:962
#define PICKUPDEF
Definition: scan.c:190
#define Char
Definition: flexdef.h:59
#define FIRSTCCL
Definition: scan.c:195
int all_upper(Char *)
Definition: misc.c:125
#define USED_LIST
Definition: scan.c:204
YY_CHAR * yytext
Definition: scan.c:287
#define EOB_ACT_LAST_MATCH
Definition: scan.c:221
#define unput(c)
Definition: scan.c:234
#define XLATION
Definition: scan.c:206
#define ACTION_STRING
Definition: scan.c:202
#define stdout
Definition: epicsStdio.h:30
#define SC
Definition: scan.c:191
void line_directive_out(FILE *)
Definition: misc.c:479
YY_CHAR * yy_bp
Definition: scan.c:962
void flexfatal(char[])
#define RETURNCHAR
Definition: scan.c:167
int myctoi(Char[])
#define REALLY_NOT_USED
Definition: flexdef.h:341
#define CARETISBOL
Definition: scan.c:192
int yy_state_type
Definition: scan.c:293
FILE * temp_action_file
Definition: flex.c:103
#define BEGIN
Definition: scan.c:97
int indented_code
Definition: scan.c:967
int ccllookup(Char[])
#define CHECK_YYMORE(str)
Definition: scan.c:183
void pinpoint_message(char[])
#define YY_MORE_ADJ
Definition: scan.c:931
#define BRACEERROR
Definition: scan.c:199
void ndinstal(char[], Char[])
#define stderr
Definition: epicsStdio.h:32
#define YY_NEW_FILE
Definition: scan.c:103
#define YY_END_OF_BUFFER
Definition: scan.c:292
int num_xlations
Definition: flex.c:86
int reject_really_used
Definition: flex.c:70
int new_xlation
Definition: scan.c:967
int yymore_really_used
Definition: flex.c:70
#define YY_TRAILING_HEAD_MASK
Definition: scan.c:919
int lastccl
Definition: flex.c:96
#define PERCENT_BRACE_ACTION
Definition: scan.c:203
#define ECHO
Definition: scan.c:49
#define YY_BREAK
Definition: scan.c:117
int all_lower(Char *)
Definition: misc.c:104
int sectnum
Definition: flex.c:100
#define C_COMMENT
Definition: scan.c:200
#define SECT2
Definition: scan.c:186
#define NUM
Definition: scan.c:193
YY_CHAR * yy_ch_buf
Definition: scan.c:241
#define ACTION_COMMENT
Definition: scan.c:201
#define YY_USER_ACTION
Definition: scan.c:276
YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

Definition at line 2156 of file scan.c.

2157  {
2158  YY_BUFFER_STATE b;
2159 
2160  b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
2161 
2162  if ( ! b )
2163  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2164 
2165  b->yy_buf_size = size;
2166 
2167  /* yy_ch_buf has to be 2 characters longer than the size given because
2168  * we need to put in 2 end-of-buffer characters.
2169  */
2170  b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
2171 
2172  if ( ! b->yy_ch_buf )
2173  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2174 
2175  yy_init_buffer( b, file );
2176 
2177  return ( b );
2178  }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: scan.c:125
#define YY_FATAL_ERROR(msg)
Definition: scan.c:81
int yy_buf_size
Definition: scan.c:245
#define YY_CHAR
Definition: scan.c:127
void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: scan.c:2191
YY_CHAR * yy_ch_buf
Definition: scan.c:241
void yy_delete_buffer ( YY_BUFFER_STATE  b)

Definition at line 2181 of file scan.c.

2182  {
2183  if ( b == yy_current_buffer )
2184  yy_current_buffer = (YY_BUFFER_STATE) 0;
2185 
2186  free( (char *) b->yy_ch_buf );
2187  free( (char *) b );
2188  }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: scan.c:125
YY_CHAR * yy_ch_buf
Definition: scan.c:241
void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)

Definition at line 2191 of file scan.c.

2192  {
2193  b->yy_input_file = file;
2194 
2195  /* we put in the '\n' and start reading from [1] so that an
2196  * initial match-at-newline will be true.
2197  */
2198 
2199  b->yy_ch_buf[0] = '\n';
2200  b->yy_n_chars = 1;
2201 
2202  /* we always need two end-of-buffer characters. The first causes
2203  * a transition to the end-of-buffer state. The second causes
2204  * a jam in that state.
2205  */
2208 
2209  b->yy_buf_pos = &b->yy_ch_buf[1];
2210 
2212  }
#define YY_END_OF_BUFFER_CHAR
Definition: scan.c:119
int yy_n_chars
Definition: scan.c:248
#define EOF_NOT_SEEN
Definition: scan.c:251
YY_CHAR * yy_buf_pos
Definition: scan.c:242
int yy_eof_status
Definition: scan.c:250
FILE * yy_input_file
Definition: scan.c:239
YY_CHAR * yy_ch_buf
Definition: scan.c:241
void yy_load_buffer_state ( void  )

Definition at line 2147 of file scan.c.

2148  {
2149  yy_n_chars = yy_current_buffer->yy_n_chars;
2150  yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2151  yyin = yy_current_buffer->yy_input_file;
2152  yy_hold_char = *yy_c_buf_p;
2153  }
int yy_n_chars
Definition: scan.c:248
YY_CHAR * yy_buf_pos
Definition: scan.c:242
FILE * yyin
Definition: scan.c:290
YY_CHAR * yytext
Definition: scan.c:287
FILE * yy_input_file
Definition: scan.c:239
void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Definition at line 2122 of file scan.c.

2123  {
2124  if ( yy_current_buffer == new_buffer )
2125  return;
2126 
2127  if ( yy_current_buffer )
2128  {
2129  /* flush out information for old buffer */
2130  *yy_c_buf_p = yy_hold_char;
2131  yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2132  yy_current_buffer->yy_n_chars = yy_n_chars;
2133  }
2134 
2135  yy_current_buffer = new_buffer;
2137 
2138  /* we don't actually know whether we did this switch during
2139  * EOF (yywrap()) processing, but the only time this flag
2140  * is looked at is after yywrap() is called, so it's safe
2141  * to go ahead and always set it.
2142  */
2143  yy_did_buffer_switch_on_eof = 1;
2144  }
int yy_n_chars
Definition: scan.c:248
YY_CHAR * yy_buf_pos
Definition: scan.c:242
void yy_load_buffer_state(void)
Definition: scan.c:2147
void yyrestart ( FILE *  input_file)

Definition at line 2115 of file scan.c.

2116  {
2117  yy_init_buffer( yy_current_buffer, input_file );
2119  }
void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: scan.c:2191
void yy_load_buffer_state(void)
Definition: scan.c:2147
FILE * input_file
Definition: antelope.c:46

Variable Documentation

int checking_used = false

Definition at line 967 of file scan.c.

int doing_codeblock = false

Definition at line 968 of file scan.c.

int i

Definition at line 967 of file scan.c.

int indented_code = false

Definition at line 967 of file scan.c.

int new_xlation = false

Definition at line 967 of file scan.c.

Char nmdef[MAXLINE]

Definition at line 969 of file scan.c.

int yy_act

Definition at line 963 of file scan.c.

YY_CHAR * yy_bp

Definition at line 962 of file scan.c.

YY_CHAR* yy_cp

Definition at line 962 of file scan.c.

YY_DECL
Initial value:
{
yy_state_type yy_current_state
int yy_state_type
Definition: scan.c:293

Definition at line 960 of file scan.c.

FILE* yyin = (FILE *) 0

Definition at line 290 of file scan.c.

int yyleng

Definition at line 288 of file scan.c.

FILE * yyout = (FILE *) 0

Definition at line 290 of file scan.c.

YY_CHAR * yytext

Definition at line 287 of file scan.c.