Rev 5219 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5219 | Rev 6324 | ||
---|---|---|---|
Line 558... | Line 558... | ||
558 | #define YY_NO_INPUT 1 |
558 | #define YY_NO_INPUT 1 |
559 | #line 4 "arlex.l" |
559 | #line 4 "arlex.l" |
560 | /* arlex.l - Strange script language lexer */ |
560 | /* arlex.l - Strange script language lexer */ |
561 | 561 | ||
Line 562... | Line -... | ||
562 | /* Copyright 1992, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2011 |
- | |
563 | Free Software Foundation, Inc. |
562 | /* Copyright (C) 1992-2015 Free Software Foundation, Inc. |
Line 564... | Line 563... | ||
564 | 563 | ||
Line 565... | Line 564... | ||
565 | This file is part of GNU Binutils. |
564 | This file is part of GNU Binutils. |
566 | 565 | ||
Line 593... | Line 592... | ||
593 | 592 | ||
Line 594... | Line 593... | ||
594 | extern int yylex (void); |
593 | extern int yylex (void); |
Line 595... | Line 594... | ||
595 | 594 | ||
596 | int linenumber; |
595 | int linenumber; |
Line 597... | Line 596... | ||
597 | #line 599 "arlex.c" |
596 | #line 598 "arlex.c" |
Line 598... | Line 597... | ||
598 | 597 | ||
599 | #define INITIAL 0 |
598 | #define INITIAL 0 |
Line 773... | Line 772... | ||
773 | register yy_state_type yy_current_state; |
772 | register yy_state_type yy_current_state; |
774 | register char *yy_cp, *yy_bp; |
773 | register char *yy_cp, *yy_bp; |
775 | register int yy_act; |
774 | register int yy_act; |
776 | 775 | ||
Line 777... | Line 776... | ||
777 | #line 46 "arlex.l" |
776 | #line 45 "arlex.l" |
Line 778... | Line 777... | ||
778 | 777 | ||
Line 779... | Line 778... | ||
779 | 778 | ||
780 | #line 782 "arlex.c" |
779 | #line 781 "arlex.c" |
781 | 780 | ||
Line 861... | Line 860... | ||
861 | goto yy_find_action; |
860 | goto yy_find_action; |
862 | 861 | ||
Line 863... | Line 862... | ||
863 | case 1: |
862 | case 1: |
864 | YY_RULE_SETUP |
863 | YY_RULE_SETUP |
865 | #line 48 "arlex.l" |
864 | #line 47 "arlex.l" |
866 | { return ADDLIB; } |
865 | { return ADDLIB; } |
867 | YY_BREAK |
866 | YY_BREAK |
868 | case 2: |
867 | case 2: |
869 | YY_RULE_SETUP |
868 | YY_RULE_SETUP |
870 | #line 49 "arlex.l" |
869 | #line 48 "arlex.l" |
871 | { return ADDMOD; } |
870 | { return ADDMOD; } |
872 | YY_BREAK |
871 | YY_BREAK |
873 | case 3: |
872 | case 3: |
874 | YY_RULE_SETUP |
873 | YY_RULE_SETUP |
875 | #line 50 "arlex.l" |
874 | #line 49 "arlex.l" |
876 | { return CLEAR; } |
875 | { return CLEAR; } |
877 | YY_BREAK |
876 | YY_BREAK |
878 | case 4: |
877 | case 4: |
879 | YY_RULE_SETUP |
878 | YY_RULE_SETUP |
880 | #line 51 "arlex.l" |
879 | #line 50 "arlex.l" |
881 | { return CREATE; } |
880 | { return CREATE; } |
882 | YY_BREAK |
881 | YY_BREAK |
883 | case 5: |
882 | case 5: |
884 | YY_RULE_SETUP |
883 | YY_RULE_SETUP |
885 | #line 52 "arlex.l" |
884 | #line 51 "arlex.l" |
886 | { return DELETE; } |
885 | { return DELETE; } |
887 | YY_BREAK |
886 | YY_BREAK |
888 | case 6: |
887 | case 6: |
889 | YY_RULE_SETUP |
888 | YY_RULE_SETUP |
890 | #line 53 "arlex.l" |
889 | #line 52 "arlex.l" |
891 | { return DIRECTORY; } |
890 | { return DIRECTORY; } |
892 | YY_BREAK |
891 | YY_BREAK |
893 | case 7: |
892 | case 7: |
894 | YY_RULE_SETUP |
893 | YY_RULE_SETUP |
895 | #line 54 "arlex.l" |
894 | #line 53 "arlex.l" |
896 | { return END; } |
895 | { return END; } |
897 | YY_BREAK |
896 | YY_BREAK |
898 | case 8: |
897 | case 8: |
899 | YY_RULE_SETUP |
898 | YY_RULE_SETUP |
900 | #line 55 "arlex.l" |
899 | #line 54 "arlex.l" |
901 | { return EXTRACT; } |
900 | { return EXTRACT; } |
902 | YY_BREAK |
901 | YY_BREAK |
903 | case 9: |
902 | case 9: |
904 | YY_RULE_SETUP |
903 | YY_RULE_SETUP |
905 | #line 56 "arlex.l" |
904 | #line 55 "arlex.l" |
906 | { return FULLDIR; } |
905 | { return FULLDIR; } |
907 | YY_BREAK |
906 | YY_BREAK |
908 | case 10: |
907 | case 10: |
909 | YY_RULE_SETUP |
908 | YY_RULE_SETUP |
910 | #line 57 "arlex.l" |
909 | #line 56 "arlex.l" |
911 | { return HELP; } |
910 | { return HELP; } |
912 | YY_BREAK |
911 | YY_BREAK |
913 | case 11: |
912 | case 11: |
914 | YY_RULE_SETUP |
913 | YY_RULE_SETUP |
915 | #line 58 "arlex.l" |
914 | #line 57 "arlex.l" |
916 | { return LIST; } |
915 | { return LIST; } |
917 | YY_BREAK |
916 | YY_BREAK |
918 | case 12: |
917 | case 12: |
919 | YY_RULE_SETUP |
918 | YY_RULE_SETUP |
920 | #line 59 "arlex.l" |
919 | #line 58 "arlex.l" |
921 | { return OPEN; } |
920 | { return OPEN; } |
922 | YY_BREAK |
921 | YY_BREAK |
923 | case 13: |
922 | case 13: |
924 | YY_RULE_SETUP |
923 | YY_RULE_SETUP |
925 | #line 60 "arlex.l" |
924 | #line 59 "arlex.l" |
926 | { return REPLACE; } |
925 | { return REPLACE; } |
927 | YY_BREAK |
926 | YY_BREAK |
928 | case 14: |
927 | case 14: |
929 | YY_RULE_SETUP |
928 | YY_RULE_SETUP |
930 | #line 61 "arlex.l" |
929 | #line 60 "arlex.l" |
931 | { return VERBOSE; } |
930 | { return VERBOSE; } |
932 | YY_BREAK |
931 | YY_BREAK |
933 | case 15: |
932 | case 15: |
934 | YY_RULE_SETUP |
933 | YY_RULE_SETUP |
935 | #line 62 "arlex.l" |
934 | #line 61 "arlex.l" |
936 | { return SAVE; } |
935 | { return SAVE; } |
937 | YY_BREAK |
936 | YY_BREAK |
938 | case 16: |
937 | case 16: |
939 | YY_RULE_SETUP |
938 | YY_RULE_SETUP |
940 | #line 63 "arlex.l" |
939 | #line 62 "arlex.l" |
941 | { return ADDLIB; } |
940 | { return ADDLIB; } |
942 | YY_BREAK |
941 | YY_BREAK |
943 | case 17: |
942 | case 17: |
944 | YY_RULE_SETUP |
943 | YY_RULE_SETUP |
945 | #line 64 "arlex.l" |
944 | #line 63 "arlex.l" |
946 | { return ADDMOD; } |
945 | { return ADDMOD; } |
947 | YY_BREAK |
946 | YY_BREAK |
948 | case 18: |
947 | case 18: |
949 | YY_RULE_SETUP |
948 | YY_RULE_SETUP |
950 | #line 65 "arlex.l" |
949 | #line 64 "arlex.l" |
951 | { return CLEAR; } |
950 | { return CLEAR; } |
952 | YY_BREAK |
951 | YY_BREAK |
953 | case 19: |
952 | case 19: |
954 | YY_RULE_SETUP |
953 | YY_RULE_SETUP |
955 | #line 66 "arlex.l" |
954 | #line 65 "arlex.l" |
956 | { return CREATE; } |
955 | { return CREATE; } |
957 | YY_BREAK |
956 | YY_BREAK |
958 | case 20: |
957 | case 20: |
959 | YY_RULE_SETUP |
958 | YY_RULE_SETUP |
960 | #line 67 "arlex.l" |
959 | #line 66 "arlex.l" |
961 | { return DELETE; } |
960 | { return DELETE; } |
962 | YY_BREAK |
961 | YY_BREAK |
963 | case 21: |
962 | case 21: |
964 | YY_RULE_SETUP |
963 | YY_RULE_SETUP |
965 | #line 68 "arlex.l" |
964 | #line 67 "arlex.l" |
966 | { return DIRECTORY; } |
965 | { return DIRECTORY; } |
967 | YY_BREAK |
966 | YY_BREAK |
968 | case 22: |
967 | case 22: |
969 | YY_RULE_SETUP |
968 | YY_RULE_SETUP |
970 | #line 69 "arlex.l" |
969 | #line 68 "arlex.l" |
971 | { return END; } |
970 | { return END; } |
972 | YY_BREAK |
971 | YY_BREAK |
973 | case 23: |
972 | case 23: |
974 | YY_RULE_SETUP |
973 | YY_RULE_SETUP |
975 | #line 70 "arlex.l" |
974 | #line 69 "arlex.l" |
976 | { return EXTRACT; } |
975 | { return EXTRACT; } |
977 | YY_BREAK |
976 | YY_BREAK |
978 | case 24: |
977 | case 24: |
979 | YY_RULE_SETUP |
978 | YY_RULE_SETUP |
980 | #line 71 "arlex.l" |
979 | #line 70 "arlex.l" |
981 | { return FULLDIR; } |
980 | { return FULLDIR; } |
982 | YY_BREAK |
981 | YY_BREAK |
983 | case 25: |
982 | case 25: |
984 | YY_RULE_SETUP |
983 | YY_RULE_SETUP |
985 | #line 72 "arlex.l" |
984 | #line 71 "arlex.l" |
986 | { return HELP; } |
985 | { return HELP; } |
987 | YY_BREAK |
986 | YY_BREAK |
988 | case 26: |
987 | case 26: |
989 | YY_RULE_SETUP |
988 | YY_RULE_SETUP |
990 | #line 73 "arlex.l" |
989 | #line 72 "arlex.l" |
991 | { return LIST; } |
990 | { return LIST; } |
992 | YY_BREAK |
991 | YY_BREAK |
993 | case 27: |
992 | case 27: |
994 | YY_RULE_SETUP |
993 | YY_RULE_SETUP |
995 | #line 74 "arlex.l" |
994 | #line 73 "arlex.l" |
996 | { return OPEN; } |
995 | { return OPEN; } |
997 | YY_BREAK |
996 | YY_BREAK |
998 | case 28: |
997 | case 28: |
999 | YY_RULE_SETUP |
998 | YY_RULE_SETUP |
1000 | #line 75 "arlex.l" |
999 | #line 74 "arlex.l" |
1001 | { return REPLACE; } |
1000 | { return REPLACE; } |
1002 | YY_BREAK |
1001 | YY_BREAK |
1003 | case 29: |
1002 | case 29: |
1004 | YY_RULE_SETUP |
1003 | YY_RULE_SETUP |
1005 | #line 76 "arlex.l" |
1004 | #line 75 "arlex.l" |
1006 | { return VERBOSE; } |
1005 | { return VERBOSE; } |
1007 | YY_BREAK |
1006 | YY_BREAK |
1008 | case 30: |
1007 | case 30: |
1009 | YY_RULE_SETUP |
1008 | YY_RULE_SETUP |
1010 | #line 77 "arlex.l" |
1009 | #line 76 "arlex.l" |
1011 | { return SAVE; } |
1010 | { return SAVE; } |
1012 | YY_BREAK |
1011 | YY_BREAK |
1013 | case 31: |
1012 | case 31: |
1014 | /* rule 31 can match eol */ |
1013 | /* rule 31 can match eol */ |
1015 | YY_RULE_SETUP |
1014 | YY_RULE_SETUP |
1016 | #line 78 "arlex.l" |
1015 | #line 77 "arlex.l" |
1017 | { linenumber ++; } |
1016 | { linenumber ++; } |
1018 | YY_BREAK |
1017 | YY_BREAK |
1019 | case 32: |
1018 | case 32: |
1020 | YY_RULE_SETUP |
1019 | YY_RULE_SETUP |
1021 | #line 79 "arlex.l" |
1020 | #line 78 "arlex.l" |
1022 | { return '('; } |
1021 | { return '('; } |
1023 | YY_BREAK |
1022 | YY_BREAK |
1024 | case 33: |
1023 | case 33: |
1025 | YY_RULE_SETUP |
1024 | YY_RULE_SETUP |
1026 | #line 80 "arlex.l" |
1025 | #line 79 "arlex.l" |
1027 | { return ')'; } |
1026 | { return ')'; } |
1028 | YY_BREAK |
1027 | YY_BREAK |
1029 | case 34: |
1028 | case 34: |
1030 | YY_RULE_SETUP |
1029 | YY_RULE_SETUP |
1031 | #line 81 "arlex.l" |
1030 | #line 80 "arlex.l" |
1032 | { return ','; } |
1031 | { return ','; } |
1033 | YY_BREAK |
1032 | YY_BREAK |
1034 | case 35: |
1033 | case 35: |
1035 | YY_RULE_SETUP |
1034 | YY_RULE_SETUP |
1036 | #line 82 "arlex.l" |
1035 | #line 81 "arlex.l" |
1037 | { |
1036 | { |
1038 | yylval.name = xstrdup (yytext); |
1037 | yylval.name = xstrdup (yytext); |
1039 | return FILENAME; |
1038 | return FILENAME; |
1040 | } |
1039 | } |
1041 | YY_BREAK |
1040 | YY_BREAK |
1042 | case 36: |
1041 | case 36: |
1043 | YY_RULE_SETUP |
1042 | YY_RULE_SETUP |
1044 | #line 86 "arlex.l" |
1043 | #line 85 "arlex.l" |
1045 | { } |
1044 | { } |
1046 | YY_BREAK |
1045 | YY_BREAK |
1047 | case 37: |
1046 | case 37: |
1048 | YY_RULE_SETUP |
1047 | YY_RULE_SETUP |
1049 | #line 87 "arlex.l" |
1048 | #line 86 "arlex.l" |
1050 | { } |
1049 | { } |
1051 | YY_BREAK |
1050 | YY_BREAK |
1052 | case 38: |
1051 | case 38: |
1053 | YY_RULE_SETUP |
1052 | YY_RULE_SETUP |
1054 | #line 88 "arlex.l" |
1053 | #line 87 "arlex.l" |
1055 | { } |
1054 | { } |
1056 | YY_BREAK |
1055 | YY_BREAK |
1057 | case 39: |
1056 | case 39: |
1058 | /* rule 39 can match eol */ |
1057 | /* rule 39 can match eol */ |
1059 | YY_RULE_SETUP |
1058 | YY_RULE_SETUP |
1060 | #line 89 "arlex.l" |
1059 | #line 88 "arlex.l" |
1061 | { linenumber ++; return NEWLINE; } |
1060 | { linenumber ++; return NEWLINE; } |
1062 | YY_BREAK |
1061 | YY_BREAK |
1063 | case 40: |
1062 | case 40: |
1064 | YY_RULE_SETUP |
1063 | YY_RULE_SETUP |
1065 | #line 91 "arlex.l" |
1064 | #line 90 "arlex.l" |
1066 | ECHO; |
1065 | ECHO; |
1067 | YY_BREAK |
1066 | YY_BREAK |
1068 | #line 1070 "arlex.c" |
1067 | #line 1069 "arlex.c" |
1069 | case YY_STATE_EOF(INITIAL): |
1068 | case YY_STATE_EOF(INITIAL): |
1070 | yyterminate(); |
1069 | yyterminate(); |
Line 1071... | Line 1070... | ||
1071 | 1070 | ||
1072 | case YY_END_OF_BUFFER: |
1071 | case YY_END_OF_BUFFER: |
Line 2024... | Line 2023... | ||
2024 | } |
2023 | } |
2025 | 2024 | ||
Line 2026... | Line 2025... | ||
2026 | #define YYTABLES_NAME "yytables" |
2025 | #define YYTABLES_NAME "yytables" |
Line 2027... | Line 2026... | ||
2027 | 2026 | ||
Line 2028... | Line 2027... | ||
2028 | #line 91 "arlex.l" |
2027 | #line 90 "arlex.l" |
2029 | 2028 | ||
2030 | 2029 |