Changeset 3434
- Timestamp:
- 05/19/05 09:22:52 (4 years ago)
- svk:copy_cache_prev:
- 5016
- Files:
-
- 5 modified
-
README (modified) (1 diff)
-
src/syck/emitter.c (modified) (8 diffs)
-
src/syck/gram.c (modified) (43 diffs)
-
src/syck/gram.h (modified) (4 diffs)
-
src/syck/syck.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
README
r3336 r3434 20 20 under a BSD-style license. See src/pcre/LICENCE. 21 21 22 The "Syck" subsystem is derived from Syck 0.5 4by "why the lucky stiff",22 The "Syck" subsystem is derived from Syck 0.55 by "why the lucky stiff", 23 23 under a BSD-style license. See src/syck/COPYING. 24 24 -
src/syck/emitter.c
r2786 r3434 3 3 * 4 4 * $Author: why $ 5 * $Date: 2005/0 4/13 06:27:54$5 * $Date: 2005/05/19 06:07:42 $ 6 6 * 7 7 * Copyright (C) 2003 why the lucky stiff … … 492 492 int i; 493 493 SyckLevel *lvl = syck_emitter_current_level( e ); 494 char *spcs = S_ALLOC_N( char, lvl->spaces + 2 ); 495 496 spcs[0] = '\n'; spcs[lvl->spaces + 1] = '\0'; 497 for ( i = 0; i < lvl->spaces; i++ ) spcs[i+1] = ' '; 498 syck_emitter_write( e, spcs, lvl->spaces + 1 ); 499 free( spcs ); 494 if ( lvl->spaces >= 0 ) { 495 char *spcs = S_ALLOC_N( char, lvl->spaces + 2 ); 496 497 spcs[0] = '\n'; spcs[lvl->spaces + 1] = '\0'; 498 for ( i = 0; i < lvl->spaces; i++ ) spcs[i+1] = ' '; 499 syck_emitter_write( e, spcs, lvl->spaces + 1 ); 500 free( spcs ); 501 } 500 502 } 501 503 … … 528 530 /* Contains flow seq indicators */ 529 531 #define SCAN_FLOWSEQ 4096 532 /* Contains a valid doc separator */ 533 #define SCAN_DOCSEP 8192 530 534 531 535 /* … … 564 568 } 565 569 570 /* opening doc sep */ 571 if ( len >= 3 && strncmp( cursor, "---", 3 ) == 0 ) 572 flags |= SCAN_DOCSEP; 573 566 574 /* scan string */ 567 575 for ( i = 0; i < len; i++ ) { … … 576 584 else if ( cursor[i] == '\n' ) { 577 585 flags |= SCAN_NEWLINE; 586 if ( len - i >= 3 && strncmp( &cursor[i+1], "---", 3 ) == 0 ) 587 flags |= SCAN_DOCSEP; 578 588 if ( cursor[i+1] == ' ' || cursor[i+1] == '\t' ) 579 589 flags |= SCAN_INDENTED; … … 643 653 } 644 654 645 scan = syck_scan_scalar( force_ indent, str, len );655 scan = syck_scan_scalar( force_width, str, len ); 646 656 implicit = syck_match_implicit( str, len ); 647 657 … … 691 701 } 692 702 693 if ( force_indent == 0 ) { 694 force_indent = e->indent; 703 if ( force_indent > 0 ) { 704 lvl->spaces = parent->spaces + force_indent; 705 } else if ( scan & SCAN_DOCSEP ) { 706 lvl->spaces = parent->spaces + e->indent; 695 707 } 696 708 … … 1010 1022 syck_emitter_write( e, "?", 1 ); 1011 1023 parent->status = syck_lvl_mapx; 1012 } else { 1024 /* shortcut -- the lvl->anctag check should be unneccesary but 1025 * there is a nasty shift/reduce in the parser on this point and 1026 * i'm not ready to tickle it. */ 1027 } else if ( lvl->anctag == 0 ) { 1013 1028 lvl->spaces = parent->spaces; 1014 1029 } -
src/syck/gram.c
r2786 r3434 1 /* A Bison parser, made from gram.y, by GNU bison 1.75. */1 /* A Bison parser, made by GNU Bison 1.875d. */ 2 2 3 3 /* Skeleton parser for Yacc-like parsing with Bison, 4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 5 6 6 This program is free software; you can redistribute it and/or modify … … 35 35 36 36 /* Identify Bison output. */ 37 #define YYBISON 1 37 #define YYBISON 1 38 39 /* Skeleton name. */ 40 #define YYSKELETON_NAME "yacc.c" 38 41 39 42 /* Pure parsers. */ 40 #define YYPURE 143 #define YYPURE 1 41 44 42 45 /* Using locations. */ … … 126 129 #endif 127 130 128 #if ndef YYSTYPE131 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) 129 132 #line 35 "gram.y" 130 typedef union {133 typedef union YYSTYPE { 131 134 SYMID nodeId; 132 135 SyckNode *nodeData; 133 136 char *name; 134 } yystype; 135 /* Line 193 of /usr/local/share/bison/yacc.c. */ 136 #line 137 "gram.c" 137 # define YYSTYPE yystype 137 } YYSTYPE; 138 /* Line 191 of yacc.c. */ 139 #line 140 "gram.c" 140 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 141 # define YYSTYPE_IS_DECLARED 1 138 142 # define YYSTYPE_IS_TRIVIAL 1 139 143 #endif 140 144 141 #ifndef YYLTYPE 142 typedef struct yyltype 143 { 144 int first_line; 145 int first_column; 146 int last_line; 147 int last_column; 148 } yyltype; 149 # define YYLTYPE yyltype 150 # define YYLTYPE_IS_TRIVIAL 1 151 #endif 145 152 146 153 147 /* Copy the second part of user declarations. */ 154 148 155 149 156 /* Line 21 3 of /usr/local/share/bison/yacc.c. */157 #line 15 8"gram.c"150 /* Line 214 of yacc.c. */ 151 #line 152 "gram.c" 158 152 159 153 #if ! defined (yyoverflow) || YYERROR_VERBOSE 160 154 155 # ifndef YYFREE 156 # define YYFREE free 157 # endif 158 # ifndef YYMALLOC 159 # define YYMALLOC malloc 160 # endif 161 161 162 /* The parser invokes alloca or malloc; define the necessary symbols. */ 162 163 163 # if YYSTACK_USE_ALLOCA 164 # define YYSTACK_ALLOC alloca 164 # ifdef YYSTACK_USE_ALLOCA 165 # if YYSTACK_USE_ALLOCA 166 # define YYSTACK_ALLOC alloca 167 # endif 165 168 # else 166 # ifndef YYSTACK_USE_ALLOCA 167 # if defined (alloca) || defined (_ALLOCA_H) 168 # define YYSTACK_ALLOC alloca 169 # else 170 # ifdef __GNUC__ 171 # define YYSTACK_ALLOC __builtin_alloca 172 # endif 169 # if defined (alloca) || defined (_ALLOCA_H) 170 # define YYSTACK_ALLOC alloca 171 # else 172 # ifdef __GNUC__ 173 # define YYSTACK_ALLOC __builtin_alloca 173 174 # endif 174 175 # endif … … 183 184 # define YYSIZE_T size_t 184 185 # endif 185 # define YYSTACK_ALLOC malloc186 # define YYSTACK_FREE free186 # define YYSTACK_ALLOC YYMALLOC 187 # define YYSTACK_FREE YYFREE 187 188 # endif 188 189 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ … … 191 192 #if (! defined (yyoverflow) \ 192 193 && (! defined (__cplusplus) \ 193 || ( YYLTYPE_IS_TRIVIAL&& YYSTYPE_IS_TRIVIAL)))194 || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) 194 195 195 196 /* A type that is properly aligned for any stack member. */ 196 197 union yyalloc 197 198 { 198 short yyss;199 short int yyss; 199 200 YYSTYPE yyvs; 200 201 }; 201 202 202 203 /* The size of the maximum gap between one aligned stack and the next. */ 203 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)204 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) 204 205 205 206 /* The size of an array large to enough to hold all stacks, each with 206 207 N elements. */ 207 208 # define YYSTACK_BYTES(N) \ 208 ((N) * (sizeof (short ) + sizeof (YYSTYPE))\209 + YYSTACK_GAP_MAX )209 ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ 210 + YYSTACK_GAP_MAXIMUM) 210 211 211 212 /* Copy COUNT objects from FROM to TO. The source and destination do 212 213 not overlap. */ 213 214 # ifndef YYCOPY 214 # if 1 < __GNUC__215 # if defined (__GNUC__) && 1 < __GNUC__ 215 216 # define YYCOPY(To, From, Count) \ 216 217 __builtin_memcpy (To, From, (Count) * sizeof (*(From))) … … 221 222 register YYSIZE_T yyi; \ 222 223 for (yyi = 0; yyi < (Count); yyi++) \ 223 (To)[yyi] = (From)[yyi]; \224 (To)[yyi] = (From)[yyi]; \ 224 225 } \ 225 226 while (0) … … 238 239 YYCOPY (&yyptr->Stack, Stack, yysize); \ 239 240 Stack = &yyptr->Stack; \ 240 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX ;\241 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 241 242 yyptr += yynewbytes / sizeof (*yyptr); \ 242 243 } \ … … 248 249 typedef signed char yysigned_char; 249 250 #else 250 typedef short yysigned_char;251 typedef short int yysigned_char; 251 252 #endif 252 253 253 254 /* YYFINAL -- State number of the termination state. */ 254 255 #define YYFINAL 52 256 /* YYLAST -- Last index in YYTABLE. */ 255 257 #define YYLAST 396 256 258 … … 268 270 #define YYMAXUTOK 269 269 271 270 #define YYTRANSLATE( X)\271 ((unsigned )(X) <= YYMAXUTOK ? yytranslate[X] : YYUNDEFTOK)272 #define YYTRANSLATE(YYX) \ 273 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 272 274 273 275 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ … … 347 349 348 350 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 349 static const unsigned short yyrline[] =350 { 351 0, 56, 56, 60, 6 4, 70, 71, 74, 75, 80,352 85, 94, 100, 101, 104, 10 8, 113, 121, 126, 131,351 static const unsigned short int yyrline[] = 352 { 353 0, 56, 56, 60, 65, 70, 71, 74, 75, 80, 354 85, 94, 100, 101, 104, 109, 113, 121, 126, 131, 353 355 145, 146, 149, 152, 155, 156, 164, 169, 174, 182, 354 356 186, 194, 207, 208, 218, 219, 220, 221, 222, 228, … … 365 367 static const char *const yytname[] = 366 368 { 367 "$end", "error", "$undefined", "YAML_ANCHOR", "YAML_ALIAS", 368 "YAML_TRANSFER", "YAML_TAGURI", "YAML_ITRANSFER", "YAML_WORD", 369 "YAML_PLAIN", "YAML_BLOCK", "YAML_DOCSEP", "YAML_IOPEN", "YAML_INDENT", 370 "YAML_IEND", "'-'", "':'", "'['", "']'", "'{'", "'}'", "','", "'?'", 371 "$accept", "doc", "atom", "ind_rep", "atom_or_empty", "empty", 372 "indent_open", "indent_end", "indent_sep", "indent_flex_end", 373 " word_rep", "struct_rep", "implicit_seq", "basic_seq", "top_imp_seq",374 "in_implicit_seq", "inline_seq", "in_inline_seq", "inline_seq_atom", 375 "implicit_map", "top_imp_map", "complex_key", "complex_value", 376 "complex_mapping", "in_implicit_map", "basic_mapping", "inline_map", 369 "$end", "error", "$undefined", "YAML_ANCHOR", "YAML_ALIAS", 370 "YAML_TRANSFER", "YAML_TAGURI", "YAML_ITRANSFER", "YAML_WORD", 371 "YAML_PLAIN", "YAML_BLOCK", "YAML_DOCSEP", "YAML_IOPEN", "YAML_INDENT", 372 "YAML_IEND", "'-'", "':'", "'['", "']'", "'{'", "'}'", "','", "'?'", 373 "$accept", "doc", "atom", "ind_rep", "atom_or_empty", "empty", 374 "indent_open", "indent_end", "indent_sep", "indent_flex_end", "word_rep", 375 "struct_rep", "implicit_seq", "basic_seq", "top_imp_seq", 376 "in_implicit_seq", "inline_seq", "in_inline_seq", "inline_seq_atom", 377 "implicit_map", "top_imp_map", "complex_key", "complex_value", 378 "complex_mapping", "in_implicit_map", "basic_mapping", "inline_map", 377 379 "in_inline_map", "inline_map_atom", 0 378 380 }; … … 382 384 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to 383 385 token YYLEX-NUM. */ 384 static const unsigned short yytoknum[] =386 static const unsigned short int yytoknum[] = 385 387 { 386 388 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, … … 447 449 STATE-NUM. */ 448 450 #define YYPACT_NINF -97 449 static const short yypact[] =451 static const short int yypact[] = 450 452 { 451 453 250, 318, -97, 318, 318, 374, -97, -97, -97, 335, … … 475 477 positive, shift that token. If negative, reduce the rule which 476 478 number is the opposite. If zero, do what YYDEFACT says. 477 If YYTABLE_NINF, parseerror. */479 If YYTABLE_NINF, syntax error. */ 478 480 #define YYTABLE_NINF -1 479 481 static const unsigned char yytable[] = … … 602 604 #define yyerrok (yyerrstatus = 0) 603 605 #define yyclearin (yychar = YYEMPTY) 604 #define YYEMPTY -2606 #define YYEMPTY (-2) 605 607 #define YYEOF 0 606 608 607 609 #define YYACCEPT goto yyacceptlab 608 610 #define YYABORT goto yyabortlab 609 #define YYERROR goto yyerrlab1 611 #define YYERROR goto yyerrorlab 612 610 613 611 614 /* Like YYERROR except do call yyerror. This remains here temporarily … … 623 626 yychar = (Token); \ 624 627 yylval = (Value); \ 625 yy char1= YYTRANSLATE (yychar); \628 yytoken = YYTRANSLATE (yychar); \ 626 629 YYPOPSTACK; \ 627 630 goto yybackup; \ … … 629 632 else \ 630 633 { \ 631 yyerror ("syntax error: cannot back up"); \634 yyerror ("syntax error: cannot back up");\ 632 635 YYERROR; \ 633 636 } \ … … 641 644 642 645 #ifndef YYLLOC_DEFAULT 643 # define YYLLOC_DEFAULT(Current, Rhs, N) \644 Current.first_line = Rhs[1].first_line;\645 Current.first_column = Rhs[1].first_column;\646 Current.last_line = Rhs[N].last_line;\647 Current.last_column = Rhs[N].last_column;646 # define YYLLOC_DEFAULT(Current, Rhs, N) \ 647 ((Current).first_line = (Rhs)[1].first_line, \ 648 (Current).first_column = (Rhs)[1].first_column, \ 649 (Current).last_line = (Rhs)[N].last_line, \ 650 (Current).last_column = (Rhs)[N].last_column) 648 651 #endif 649 652 … … 651 654 652 655 #ifdef YYLEX_PARAM 653 # define YYLEX yylex (&yylval, YYLEX_PARAM)656 # define YYLEX yylex (&yylval, YYLEX_PARAM) 654 657 #else 655 # define YYLEX yylex (&yylval)658 # define YYLEX yylex (&yylval) 656 659 #endif 657 660 … … 669 672 YYFPRINTF Args; \ 670 673 } while (0) 674 671 675 # define YYDSYMPRINT(Args) \ 672 676 do { \ … … 674 678 yysymprint Args; \ 675 679 } while (0) 680 681 # define YYDSYMPRINTF(Title, Token, Value, Location) \ 682 do { \ 683 if (yydebug) \ 684 { \ 685 YYFPRINTF (stderr, "%s ", Title); \ 686 yysymprint (stderr, \ 687 Token, Value); \ 688 YYFPRINTF (stderr, "\n"); \ 689 } \ 690 } while (0) 691 692 /*------------------------------------------------------------------. 693 | yy_stack_print -- Print the state stack from its BOTTOM up to its | 694 | TOP (included). | 695 `------------------------------------------------------------------*/ 696 697 #if defined (__STDC__) || defined (__cplusplus) 698 static void 699 yy_stack_print (short int *bottom, short int *top) 700 #else 701 static void 702 yy_stack_print (bottom, top) 703 short int *bottom; 704 short int *top; 705 #endif 706 { 707 YYFPRINTF (stderr, "Stack now"); 708 for (/* Nothing. */; bottom <= top; ++bottom) 709 YYFPRINTF (stderr, " %d", *bottom); 710 YYFPRINTF (stderr, "\n"); 711 } 712 713 # define YY_STACK_PRINT(Bottom, Top) \ 714 do { \ 715 if (yydebug) \ 716 yy_stack_print ((Bottom), (Top)); \ 717 } while (0) 718 719 720 /*------------------------------------------------. 721 | Report that the YYRULE is going to be reduced. | 722 `------------------------------------------------*/ 723 724 #if defined (__STDC__) || defined (__cplusplus) 725 static void 726 yy_reduce_print (int yyrule) 727 #else 728 static void 729 yy_reduce_print (yyrule) 730 int yyrule; 731 #endif 732 { 733 int yyi; 734 unsigned int yylno = yyrline[yyrule]; 735 YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", 736 yyrule - 1, yylno); 737 /* Print the symbols being reduced, and their result. */ 738 for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) 739 YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); 740 YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); 741 } 742 743 # define YY_REDUCE_PRINT(Rule) \ 744 do { \ 745 if (yydebug) \ 746 yy_reduce_print (Rule); \ 747 } while (0) 748 676 749 /* Nonzero means print parse trace. It is left uninitialized so that 677 750 multiple parsers can coexist. */ … … 680 753 # define YYDPRINTF(Args) 681 754 # define YYDSYMPRINT(Args) 755 # define YYDSYMPRINTF(Title, Token, Value, Location) 756 # define YY_STACK_PRINT(Bottom, Top) 757 # define YY_REDUCE_PRINT(Rule) 682 758 #endif /* !YYDEBUG */ 759 683 760 684 761 /* YYINITDEPTH -- initial size of the parser's stacks. */ … … 694 771 evaluated with infinite-precision integer arithmetic. */ 695 772 696 #if YYMAXDEPTH == 0773 #if defined (YYMAXDEPTH) && YYMAXDEPTH == 0 697 774 # undef YYMAXDEPTH 698 775 #endif … … 760 837 761 838 #if YYDEBUG 762 /*-----------------------------. 763 | Print this symbol on YYOUT. | 764 `-----------------------------*/ 765 839 /*--------------------------------. 840 | Print this symbol on YYOUTPUT. | 841 `--------------------------------*/ 842 843 #if defined (__STDC__) || defined (__cplusplus) 766 844 static void 767 #if defined (__STDC__) || defined (__cplusplus) 768 yysymprint (FILE* yyout, int yytype, YYSTYPE yyvalue) 845 yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) 769 846 #else 770 yysymprint (yyout, yytype, yyvalue) 771 FILE* yyout; 847 static void 848 yysymprint (yyoutput, yytype, yyvaluep) 849 FILE *yyoutput; 772 850 int yytype; 773 YYSTYPE yyvalue;851 YYSTYPE *yyvaluep; 774 852 #endif 775 853 { 776 854 /* Pacify ``unused variable'' warnings. */ 777 (void) yyvalue ;855 (void) yyvaluep; 778 856 779 857 if (yytype < YYNTOKENS) 780 858 { 781 YYFPRINTF (yyout , "token %s (", yytname[yytype]);859 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); 782 860 # ifdef YYPRINT 783 YYPRINT (yyout , yytoknum[yytype], yyvalue);861 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); 784 862 # endif 785 863 } 786 864 else 787 YYFPRINTF (yyout , "nterm %s (", yytname[yytype]);865 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); 788 866 789 867 switch (yytype) … … 792 870 break; 793 871 } 794 YYFPRINTF (yyout , ")");872 YYFPRINTF (yyoutput, ")"); 795 873 } 796 #endif /* YYDEBUG. */ 797 798 874 875 #endif /* ! YYDEBUG */ 799 876 /*-----------------------------------------------. 800 877 | Release the memory associated to this symbol. | 801 878 `-----------------------------------------------*/ 802 879 880 #if defined (__STDC__) || defined (__cplusplus) 803 881 static void 804 #if defined (__STDC__) || defined (__cplusplus) 805 yydestruct (int yytype, YYSTYPE yyvalue) 882 yydestruct (int yytype, YYSTYPE *yyvaluep) 806 883 #else 807 yydestruct (yytype, yyvalue) 884 static void 885 yydestruct (yytype, yyvaluep) 808 886 int yytype; 809 YYSTYPE yyvalue;887 YYSTYPE *yyvaluep; 810 888 #endif 811 889 { 812 890 /* Pacify ``unused variable'' warnings. */ 813 (void) yyvalue ;891 (void) yyvaluep; 814 892 815 893 switch (yytype) 816 894 { 895 817 896 default: 818 897 break; 819 898 } 820 899 } 821 822 900 823 901 824 /* The user can define YYPARSE_PARAM as the name of an argument to be passed 825 into yyparse. The argument should have type void *. 826 It should actually point to an object. 827 Grammar actions can access the variable by casting it 828 to the proper pointer type. */ 902 /* Prevent warnings from -Wmissing-prototypes. */ 829 903 830 904 #ifdef YYPARSE_PARAM 831 905 # if defined (__STDC__) || defined (__cplusplus) 832 # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM 833 # define YYPARSE_PARAM_DECL 906 int yyparse (void *YYPARSE_PARAM); 834 907 # else 835 # define YYPARSE_PARAM_ARG YYPARSE_PARAM 836 # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; 908 int yyparse (); 837 909 # endif 838 #else /* !YYPARSE_PARAM */ 839 # define YYPARSE_PARAM_ARG 840 # define YYPARSE_PARAM_DECL 841 #endif /* !YYPARSE_PARAM */ 842 843 /* Prevent warning if -Wstrict-prototypes. */ 844 #ifdef __GNUC__ 845 # ifdef YYPARSE_PARAM 846 int yyparse (void *); 910 #else /* ! YYPARSE_PARAM */ 911 #if defined (__STDC__) || defined (__cplusplus) 912 int yyparse (void); 913 #else 914 int yyparse (); 915 #endif 916 #endif /* ! YYPARSE_PARAM */ 917 918 919 920 921 922 923 /*----------. 924 | yyparse. | 925 `----------*/ 926 927 #ifdef YYPARSE_PARAM 928 # if defined (__STDC__) || defined (__cplusplus) 929 int yyparse (void *YYPARSE_PARAM) 847 930 # else 848 int yyparse (void); 931 int yyparse (YYPARSE_PARAM) 932 void *YYPARSE_PARAM; 849 933 # endif 850 #endif 851 852 853 854 934 #else /* ! YYPARSE_PARAM */ 935 #if defined (__STDC__) || defined (__cplusplus) 855 936 int 856 yyparse (YYPARSE_PARAM_ARG) 857 YYPARSE_PARAM_DECL 937 yyparse (void) 938 #else 939 int 940 yyparse () 941 942 #endif 943 #endif 858 944 { 859 945 /* The lookahead symbol. */ … … 863 949 YYSTYPE yylval; 864 950 865 /* Number of parseerrors so far. */951 /* Number of syntax errors so far. */ 866 952 int yynerrs; 867 953
