Changeset 2786
- Timestamp:
- Jun 24, 2013, 1:31:28 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/easymesh/easymesh-parser.y
r2779 r2786 20 20 21 21 #include <string> 22 23 /* HACK: workaround for Bison who insists on using exceptions */24 #define try if (true)25 #define catch(...) if (false)26 #define throw (void)027 22 %} 28 23 … … 73 68 #undef yylex 74 69 #define yylex mc.m_lexer->lex 70 71 /* HACK: workaround for Bison who insists on using exceptions */ 72 #define try if (true) 73 #define catch(...) if (false) 74 #define throw (void)0 75 75 %} 76 76 -
trunk/src/generated/easymesh-parser.cpp
r2779 r2786 59 59 #include <string> 60 60 61 /* Line 283 of lalr1.cc */ 62 #line 63 "generated/easymesh-parser.cpp" 63 64 65 #include "easymesh-parser.h" 66 67 /* User implementation prologue. */ 68 /* Line 289 of lalr1.cc */ 69 #line 65 "easymesh/easymesh-parser.y" 70 71 #include "easymesh/easymesh-compiler.h" 72 73 #undef yylex 74 #define yylex mc.m_lexer->lex 75 61 76 /* HACK: workaround for Bison who insists on using exceptions */ 62 77 #define try if (true) 63 78 #define catch(...) if (false) 64 79 #define throw (void)0 65 66 /* Line 283 of lalr1.cc */67 #line 68 "generated/easymesh-parser.cpp"68 69 70 #include "easymesh-parser.h"71 72 /* User implementation prologue. */73 /* Line 289 of lalr1.cc */74 #line 70 "easymesh/easymesh-parser.y"75 76 #include "easymesh/easymesh-compiler.h"77 78 #undef yylex79 #define yylex mc.m_lexer->lex80 80 81 81 /* Line 289 of lalr1.cc */ -
trunk/src/generated/easymesh-parser.h
r2779 r2786 67 67 { 68 68 /* Line 33 of lalr1.cc */ 69 #line 40"easymesh/easymesh-parser.y"69 #line 35 "easymesh/easymesh-parser.y" 70 70 71 71 float fval; -
trunk/src/generated/lolfx-parser.cpp
r2782 r2786 56 56 #include <string> 57 57 58 59 /* Line 283 of lalr1.cc */ 60 #line 61 "generated/lolfx-parser.cpp" 61 62 63 #include "lolfx-parser.h" 64 65 /* User implementation prologue. */ 66 /* Line 289 of lalr1.cc */ 67 #line 241 "gpu/lolfx-parser.y" 68 69 #include "gpu/lolfx-compiler.h" 70 71 #undef yylex 72 #define yylex mc.m_lexer->lex 73 58 74 /* HACK: workaround for Bison who insists on using exceptions */ 59 75 #define try if (true) … … 61 77 #define throw (void)0 62 78 63 /* Line 283 of lalr1.cc */64 #line 65 "generated/lolfx-parser.cpp"65 66 67 #include "lolfx-parser.h"68 69 /* User implementation prologue. */70 79 /* Line 289 of lalr1.cc */ 71 #line 245 "gpu/lolfx-parser.y" 72 73 #include "gpu/lolfx-compiler.h" 74 75 #undef yylex 76 #define yylex mc.m_lexer->lex 77 78 /* Line 289 of lalr1.cc */ 79 #line 80 "generated/lolfx-parser.cpp" 80 #line 81 "generated/lolfx-parser.cpp" 80 81 81 82 … … 172 173 namespace lol { 173 174 /* Line 357 of lalr1.cc */ 174 #line 17 5"generated/lolfx-parser.cpp"175 #line 176 "generated/lolfx-parser.cpp" 175 176 176 177 /* Return YYSTR after stripping away unnecessary quotes and … … 474 475 case 206: 475 476 /* Line 664 of lalr1.cc */ 476 #line 73 3"gpu/lolfx-parser.y"477 #line 734 "gpu/lolfx-parser.y" 477 478 { std::cout << "New tech " << std::endl; } 478 479 break; 479 480 480 481 case 207: 481 /* Line 664 of lalr1.cc */482 #line 741 "gpu/lolfx-parser.y"483 { std::cout << "New name " << (yysemantic_stack_[(1) - (1)].sval) << std::endl; }484 break;485 486 case 208:487 482 /* Line 664 of lalr1.cc */ 488 483 #line 742 "gpu/lolfx-parser.y" … … 490 485 break; 491 486 487 case 208: 488 /* Line 664 of lalr1.cc */ 489 #line 743 "gpu/lolfx-parser.y" 490 { std::cout << "New name " << (yysemantic_stack_[(1) - (1)].sval) << std::endl; } 491 break; 492 492 493 case 211: 493 494 /* Line 664 of lalr1.cc */ 494 #line 75 5"gpu/lolfx-parser.y"495 #line 756 "gpu/lolfx-parser.y" 495 496 { std::cout << "New pass " << std::endl; } 496 497 break; … … 498 499 case 230: 499 500 /* Line 664 of lalr1.cc */ 500 #line 79 1"gpu/lolfx-parser.y"501 #line 792 "gpu/lolfx-parser.y" 501 502 { std::cout << "new shader" << std::endl; } 502 503 break; … … 504 505 505 506 /* Line 664 of lalr1.cc */ 506 #line 50 7"generated/lolfx-parser.cpp"507 #line 508 "generated/lolfx-parser.cpp" 507 508 default: 508 509 break; … … 3839 3840 LolFxParser::yyrline_[] = 3840 3841 { 3841 0, 2 59, 275, 276, 277, 278, 279, 280, 281, 282,3842 28 3, 284, 285, 286, 287, 288, 289, 290, 291, 292,3843 29 3, 294, 295, 296, 297, 298, 299, 300, 301, 302,3844 30 3, 304, 305, 306, 307, 308, 309, 310, 311, 312,3845 31 3, 314, 315, 316, 317, 318, 319, 320, 321, 322,3846 32 3, 324, 325, 326, 327, 328, 329, 330, 331, 332,3847 33 3, 334, 335, 336, 337, 338, 339, 340, 341, 342,3848 34 3, 344, 345, 346, 347, 348, 349, 350, 351, 352,3849 35 3, 512, 513, 514, 515, 516, 517, 518, 519, 520,3850 52 1, 522, 523, 524, 525, 526, 527, 528, 529, 530,3851 53 1, 532, 533, 534, 535, 536, 537, 538, 539, 540,3852 54 1, 542, 543, 544, 545, 546, 547, 548, 549, 550,3853 55 1, 552, 553, 554, 555, 556, 557, 558, 559, 560,3854 56 1, 562, 563, 564, 565, 566, 567, 568, 569, 570,3855 57 1, 572, 573, 574, 575, 576, 577, 578, 579, 580,3856 58 1, 582, 583, 584, 585, 586, 587, 588, 589, 590,3857 59 1, 592, 593, 594, 595, 596, 597, 598, 599, 600,3858 60 1, 602, 603, 604, 605, 606, 607, 608, 609, 610,3859 61 1, 612, 613, 614, 615, 616, 617, 618, 619, 620,3860 62 1, 622, 623, 624, 625, 626, 627, 628, 629, 630,3861 63 1, 714, 719, 720, 724, 725, 733, 741, 742, 750,3862 75 1, 755, 759, 760, 765, 766, 767, 768, 769, 770,3863 77 1, 772, 773, 774, 775, 776, 777, 778, 779, 787,3864 79 1, 795, 796, 800, 808, 812, 813, 814, 815, 816,3865 81 7, 821, 822, 823, 824, 825, 826, 830, 834, 838,3866 8 39, 843, 844, 848, 849, 853, 854, 858, 862, 863,3867 86 4, 868, 869, 870, 871, 875, 876, 877, 878, 882,3868 88 3, 884, 885, 889, 890, 891, 895, 896, 897, 901,3869 90 2, 903, 904, 905, 909, 910, 911, 915, 916, 920,3870 92 1, 925, 926, 930, 931, 935, 936, 940, 941, 945,3871 94 6, 950, 951, 955, 956, 957, 958, 959, 960, 961,3872 96 2, 963, 964, 965, 969, 970, 974, 978, 979, 980,3873 98 1, 982, 983, 984, 985, 989, 993, 994, 998, 999,3874 100 3, 1007, 1008, 1012, 1013, 1017, 1018, 1019, 1020, 1024,3875 102 5, 1028, 1030, 1031, 1032, 1033, 1034, 1038, 1042, 1043,3876 104 4, 1045, 1046, 1047, 1048, 1052, 1053, 1054, 1055, 1056,3877 105 7, 1058, 1059, 1063, 1064, 1068, 1072, 1073, 1074, 1078,3878 108 2, 1083, 1087, 1088, 1092, 1096, 1097, 1098, 1099, 1100,3879 110 1, 1102, 1103, 1107, 1108, 1109, 1110, 1111, 1112, 1113,3880 111 4, 1115, 1116, 1117, 1118, 1122, 1123, 1127, 1128, 1129,3881 113 2, 1133, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144,3882 114 5, 1146, 1147, 1148, 1149, 1153, 1154, 1155, 1159, 1160,3883 116 4, 1165, 1169, 1170, 1174, 1175, 1179, 1180, 1181, 1185,3884 11 89, 1193, 1194, 1198, 1199, 1200, 1201, 1202, 1203, 1204,3885 120 8, 1209, 1213, 1214, 1218, 1219, 1223, 1224, 1228, 1229,3886 123 3, 1237, 1238, 1242, 1243, 1247, 1250, 1252, 1256, 1257,3887 126 1, 1262, 1263, 1267, 1268, 1272, 1273, 1277, 1278, 1282,3888 128 3, 1284, 1285, 1286, 1290, 1291, 1295, 1296, 13003842 0, 260, 276, 277, 278, 279, 280, 281, 282, 283, 3843 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 3844 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 3845 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 3846 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 3847 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 3848 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 3849 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 3850 354, 513, 514, 515, 516, 517, 518, 519, 520, 521, 3851 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 3852 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 3853 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 3854 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 3855 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 3856 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 3857 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 3858 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 3859 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 3860 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 3861 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 3862 632, 715, 720, 721, 725, 726, 734, 742, 743, 751, 3863 752, 756, 760, 761, 766, 767, 768, 769, 770, 771, 3864 772, 773, 774, 775, 776, 777, 778, 779, 780, 788, 3865 792, 796, 797, 801, 809, 813, 814, 815, 816, 817, 3866 818, 822, 823, 824, 825, 826, 827, 831, 835, 839, 3867 840, 844, 845, 849, 850, 854, 855, 859, 863, 864, 3868 865, 869, 870, 871, 872, 876, 877, 878, 879, 883, 3869 884, 885, 886, 890, 891, 892, 896, 897, 898, 902, 3870 903, 904, 905, 906, 910, 911, 912, 916, 917, 921, 3871 922, 926, 927, 931, 932, 936, 937, 941, 942, 946, 3872 947, 951, 952, 956, 957, 958, 959, 960, 961, 962, 3873 963, 964, 965, 966, 970, 971, 975, 979, 980, 981, 3874 982, 983, 984, 985, 986, 990, 994, 995, 999, 1000, 3875 1004, 1008, 1009, 1013, 1014, 1018, 1019, 1020, 1021, 1025, 3876 1026, 1029, 1031, 1032, 1033, 1034, 1035, 1039, 1043, 1044, 3877 1045, 1046, 1047, 1048, 1049, 1053, 1054, 1055, 1056, 1057, 3878 1058, 1059, 1060, 1064, 1065, 1069, 1073, 1074, 1075, 1079, 3879 1083, 1084, 1088, 1089, 1093, 1097, 1098, 1099, 1100, 1101, 3880 1102, 1103, 1104, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 3881 1115, 1116, 1117, 1118, 1119, 1123, 1124, 1128, 1129, 1130, 3882 1133, 1134, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 3883 1146, 1147, 1148, 1149, 1150, 1154, 1155, 1156, 1160, 1161, 3884 1165, 1166, 1170, 1171, 1175, 1176, 1180, 1181, 1182, 1186, 3885 1190, 1194, 1195, 1199, 1200, 1201, 1202, 1203, 1204, 1205, 3886 1209, 1210, 1214, 1215, 1219, 1220, 1224, 1225, 1229, 1230, 3887 1234, 1238, 1239, 1243, 1244, 1248, 1251, 1253, 1257, 1258, 3888 1262, 1263, 1264, 1268, 1269, 1273, 1274, 1278, 1279, 1283, 3889 1284, 1285, 1286, 1287, 1291, 1292, 1296, 1297, 1301 3889 3890 }; 3890 3891 … … 4018 4019 } // lol 4019 4020 /* Line 1135 of lalr1.cc */ 4020 #line 402 1"generated/lolfx-parser.cpp"4021 #line 4022 "generated/lolfx-parser.cpp" 4021 4022 /* Line 1136 of lalr1.cc */ 4022 #line 130 3"gpu/lolfx-parser.y"4023 #line 1304 "gpu/lolfx-parser.y" 4023 4024 4024 4025 -
trunk/src/generated/lolfx-parser.h
r2779 r2786 67 67 { 68 68 /* Line 33 of lalr1.cc */ 69 #line 3 8"gpu/lolfx-parser.y"69 #line 34 "gpu/lolfx-parser.y" 70 70 71 71 int ival; -
trunk/src/generated/lolfx-scanner.cpp
r2782 r2786 5285 5285 { 5286 5286 /* FIXME: this is really too limited */ 5287 return atoi(buf) != 0;5287 return std::atoi(buf) != 0; 5288 5288 } 5289 5289 -
trunk/src/gpu/lolfx-parser.y
r2782 r2786 18 18 #include <string> 19 19 20 /* HACK: workaround for Bison who insists on using exceptions */21 #define try if (true)22 #define catch(...) if (false)23 #define throw (void)024 20 %} 25 21 … … 248 244 #undef yylex 249 245 #define yylex mc.m_lexer->lex 246 247 /* HACK: workaround for Bison who insists on using exceptions */ 248 #define try if (true) 249 #define catch(...) if (false) 250 #define throw (void)0 250 251 %} 251 252 -
trunk/src/gpu/lolfx-scanner.l
r2782 r2786 778 778 { 779 779 /* FIXME: this is really too limited */ 780 return atoi(buf) != 0;780 return std::atoi(buf) != 0; 781 781 } 782 782
Note: See TracChangeset
for help on using the changeset viewer.