Layout adjustments, new preface.
4 #include "atccl_parser.tab.h"
7 char line_buffer[1024];
18 id {letter}({letter}|{digit}|_)*
19 real {digit}+\.{digit}+
27 route { return ROUTE; }
29 equip { return EQUIP; }
33 travel_type { return TRAVEL_TYPE; }
34 time_separation { return TIMESEP; }
35 time_sep { return TIMESEP; }
37 constraint { return CONSTRNT; }
38 pattern { return PATTERN; }
39 flowpoint { return FLOWP; }
46 greater { return GREATER; }
52 until { return UNTIL; }
55 {digit}+ { yylval.integer = atoi(yytext); return INTEGER; }
56 {real} { yylval.real = atof(yytext); return REAL; }
57 {id} { yylval.string = installId(); return STRING; }
61 \n.* { strcpy(line_buffer, yytext+1); line_no++; yyless(1); }
62 . { return yytext[0]; }
67 static char* no_string = "$$$NO STRING$$$";
69 if (id_table_no < MAX_ID_TABLE_NO)
72 id_table[id_table_no++] = id;
76 yyerror("Maximum number of string literals used");