Changeset 250d2e in git
- Timestamp:
- May 2, 2016, 5:40:49 PM (8 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4bd32dfef92ec9f5ed8dceee82d14318ae147107')
- Children:
- 4770e3095a5add3bd90227308385a2d9bc5242f9
- Parents:
- b93a53cb567360049dc5de6b0ee72c01aa7d1056
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/libparse.cc
rb93a53 r250d2e 1478 1478 ++yy_cp; 1479 1479 } 1480 while ( yy_base[yy_current_state] != 2200 ); 1480 while ( yy_current_state != 484 ); 1481 yy_cp = yy_last_accepting_cpos; 1482 yy_current_state = yy_last_accepting_state; 1481 1483 1482 1484 yy_find_action: 1483 1485 yy_act = yy_accept[yy_current_state]; 1484 if ( yy_act == 0 )1485 { /* have to back up */1486 yy_cp = yy_last_accepting_cpos;1487 yy_current_state = yy_last_accepting_state;1488 yy_act = yy_accept[yy_current_state];1489 }1490 1486 1491 1487 YY_DO_BEFORE_ACTION; … … 2521 2517 else 2522 2518 { 2523 yy_cp = yy_c_buf_p; 2519 yy_cp = yy_last_accepting_cpos; 2520 yy_current_state = yy_last_accepting_state; 2524 2521 goto yy_find_action; 2525 2522 } -
Singular/scanner.cc
rb93a53 r250d2e 556 556 #define YY_RESTORE_YY_MORE_OFFSET 557 557 char *yytext; 558 #line 1 " <stdin>"558 #line 1 "scanner.l" 559 559 #define INITIAL 0 560 #line 2 " <stdin>"560 #line 2 "scanner.l" 561 561 /**************************************** 562 562 * Computer Algebra System SINGULAR * … … 825 825 register int yy_act; 826 826 827 #line 121 " <stdin>"827 #line 121 "scanner.l" 828 828 829 829 … … 918 918 case 1: 919 919 YY_RULE_SETUP 920 #line 122 " <stdin>"920 #line 122 "scanner.l" 921 921 { } 922 922 YY_BREAK 923 923 case 2: 924 924 YY_RULE_SETUP 925 #line 123 " <stdin>"925 #line 123 "scanner.l" 926 926 { } 927 927 YY_BREAK 928 928 case 3: 929 929 YY_RULE_SETUP 930 #line 124 " <stdin>"930 #line 124 "scanner.l" 931 931 { 932 932 yy_noeof=noeof_comment; … … 950 950 case 4: 951 951 YY_RULE_SETUP 952 #line 142 " <stdin>"952 #line 142 "scanner.l" 953 953 { prompt_char='.'; 954 954 blocknest = 0; yy_noeof = noeof_brace; BEGIN(brace); … … 957 957 case 5: 958 958 YY_RULE_SETUP 959 #line 145 " <stdin>"959 #line 145 "scanner.l" 960 960 { prompt_char='.'; 961 961 blocknest = 0; yy_noeof = noeof_brace; BEGIN(brace); … … 964 964 case 6: 965 965 YY_RULE_SETUP 966 #line 149 " <stdin>"966 #line 149 "scanner.l" 967 967 { yy_noeof = noeof_asstring; 968 968 BEGIN(asstring); … … 972 972 case 7: 973 973 YY_RULE_SETUP 974 #line 154 " <stdin>"974 #line 154 "scanner.l" 975 975 { yy_noeof = noeof_asstring; 976 976 BEGIN(asstring); … … 980 980 case 8: 981 981 YY_RULE_SETUP 982 #line 159 " <stdin>"982 #line 159 "scanner.l" 983 983 { 984 984 char c; char *cp; … … 992 992 case 9: 993 993 YY_RULE_SETUP 994 #line 167 " <stdin>"994 #line 167 "scanner.l" 995 995 { 996 996 lvalp->name = omStrDup((char *)yytext); … … 1001 1001 case 10: 1002 1002 YY_RULE_SETUP 1003 #line 172 " <stdin>"1003 #line 172 "scanner.l" 1004 1004 { 1005 1005 yy_noeof = 0; BEGIN(INITIAL); … … 1009 1009 case 11: 1010 1010 YY_RULE_SETUP 1011 #line 177 " <stdin>"1011 #line 177 "scanner.l" 1012 1012 { 1013 1013 yy_noeof = noeof_string; … … 1018 1018 case 12: 1019 1019 YY_RULE_SETUP 1020 #line 182 " <stdin>"1020 #line 182 "scanner.l" 1021 1021 { if (blocknest++) yymore(); } 1022 1022 YY_BREAK 1023 1023 case 13: 1024 1024 YY_RULE_SETUP 1025 #line 183 " <stdin>"1025 #line 183 "scanner.l" 1026 1026 { if (blocknest) yymore(); } 1027 1027 YY_BREAK 1028 1028 case 14: 1029 1029 YY_RULE_SETUP 1030 #line 184 " <stdin>"1030 #line 184 "scanner.l" 1031 1031 { 1032 1032 if (blocknest) … … 1039 1039 case 15: 1040 1040 YY_RULE_SETUP 1041 #line 191 " <stdin>"1041 #line 191 "scanner.l" 1042 1042 { 1043 1043 if (--blocknest <= 0) … … 1053 1053 case 16: 1054 1054 YY_RULE_SETUP 1055 #line 201 " <stdin>"1055 #line 201 "scanner.l" 1056 1056 { 1057 1057 yy_noeof = noeof_brace; … … 1062 1062 case 17: 1063 1063 YY_RULE_SETUP 1064 #line 206 " <stdin>"1064 #line 206 "scanner.l" 1065 1065 { yymore(); } 1066 1066 YY_BREAK 1067 1067 case 18: 1068 1068 YY_RULE_SETUP 1069 #line 207 " <stdin>"1069 #line 207 "scanner.l" 1070 1070 { return '('; } 1071 1071 YY_BREAK 1072 1072 case 19: 1073 1073 YY_RULE_SETUP 1074 #line 208 " <stdin>"1074 #line 208 "scanner.l" 1075 1075 { return ','; } 1076 1076 YY_BREAK 1077 1077 case 20: 1078 1078 YY_RULE_SETUP 1079 #line 209 " <stdin>"1079 #line 209 "scanner.l" 1080 1080 { ; } 1081 1081 YY_BREAK 1082 1082 case 21: 1083 1083 YY_RULE_SETUP 1084 #line 210 " <stdin>"1084 #line 210 "scanner.l" 1085 1085 { 1086 1086 lvalp->name = omStrDup((char *)yytext); … … 1090 1090 case 22: 1091 1091 YY_RULE_SETUP 1092 #line 214 " <stdin>"1092 #line 214 "scanner.l" 1093 1093 { 1094 1094 lvalp->name = omStrDup((char *)yytext); … … 1098 1098 case 23: 1099 1099 YY_RULE_SETUP 1100 #line 218 " <stdin>"1100 #line 218 "scanner.l" 1101 1101 { 1102 1102 yy_noeof = 0; BEGIN(INITIAL); … … 1106 1106 case 24: 1107 1107 YY_RULE_SETUP 1108 #line 223 " <stdin>"1108 #line 223 "scanner.l" 1109 1109 { 1110 1110 yy_blocklineno = yylineno; … … 1116 1116 case 25: 1117 1117 YY_RULE_SETUP 1118 #line 229 " <stdin>"1118 #line 229 "scanner.l" 1119 1119 { 1120 1120 yy_noeof = noeof_string; … … 1125 1125 case 26: 1126 1126 YY_RULE_SETUP 1127 #line 234 " <stdin>"1127 #line 234 "scanner.l" 1128 1128 { yymore(); } 1129 1129 YY_BREAK 1130 1130 case 27: 1131 1131 YY_RULE_SETUP 1132 #line 235 " <stdin>"1132 #line 235 "scanner.l" 1133 1133 { yymore(); } 1134 1134 YY_BREAK 1135 1135 case 28: 1136 1136 YY_RULE_SETUP 1137 #line 236 " <stdin>"1137 #line 236 "scanner.l" 1138 1138 { yymore(); } 1139 1139 YY_BREAK 1140 1140 case 29: 1141 1141 YY_RULE_SETUP 1142 #line 237 " <stdin>"1142 #line 237 "scanner.l" 1143 1143 { 1144 1144 yy_noeof = noeof_block; … … 1149 1149 case 30: 1150 1150 YY_RULE_SETUP 1151 #line 242 " <stdin>"1151 #line 242 "scanner.l" 1152 1152 { yymore(); } 1153 1153 YY_BREAK 1154 1154 case 31: 1155 1155 YY_RULE_SETUP 1156 #line 243 " <stdin>"1156 #line 243 "scanner.l" 1157 1157 { yymore(); } 1158 1158 YY_BREAK 1159 1159 case 32: 1160 1160 YY_RULE_SETUP 1161 #line 244 " <stdin>"1161 #line 244 "scanner.l" 1162 1162 { blocknest++; yymore(); } 1163 1163 YY_BREAK 1164 1164 case 33: 1165 1165 YY_RULE_SETUP 1166 #line 245 " <stdin>"1166 #line 245 "scanner.l" 1167 1167 { 1168 1168 if (--blocknest <= 0) … … 1178 1178 case 34: 1179 1179 YY_RULE_SETUP 1180 #line 255 " <stdin>"1180 #line 255 "scanner.l" 1181 1181 { BEGIN(string); yy_noeof = noeof_string;} 1182 1182 YY_BREAK 1183 1183 case 35: 1184 1184 YY_RULE_SETUP 1185 #line 256 " <stdin>"1185 #line 256 "scanner.l" 1186 1186 { return SYS_BREAK; } 1187 1187 YY_BREAK 1188 1188 case 36: 1189 1189 YY_RULE_SETUP 1190 #line 257 " <stdin>"1190 #line 257 "scanner.l" 1191 1191 { yymore(); } 1192 1192 YY_BREAK 1193 1193 case 37: 1194 1194 YY_RULE_SETUP 1195 #line 258 " <stdin>"1195 #line 258 "scanner.l" 1196 1196 { yymore(); } 1197 1197 YY_BREAK 1198 1198 case 38: 1199 1199 YY_RULE_SETUP 1200 #line 259 " <stdin>"1200 #line 259 "scanner.l" 1201 1201 { yymore(); } 1202 1202 YY_BREAK 1203 1203 case 39: 1204 1204 YY_RULE_SETUP 1205 #line 260 " <stdin>"1205 #line 260 "scanner.l" 1206 1206 { 1207 1207 char * s; … … 1220 1220 case 40: 1221 1221 YY_RULE_SETUP 1222 #line 274 " <stdin>"1222 #line 274 "scanner.l" 1223 1223 /* skip whitespace */ 1224 1224 YY_BREAK 1225 1225 case 41: 1226 1226 YY_RULE_SETUP 1227 #line 275 " <stdin>"1227 #line 275 "scanner.l" 1228 1228 { return DOTDOT; } 1229 1229 YY_BREAK 1230 1230 case 42: 1231 1231 YY_RULE_SETUP 1232 #line 276 " <stdin>"1232 #line 276 "scanner.l" 1233 1233 { return COLONCOLON; } 1234 1234 YY_BREAK 1235 1235 case 43: 1236 1236 YY_RULE_SETUP 1237 #line 277 " <stdin>"1237 #line 277 "scanner.l" 1238 1238 { return MINUSMINUS; } 1239 1239 YY_BREAK 1240 1240 case 44: 1241 1241 YY_RULE_SETUP 1242 #line 278 " <stdin>"1242 #line 278 "scanner.l" 1243 1243 { return PLUSPLUS ; } 1244 1244 YY_BREAK 1245 1245 case 45: 1246 1246 YY_RULE_SETUP 1247 #line 279 " <stdin>"1247 #line 279 "scanner.l" 1248 1248 { return EQUAL_EQUAL; } 1249 1249 YY_BREAK 1250 1250 case 46: 1251 1251 YY_RULE_SETUP 1252 #line 280 " <stdin>"1252 #line 280 "scanner.l" 1253 1253 { lvalp->i='&'; return LOGIC_OP; } 1254 1254 YY_BREAK 1255 1255 case 47: 1256 1256 YY_RULE_SETUP 1257 #line 281 " <stdin>"1257 #line 281 "scanner.l" 1258 1258 { lvalp->i='|'; return LOGIC_OP; } 1259 1259 YY_BREAK 1260 1260 case 48: 1261 1261 YY_RULE_SETUP 1262 #line 282 " <stdin>"1262 #line 282 "scanner.l" 1263 1263 { lvalp->i=LE; return COMP_OP; } 1264 1264 YY_BREAK 1265 1265 case 49: 1266 1266 YY_RULE_SETUP 1267 #line 283 " <stdin>"1267 #line 283 "scanner.l" 1268 1268 { lvalp->i=GE; return COMP_OP; } 1269 1269 YY_BREAK 1270 1270 case 50: 1271 1271 YY_RULE_SETUP 1272 #line 284 " <stdin>"1272 #line 284 "scanner.l" 1273 1273 { return NOT; } 1274 1274 YY_BREAK 1275 1275 case 51: 1276 1276 YY_RULE_SETUP 1277 #line 285 " <stdin>"1277 #line 285 "scanner.l" 1278 1278 { return NOTEQUAL; } 1279 1279 YY_BREAK 1280 1280 case 52: 1281 1281 YY_RULE_SETUP 1282 #line 286 " <stdin>"1282 #line 286 "scanner.l" 1283 1283 { return NOTEQUAL; } 1284 1284 YY_BREAK 1285 1285 case 53: 1286 1286 YY_RULE_SETUP 1287 #line 287 " <stdin>"1287 #line 287 "scanner.l" 1288 1288 { return '^'; } 1289 1289 YY_BREAK 1290 1290 case 54: 1291 1291 YY_RULE_SETUP 1292 #line 288 " <stdin>"1292 #line 288 "scanner.l" 1293 1293 { return ARROW; } 1294 1294 YY_BREAK 1295 1295 case 55: 1296 1296 YY_RULE_SETUP 1297 #line 289 " <stdin>"1297 #line 289 "scanner.l" 1298 1298 { return '\\'; } 1299 1299 YY_BREAK 1300 1300 case 56: 1301 1301 YY_RULE_SETUP 1302 #line 290 " <stdin>"1302 #line 290 "scanner.l" 1303 1303 { 1304 1304 lvalp->name = omStrDup("\n"); … … 1308 1308 case 57: 1309 1309 YY_RULE_SETUP 1310 #line 294 " <stdin>"1310 #line 294 "scanner.l" 1311 1311 { 1312 1312 lvalp->name = (char *)yytext; … … 1316 1316 case 58: 1317 1317 YY_RULE_SETUP 1318 #line 298 " <stdin>"1318 #line 298 "scanner.l" 1319 1319 { 1320 1320 lvalp->name = (char *)yytext; … … 1324 1324 case 59: 1325 1325 YY_RULE_SETUP 1326 #line 302 " <stdin>"1326 #line 302 "scanner.l" 1327 1327 { 1328 1328 m2_end(-1); … … 1331 1331 case 60: 1332 1332 YY_RULE_SETUP 1333 #line 305 " <stdin>"1333 #line 305 "scanner.l" 1334 1334 { 1335 1335 #ifdef MM_STAT … … 1346 1346 case 61: 1347 1347 YY_RULE_SETUP 1348 #line 317 " <stdin>"1348 #line 317 "scanner.l" 1349 1349 { 1350 1350 lvalp->name = (char *)yytext; … … 1354 1354 case 62: 1355 1355 YY_RULE_SETUP 1356 #line 321 " <stdin>"1356 #line 321 "scanner.l" 1357 1357 { 1358 1358 lvalp->name = (char *)yytext; … … 1365 1365 YY_DO_BEFORE_ACTION; /* set up yytext again */ 1366 1366 YY_RULE_SETUP 1367 #line 325 " <stdin>"1367 #line 325 "scanner.l" 1368 1368 { 1369 1369 lvalp->name = (char *)yytext; … … 1373 1373 case 64: 1374 1374 YY_RULE_SETUP 1375 #line 330 " <stdin>"1375 #line 330 "scanner.l" 1376 1376 { 1377 1377 /* {name} */ … … 1392 1392 case 65: 1393 1393 YY_RULE_SETUP 1394 #line 346 " <stdin>"1394 #line 346 "scanner.l" 1395 1395 { 1396 1396 /*if (*yytext == '\n') REJECT;*/ … … 1417 1417 case 66: 1418 1418 YY_RULE_SETUP 1419 #line 367 " <stdin>"1419 #line 367 "scanner.l" 1420 1420 YY_FATAL_ERROR( "flex scanner jammed" ); 1421 1421 YY_BREAK … … 2314 2314 } 2315 2315 #endif 2316 #line 367 " <stdin>"2316 #line 367 "scanner.l" 2317 2317 2318 2318 … … 2332 2332 2333 2333 void my_yy_flush() { YY_FLUSH_BUFFER;BEGIN(0); } 2334
Note: See TracChangeset
for help on using the changeset viewer.