From 9d7da8e525de97c0dcec4ce282ff66ca49602786 Mon Sep 17 00:00:00 2001 From: upstream svn Date: Wed, 5 Aug 2020 08:58:50 +0000 Subject: [PATCH] Change policy about how we handle generated files Generated files are either generated by autogen.sh (if they're not under version control) or should only be manually regenerated if necessary. Being regenerated on the user's system occasionally is not an option anymore. Should you change any of the lexer or parser sources (.l or .y files) the genfiles script in the scripts directory will regenerate the respective C/C++ files. Notes on the usage are included in the script itself. Also removed a number of unused functions. --- .svn-revision | 2 +- Makefile.in | 5 - acinclude.m4 | 16 - config.h.in | 4 - configure | 345 +- configure.ac | 4 - docs/Makefile.in | 5 - docs/man/Makefile.in | 5 - src/IPFilterScanner.cpp | 119 +- src/Makefile.am | 16 - src/Makefile.in | 19 - src/Parser.cpp | 1392 +++--- src/Parser.hpp | 66 +- src/Parser.y | 1 - src/Scanner.cpp | 116 +- src/Scanner.h | 25 +- src/Scanner.h.in | 4 - src/Scanner.l | 14 - src/SearchList.cpp | 10 +- src/libs/Makefile.in | 5 - src/libs/common/Makefile.in | 5 - src/libs/ec/Makefile.in | 5 - src/libs/ec/cpp/Makefile.in | 5 - src/pixmaps/Makefile.in | 5 - src/pixmaps/flags_xpm/Makefile.in | 5 - src/skins/Makefile.in | 5 - src/utils/Makefile.in | 5 - src/utils/aLinkCreator/Makefile.in | 5 - src/utils/aLinkCreator/docs/Makefile.in | 5 - src/utils/aLinkCreator/src/Makefile.in | 5 - src/utils/cas/Makefile.in | 5 - src/utils/cas/docs/Makefile.in | 5 - src/utils/fileview/Makefile.in | 5 - src/utils/plasmamule/Makefile.in | 5 - src/utils/scripts/genfiles | 86 + src/utils/wxCas/Makefile.in | 5 - src/utils/wxCas/docs/Makefile.in | 5 - src/utils/wxCas/src/Makefile.in | 5 - src/utils/xas/Makefile.in | 5 - src/utils/xas/docs/Makefile.in | 5 - src/webserver/Makefile.in | 5 - src/webserver/default/Makefile.in | 5 - src/webserver/src/Makefile.am | 8 +- src/webserver/src/Makefile.in | 13 +- src/webserver/src/php_lexer.c | 268 +- src/webserver/src/php_parser.c | 7048 +++++++++++++++---------------- src/webserver/src/php_parser.h | 222 +- unittests/Makefile.in | 5 - unittests/muleunit/Makefile.in | 5 - unittests/tests/Makefile.in | 5 - 50 files changed, 4481 insertions(+), 5457 deletions(-) delete mode 100644 src/Scanner.h.in create mode 100755 src/utils/scripts/genfiles rewrite src/webserver/src/php_parser.c (63%) diff --git a/.svn-revision b/.svn-revision index e32d46aa..2008499b 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -11050 +11051 diff --git a/Makefile.in b/Makefile.in index 44c9174b..0a1b7aee 100644 --- a/Makefile.in +++ b/Makefile.in @@ -357,9 +357,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -440,8 +437,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/acinclude.m4 b/acinclude.m4 index 126e8684..14253b83 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -504,22 +504,6 @@ AC_DEFUN([MULE_CHECK_CCACHE], dnl ---------------------------------------------------- -dnl MULE_CHECK_FLEX_EXTENDED -dnl check if flex can produce header files -dnl ---------------------------------------------------- -AC_DEFUN([MULE_CHECK_FLEX_EXTENDED], -[ - AC_MSG_CHECKING([for extended flex capabilities]) - - extended_flex=`flex --help | grep header-file` - AS_IF([test -n "$extended_flex"], [HAVE_FLEX_EXTENDED=yes], [HAVE_FLEX_EXTENDED=no]) - AC_MSG_RESULT($HAVE_FLEX_EXTENDED) - - AS_IF([test $HAVE_FLEX_EXTENDED = no], [AC_MSG_NOTICE([Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended])]) -]) - - -dnl ---------------------------------------------------- dnl MULE_CHECK_EXCEPTIONS dnl Checks for broken exception-handling. This is needed dnl because exception handling is broken for some archs/ diff --git a/config.h.in b/config.h.in index 39a945aa..28c52a2c 100644 --- a/config.h.in +++ b/config.h.in @@ -538,10 +538,6 @@ /* Version number of package */ #undef VERSION -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -#undef YYTEXT_POINTER - /* Define to empty if `const' does not conform to ANSI C. */ #undef const diff --git a/configure b/configure index 4adc50cc..387e7f6e 100755 --- a/configure +++ b/configure @@ -634,8 +634,6 @@ PLASMAMULE_FALSE PLASMAMULE_TRUE INSTALL_SKINS_FALSE INSTALL_SKINS_TRUE -GENERATE_FLEX_HEADER_FALSE -GENERATE_FLEX_HEADER_TRUE COMPILE_NLS_FALSE COMPILE_NLS_TRUE NEED_CORESERVICES_FALSE @@ -773,13 +771,8 @@ MONOLITHIC_FALSE MONOLITHIC_TRUE LD AR -YFLAGS -YACC SED RANLIB -LEXLIB -LEX_OUTPUT_ROOT -LEX EGREP GREP BUILD_LDFLAGS @@ -973,8 +966,6 @@ CXXCPP CC CFLAGS CPP -YACC -YFLAGS PKG_CONFIG RC RCFLAGS @@ -1714,12 +1705,6 @@ Some influential environment variables: CC C compiler command CFLAGS C compiler flags CPP C preprocessor - YACC The `Yet Another Compiler Compiler' implementation to use. - Defaults to the first program found out of: `bison -y', `byacc', - `yacc'. - YFLAGS The list of arguments that will be passed by default to $YACC. - This script will default YFLAGS to the empty string to avoid a - default value of `-d' given by some make applications. PKG_CONFIG path to pkg-config utility RC Resource Compiler RCFLAGS Resource Compiler Flags @@ -1955,52 +1940,6 @@ fi } # ac_fn_c_try_cpp -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using @@ -2550,6 +2489,52 @@ $as_echo "$ac_res" >&6; } } # ac_fn_cxx_check_header_compile +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly @@ -6331,166 +6316,6 @@ $as_echo "no" >&6; } fi -for ac_prog in flex lex -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LEX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$LEX"; then - ac_cv_prog_LEX="$LEX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_LEX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -LEX=$ac_cv_prog_LEX -if test -n "$LEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 -$as_echo "$LEX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$LEX" && break -done -test -n "$LEX" || LEX=":" - -if test "x$LEX" != "x:"; then - cat >conftest.l <<_ACEOF -%% -a { ECHO; } -b { REJECT; } -c { yymore (); } -d { yyless (1); } -e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ - yyless ((input () != 0)); } -f { unput (yytext[0]); } -. { BEGIN INITIAL; } -%% -#ifdef YYTEXT_POINTER -extern char *yytext; -#endif -int -main (void) -{ - return ! yylex () + ! yywrap (); -} -_ACEOF -{ { ac_try="$LEX conftest.l" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$LEX conftest.l") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 -$as_echo_n "checking lex output file root... " >&6; } -if ${ac_cv_prog_lex_root+:} false; then : - $as_echo_n "(cached) " >&6 -else - -if test -f lex.yy.c; then - ac_cv_prog_lex_root=lex.yy -elif test -f lexyy.c; then - ac_cv_prog_lex_root=lexyy -else - as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 -$as_echo "$ac_cv_prog_lex_root" >&6; } -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root - -if test -z "${LEXLIB+set}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 -$as_echo_n "checking lex library... " >&6; } -if ${ac_cv_lib_lex+:} false; then : - $as_echo_n "(cached) " >&6 -else - - ac_save_LIBS=$LIBS - ac_cv_lib_lex='none needed' - for ac_lib in '' -lfl -ll; do - LIBS="$ac_lib $ac_save_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -`cat $LEX_OUTPUT_ROOT.c` -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_lex=$ac_lib -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - test "$ac_cv_lib_lex" != 'none needed' && break - done - LIBS=$ac_save_LIBS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 -$as_echo "$ac_cv_lib_lex" >&6; } - test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 -$as_echo_n "checking whether yytext is a pointer... " >&6; } -if ${ac_cv_prog_lex_yytext_pointer+:} false; then : - $as_echo_n "(cached) " >&6 -else - # POSIX says lex can declare yytext either as a pointer or an array; the -# default is implementation-dependent. Figure out which it is, since -# not all implementations provide the %pointer and %array declarations. -ac_cv_prog_lex_yytext_pointer=no -ac_save_LIBS=$LIBS -LIBS="$LEXLIB $ac_save_LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #define YYTEXT_POINTER 1 -`cat $LEX_OUTPUT_ROOT.c` -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_prog_lex_yytext_pointer=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_save_LIBS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 -$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } -if test $ac_cv_prog_lex_yytext_pointer = yes; then - -$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h - -fi -rm -f conftest.l $LEX_OUTPUT_ROOT.c - -fi - if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 @@ -6652,49 +6477,6 @@ $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed -for ac_prog in 'bison -y' byacc -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_YACC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$YACC"; then - ac_cv_prog_YACC="$YACC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_YACC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -YACC=$ac_cv_prog_YACC -if test -n "$YACC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 -$as_echo "$YACC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$YACC" && break -done -test -n "$YACC" || YACC="yacc" - if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. @@ -7413,6 +7195,7 @@ $as_echo "no" >&6; } fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : @@ -10806,28 +10589,6 @@ fi fi # Ok, we have all needed libs, now checking for other stuff -if test "$LEX" = "flex"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5 -$as_echo_n "checking for extended flex capabilities... " >&6; } - - extended_flex=`flex --help | grep header-file` - if test -n "$extended_flex"; then : - HAVE_FLEX_EXTENDED=yes -else - HAVE_FLEX_EXTENDED=no -fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5 -$as_echo "$HAVE_FLEX_EXTENDED" >&6; } - - if test $HAVE_FLEX_EXTENDED = no; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5 -$as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;} -fi - -else - HAVE_FLEX_EXTENDED=no -fi # Checks for header files. @@ -16586,14 +16347,6 @@ else COMPILE_NLS_FALSE= fi - if test x$HAVE_FLEX_EXTENDED = xyes; then - GENERATE_FLEX_HEADER_TRUE= - GENERATE_FLEX_HEADER_FALSE='#' -else - GENERATE_FLEX_HEADER_TRUE='#' - GENERATE_FLEX_HEADER_FALSE= -fi - if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then INSTALL_SKINS_TRUE= INSTALL_SKINS_FALSE='#' @@ -16840,10 +16593,6 @@ if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then as_fn_error $? "conditional \"COMPILE_NLS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then - as_fn_error $? "conditional \"GENERATE_FLEX_HEADER\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 diff --git a/configure.ac b/configure.ac index 6865c666..c3a40a84 100644 --- a/configure.ac +++ b/configure.ac @@ -54,11 +54,9 @@ MULE_RESTORE([BUILD_CFLAGS]) AC_PROG_AWK AC_PROG_EGREP AC_PROG_MAKE_SET -AC_PROG_LEX AC_PROG_INSTALL AC_PROG_RANLIB AC_PROG_SED -AC_PROG_YACC dnl Find the right ranlib, even when cross-compiling dnl And for some other tools for cross compilation @@ -253,7 +251,6 @@ MULE_IF_ENABLED_ANY([monolithic, amule-daemon, amule-gui, amulecmd, webserver], ]) # Ok, we have all needed libs, now checking for other stuff -AS_IF([test "$LEX" = "flex"], [MULE_CHECK_FLEX_EXTENDED], [HAVE_FLEX_EXTENDED=no]) # Checks for header files. @@ -446,7 +443,6 @@ AM_CONDITIONAL(SYS_WIN32, test x$SYS = xwin32) AM_CONDITIONAL(NEED_RC, test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw) AM_CONDITIONAL(NEED_CORESERVICES, test x$SYS = xdarwin) AM_CONDITIONAL(COMPILE_NLS, test x$USE_NLS = xyes) -AM_CONDITIONAL(GENERATE_FLEX_HEADER, test x$HAVE_FLEX_EXTENDED = xyes) AM_CONDITIONAL(INSTALL_SKINS, test MULE_IS_ENABLED_ANY([monolithic, amule-gui])) AM_CONDITIONAL(PLASMAMULE, test MULE_IS_ENABLED([plasmamule])) diff --git a/docs/Makefile.in b/docs/Makefile.in index 5ea1e50c..cfc37a96 100644 --- a/docs/Makefile.in +++ b/docs/Makefile.in @@ -317,9 +317,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -400,8 +397,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/docs/man/Makefile.in b/docs/man/Makefile.in index 5994ff3f..3a7b9eec 100644 --- a/docs/man/Makefile.in +++ b/docs/man/Makefile.in @@ -227,9 +227,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -310,8 +307,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/IPFilterScanner.cpp b/src/IPFilterScanner.cpp index 7cd5ae01..9859bd58 100644 --- a/src/IPFilterScanner.cpp +++ b/src/IPFilterScanner.cpp @@ -28,7 +28,7 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 +#define YY_FLEX_SUBMINOR_VERSION 39 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif @@ -73,7 +73,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -104,6 +103,8 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -172,7 +173,12 @@ typedef unsigned int flex_uint32_t; typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif -extern int yyipleng; +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + +extern yy_size_t yyipleng; extern FILE *yyipin, *yyipout; @@ -181,6 +187,7 @@ extern FILE *yyipin, *yyipout; #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) + #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ @@ -198,11 +205,6 @@ extern FILE *yyipin, *yyipout; #define unput(c) yyunput( c, (yytext_ptr) ) -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state @@ -220,7 +222,7 @@ struct yy_buffer_state /* Number of characters read into yy_ch_buf, not including EOB * characters. */ - int yy_n_chars; + yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to @@ -290,8 +292,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* yy_hold_char holds the character lost when yyiptext is formed. */ static char yy_hold_char; -static int yy_n_chars; /* number of characters read into yy_ch_buf */ -int yyipleng; +static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ +yy_size_t yyipleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; @@ -319,7 +321,7 @@ static void yyip_init_buffer (YY_BUFFER_STATE b,FILE *file ); YY_BUFFER_STATE yyip_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yyip_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE yyip_scan_bytes (yyconst char *bytes,int len ); +YY_BUFFER_STATE yyip_scan_bytes (yyconst char *bytes,yy_size_t len ); void *yyipalloc (yy_size_t ); void *yyiprealloc (void *,yy_size_t ); @@ -351,7 +353,7 @@ void yyipfree (void * ); /* Begin user sect3 */ -#define yyipwrap(n) 1 +#define yyipwrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; @@ -670,7 +672,7 @@ static bool ScanInt(const char * buf, uint32 & a) return true; } -#line 674 "IPFilterScanner.cpp" +#line 676 "IPFilterScanner.cpp" #define INITIAL 0 @@ -709,7 +711,7 @@ FILE *yyipget_out (void ); void yyipset_out (FILE * out_str ); -int yyipget_leng (void ); +yy_size_t yyipget_leng (void ); char *yyipget_text (void ); @@ -729,8 +731,6 @@ extern int yyipwrap (void ); #endif #endif - static void yyunput (int c,char *buf_ptr ); - #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif @@ -759,7 +759,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( yyiptext, yyipleng, 1, yyipout ) +#define ECHO do { if (fwrite( yyiptext, yyipleng, 1, yyipout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -770,7 +770,7 @@ static int input (void ); if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - int n; \ + size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyipin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -855,11 +855,6 @@ YY_DECL register char *yy_cp, *yy_bp; register int yy_act; -#line 106 "./IPFilterScanner.l" - - -#line 862 "IPFilterScanner.cpp" - if ( !(yy_init) ) { (yy_init) = 1; @@ -886,6 +881,12 @@ YY_DECL yyip_load_buffer_state( ); } + { +#line 106 "./IPFilterScanner.l" + + +#line 889 "IPFilterScanner.cpp" + while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); @@ -903,7 +904,7 @@ YY_DECL yy_match: do { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -1010,7 +1011,7 @@ YY_RULE_SETUP #line 155 "./IPFilterScanner.l" ECHO; YY_BREAK -#line 1014 "IPFilterScanner.cpp" +#line 1015 "IPFilterScanner.cpp" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1141,6 +1142,7 @@ case YY_STATE_EOF(INITIAL): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ + } /* end of user's declarations */ } /* end of yyiplex */ /* yy_get_next_buffer - try to read in a new buffer @@ -1196,21 +1198,21 @@ static int yy_get_next_buffer (void) else { - int num_to_read = + yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { - int new_size = b->yy_buf_size * 2; + yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; @@ -1241,7 +1243,7 @@ static int yy_get_next_buffer (void) /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), (size_t) num_to_read ); + (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } @@ -1337,44 +1339,7 @@ static int yy_get_next_buffer (void) yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 168); - return yy_is_jam ? 0 : yy_current_state; -} - - static void yyunput (int c, register char * yy_bp ) -{ - register char *yy_cp; - - yy_cp = (yy_c_buf_p); - - /* undo effects of setting up yyiptext */ - *yy_cp = (yy_hold_char); - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - - while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - *--dest = *--source; - - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--yy_cp = (char) c; - - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; + return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT @@ -1401,7 +1366,7 @@ static int yy_get_next_buffer (void) else { /* need more input */ - int offset = (yy_c_buf_p) - (yytext_ptr); + yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) @@ -1563,10 +1528,6 @@ static void yyip_load_buffer_state (void) yyipfree((void *) b ); } -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ - /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyiprestart() or at EOF. @@ -1679,7 +1640,7 @@ void yyippop_buffer_state (void) */ static void yyipensure_buffer_stack (void) { - int num_to_alloc; + yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { @@ -1771,17 +1732,17 @@ YY_BUFFER_STATE yyip_scan_string (yyconst char * yystr ) /** Setup the input buffer state to scan the given bytes. The next call to yyiplex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yyip_scan_bytes (yyconst char * yybytes, int _yybytes_len ) +YY_BUFFER_STATE yyip_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; - int i; + yy_size_t i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; @@ -1863,7 +1824,7 @@ FILE *yyipget_out (void) /** Get the length of the current token. * */ -int yyipget_leng (void) +yy_size_t yyipget_leng (void) { return yyipleng; } diff --git a/src/Makefile.am b/src/Makefile.am index 47bb20ad..cfde5b4f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,7 +19,6 @@ EXTRA_DIST = \ LibSocketAsio.cpp \ LibSocketWX.cpp \ Parser.y \ - Scanner.h.in \ Scanner.l \ IPFilterScanner.l \ muuli.wdr @@ -467,21 +466,6 @@ noinst_HEADERS = \ MAINTAINERCLEANFILES = Makefile.in -$(srcdir)/Parser.cpp: Parser.y - bison --debug -t -d -v -o $@ $(srcdir)/Parser.y - -if GENERATE_FLEX_HEADER -$(srcdir)/Scanner.cpp: Scanner.l Parser.cpp - $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l -else -$(srcdir)/Scanner.cpp: Scanner.l Parser.cpp - $(LEX) -o $@ $(srcdir)/Scanner.l; \ - echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h -endif -$(srcdir)/Scanner.h: $(srcdir)/Scanner.cpp - -$(srcdir)/IPFilterScanner.cpp: IPFilterScanner.l - $(LEX) -Pyyip -o $@ $(srcdir)/IPFilterScanner.l; # Resources diff --git a/src/Makefile.in b/src/Makefile.in index a64e0693..fd7f49cb 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -574,9 +574,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -657,8 +654,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ @@ -725,7 +720,6 @@ EXTRA_DIST = \ LibSocketAsio.cpp \ LibSocketWX.cpp \ Parser.y \ - Scanner.h.in \ Scanner.l \ IPFilterScanner.l \ muuli.wdr @@ -5229,19 +5223,6 @@ uninstall-am: uninstall-binPROGRAMS .PRECIOUS: Makefile -$(srcdir)/Parser.cpp: Parser.y - bison --debug -t -d -v -o $@ $(srcdir)/Parser.y - -@GENERATE_FLEX_HEADER_TRUE@$(srcdir)/Scanner.cpp: Scanner.l Parser.cpp -@GENERATE_FLEX_HEADER_TRUE@ $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l -@GENERATE_FLEX_HEADER_FALSE@$(srcdir)/Scanner.cpp: Scanner.l Parser.cpp -@GENERATE_FLEX_HEADER_FALSE@ $(LEX) -o $@ $(srcdir)/Scanner.l; \ -@GENERATE_FLEX_HEADER_FALSE@ echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h -$(srcdir)/Scanner.h: $(srcdir)/Scanner.cpp - -$(srcdir)/IPFilterScanner.cpp: IPFilterScanner.l - $(LEX) -Pyyip -o $@ $(srcdir)/IPFilterScanner.l; - @NEED_RC_TRUE@.rc.$(OBJEXT): @NEED_RC_TRUE@ $(RC) $(MULERCFLAGS) -I$(top_srcdir) $(RCFLAGS) -O COFF -i "$<" -o "$@" diff --git a/src/Parser.cpp b/src/Parser.cpp index 368dacdd..f322cc70 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -1,9 +1,8 @@ -/* A Bison parser, made by GNU Bison 2.4.2. */ +/* A Bison parser, made by GNU Bison 3.0.4. */ -/* Skeleton implementation for Bison's Yacc-like parsers in C +/* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software - Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -45,7 +44,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "2.4.2" +#define YYBISON_VERSION "3.0.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -59,18 +58,13 @@ /* Pull parsers. */ #define YYPULL 1 -/* Using locations. */ -#define YYLSP_NEEDED 0 /* Copy the first part of user declarations. */ - -/* Line 189 of yacc.c */ -#line 1 "./Parser.y" +#line 1 "./Parser.y" /* yacc.c:339 */ #include "SearchExpr.h" -#include "Scanner.h.in" #include "Scanner.h" #include "OtherFunctions.h" @@ -87,14 +81,15 @@ int yyerror(const char* errstr); int yyerror(wxString errstr); +#line 85 "Parser.cpp" /* yacc.c:339 */ -/* Line 189 of yacc.c */ -#line 94 "Parser.cpp" - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 1 -#endif +# ifndef YY_NULLPTR +# if defined __cplusplus && 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE @@ -104,54 +99,59 @@ int yyerror(wxString errstr); # define YYERROR_VERBOSE 0 #endif -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 +/* In a future release of Bison, this section will be replaced + by #include "Parser.hpp". */ +#ifndef YY_YY_PARSER_HPP_INCLUDED +# define YY_YY_PARSER_HPP_INCLUDED +/* Debug traces. */ +#ifndef YYDEBUG +# define YYDEBUG 1 +#endif +#if YYDEBUG +extern int yydebug; #endif - -/* Tokens. */ +/* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - TOK_STRING = 258, - TOK_AND = 259, - TOK_OR = 260, - TOK_NOT = 261, - TOK_ED2K_LINK = 262 - }; + enum yytokentype + { + TOK_STRING = 258, + TOK_AND = 259, + TOK_OR = 260, + TOK_NOT = 261, + TOK_ED2K_LINK = 262 + }; #endif - - +/* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -{ -/* Line 214 of yacc.c */ -#line 22 "./Parser.y" +union YYSTYPE +{ +#line 20 "./Parser.y" /* yacc.c:355 */ wxString* pstr; CSearchExpr* pexpr; +#line 138 "Parser.cpp" /* yacc.c:355 */ +}; - -/* Line 214 of yacc.c */ -#line 144 "Parser.cpp" -} YYSTYPE; +typedef union YYSTYPE YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif -/* Copy the second part of user declarations. */ +extern YYSTYPE yylval; + +int yyparse (void); + +#endif /* !YY_YY_PARSER_HPP_INCLUDED */ +/* Copy the second part of user declarations. */ -/* Line 264 of yacc.c */ -#line 156 "Parser.cpp" +#line 155 "Parser.cpp" /* yacc.c:358 */ #ifdef short # undef short @@ -165,11 +165,8 @@ typedef unsigned char yytype_uint8; #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; -#elif (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -typedef signed char yytype_int8; #else -typedef short int yytype_int8; +typedef signed char yytype_int8; #endif #ifdef YYTYPE_UINT16 @@ -189,8 +186,7 @@ typedef short int yytype_int16; # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t -# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) +# elif ! defined YYSIZE_T # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else @@ -204,39 +200,68 @@ typedef short int yytype_int16; # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ -# define YY_(msgid) dgettext ("bison-runtime", msgid) +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ -# define YY_(msgid) msgid +# define YY_(Msgid) Msgid +# endif +#endif + +#ifndef YY_ATTRIBUTE +# if (defined __GNUC__ \ + && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ + || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C +# define YY_ATTRIBUTE(Spec) __attribute__(Spec) +# else +# define YY_ATTRIBUTE(Spec) /* empty */ +# endif +#endif + +#ifndef YY_ATTRIBUTE_PURE +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +#endif + +#ifndef YY_ATTRIBUTE_UNUSED +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +#endif + +#if !defined _Noreturn \ + && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) +# if defined _MSC_VER && 1200 <= _MSC_VER +# define _Noreturn __declspec (noreturn) +# else +# define _Noreturn YY_ATTRIBUTE ((__noreturn__)) # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ -# define YYUSE(e) ((void) (e)) +# define YYUSE(E) ((void) (E)) #else -# define YYUSE(e) /* empty */ +# define YYUSE(E) /* empty */ #endif -/* Identity function, used to suppress warnings about constant conditions. */ -#ifndef lint -# define YYID(n) (n) +#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +/* Suppress an incorrect diagnostic about yylval being uninitialized. */ +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ + _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ + _Pragma ("GCC diagnostic pop") #else -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static int -YYID (int yyi) -#else -static int -YYID (yyi) - int yyi; +# define YY_INITIAL_VALUE(Value) Value #endif -{ - return yyi; -} +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END +#endif +#ifndef YY_INITIAL_VALUE +# define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif + #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -254,11 +279,11 @@ YYID (yyi) # define alloca _alloca # else # define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS # include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 # endif # endif # endif @@ -266,8 +291,8 @@ YYID (yyi) # endif # ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) + /* Pacify GCC's 'empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely @@ -281,25 +306,23 @@ YYID (yyi) # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif -# if (defined __cplusplus && ! defined _STDLIB_H \ +# if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) + && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc -# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) +# if ! defined malloc && ! defined EXIT_SUCCESS void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free -# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) +# if ! defined free && ! defined EXIT_SUCCESS void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif @@ -309,7 +332,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ - || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc @@ -327,42 +350,46 @@ union yyalloc ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) -/* Copy COUNT objects from FROM to TO. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) -# else -# define YYCOPY(To, From, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ - while (YYID (0)) -# endif -# endif +# define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (YYID (0)) +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) #endif +#if defined YYCOPY_NEEDED && YYCOPY_NEEDED +/* Copy COUNT objects from SRC to DST. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ + while (0) +# endif +# endif +#endif /* !YYCOPY_NEEDED */ + /* YYFINAL -- State number of the termination state. */ #define YYFINAL 15 /* YYLAST -- Last index in YYTABLE. */ @@ -374,17 +401,19 @@ union yyalloc #define YYNNTS 4 /* YYNRULES -- Number of rules. */ #define YYNRULES 18 -/* YYNRULES -- Number of states. */ +/* YYNSTATES -- Number of states. */ #define YYNSTATES 28 -/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ +/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned + by yylex, with out-of-bounds checking. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 262 -#define YYTRANSLATE(YYX) \ +#define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) -/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ +/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM + as returned by yylex, without out-of-bounds checking. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -417,70 +446,56 @@ static const yytype_uint8 yytranslate[] = }; #if YYDEBUG -/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in - YYRHS. */ -static const yytype_uint8 yyprhs[] = -{ - 0, 0, 3, 5, 7, 10, 12, 16, 20, 24, - 28, 32, 36, 39, 43, 46, 49, 52, 54 -}; - -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const yytype_int8 yyrhs[] = -{ - 11, 0, -1, 12, -1, 7, -1, 12, 1, -1, - 13, -1, 12, 4, 12, -1, 12, 5, 12, -1, - 12, 6, 12, -1, 8, 12, 9, -1, 12, 5, - 1, -1, 12, 6, 1, -1, 8, 1, -1, 8, - 12, 1, -1, 4, 1, -1, 5, 1, -1, 6, - 1, -1, 3, -1, 13, 3, -1 -}; - -/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ + /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { - 0, 41, 41, 47, 56, 65, 66, 76, 86, 96, - 101, 107, 113, 118, 124, 129, 134, 141, 146 + 0, 39, 39, 45, 54, 63, 64, 74, 84, 94, + 99, 105, 111, 116, 122, 127, 132, 139, 144 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +#if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "TOK_STRING", "TOK_AND", "TOK_OR", "TOK_NOT", "TOK_ED2K_LINK", "'('", "')'", "$accept", "action", - "searchexpr", "and_strings", 0 + "searchexpr", "and_strings", YY_NULLPTR }; #endif # ifdef YYPRINT -/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to - token YYLEX-NUM. */ +/* YYTOKNUM[NUM] -- (External) token number corresponding to the + (internal) symbol number NUM (which must be that of a token). */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 40, 41 }; # endif -/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = -{ - 0, 10, 11, 11, 11, 12, 12, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 13, 13 -}; +#define YYPACT_NINF -7 -/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = +#define yypact_value_is_default(Yystate) \ + (!!((Yystate) == (-7))) + +#define YYTABLE_NINF -3 + +#define yytable_value_is_error(Yytable_value) \ + 0 + + /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ +static const yytype_int8 yypact[] = { - 0, 2, 1, 1, 2, 1, 3, 3, 3, 3, - 3, 3, 2, 3, 2, 2, 2, 1, 2 + 38, -7, 1, 2, 6, -7, 13, 15, 34, 29, + -7, -7, -7, -7, 0, -7, -7, 44, 19, 25, + -7, -7, -7, 30, -7, 4, -7, -7 }; -/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state - STATE-NUM when YYTABLE doesn't specify something else to do. Zero - means the default is an error. */ + /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ static const yytype_uint8 yydefact[] = { 0, 17, 0, 0, 0, 3, 0, 0, 0, 5, @@ -488,33 +503,21 @@ static const yytype_uint8 yydefact[] = 18, 13, 9, 6, 10, 7, 11, 8 }; -/* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int8 yydefgoto[] = -{ - -1, 7, 8, 9 -}; - -/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -#define YYPACT_NINF -7 -static const yytype_int8 yypact[] = + /* YYPGOTO[NTERM-NUM]. */ +static const yytype_int8 yypgoto[] = { - 38, -7, 1, 2, 6, -7, 13, 15, 34, 29, - -7, -7, -7, -7, 0, -7, -7, 44, 19, 25, - -7, -7, -7, 30, -7, 4, -7, -7 + -7, -7, -6, -7 }; -/* YYPGOTO[NTERM-NUM]. */ -static const yytype_int8 yypgoto[] = + /* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int8 yydefgoto[] = { - -7, -7, -6, -7 + -1, 7, 8, 9 }; -/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule which - number is the opposite. If zero, do what YYDEFACT says. - If YYTABLE_NINF, syntax error. */ -#define YYTABLE_NINF -3 + /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int8 yytable[] = { 14, 21, 10, 11, 17, 18, 19, 12, 17, 22, @@ -535,8 +538,8 @@ static const yytype_int8 yycheck[] = 6, -1, 8 }; -/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ + /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing + symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 3, 4, 5, 6, 7, 8, 11, 12, 13, @@ -544,104 +547,55 @@ static const yytype_uint8 yystos[] = 3, 1, 9, 12, 1, 12, 1, 12 }; -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 - -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab - - -/* Like YYERROR except do call yyerror. This remains here temporarily - to ease the transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. However, - YYFAIL appears to be in use. Nevertheless, it is formally deprecated - in Bison 2.4.2's NEWS entry, where a plan to phase it out is - discussed. */ - -#define YYFAIL goto yyerrlab -#if defined YYFAIL - /* This is here to suppress warnings from the GCC cpp's - -Wunused-macros. Normally we don't worry about that warning, but - some users do, and we want to make it easy for users to remove - YYFAIL uses, which will produce warnings from Bison 2.5. */ -#endif + /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const yytype_uint8 yyr1[] = +{ + 0, 10, 11, 11, 11, 12, 12, 12, 12, 12, + 12, 12, 12, 12, 12, 12, 12, 13, 13 +}; -#define YYRECOVERING() (!!yyerrstatus) + /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +static const yytype_uint8 yyr2[] = +{ + 0, 2, 1, 1, 2, 1, 3, 3, 3, 3, + 3, 3, 2, 3, 2, 2, 2, 1, 2 +}; -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - yytoken = YYTRANSLATE (yychar); \ - YYPOPSTACK (1); \ - goto yybackup; \ - } \ - else \ - { \ - yyerror (YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ -while (YYID (0)) - - -#define YYTERROR 1 -#define YYERRCODE 256 - - -/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. - If N is 0, then set CURRENT to the empty location which ends - the previous symbol: RHS[0] (always defined). */ - -#define YYRHSLOC(Rhs, K) ((Rhs)[K]) -#ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (YYID (N)) \ - { \ - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ - } \ - else \ - { \ - (Current).first_line = (Current).last_line = \ - YYRHSLOC (Rhs, 0).last_line; \ - (Current).first_column = (Current).last_column = \ - YYRHSLOC (Rhs, 0).last_column; \ - } \ - while (YYID (0)) -#endif +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY (-2) +#define YYEOF 0 -/* YY_LOCATION_PRINT -- Print the location on the stream. - This macro was not mandated originally: define only if we know - we won't break user code: when these are the locations we know. */ +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab -#ifndef YY_LOCATION_PRINT -# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL -# define YY_LOCATION_PRINT(File, Loc) \ - fprintf (File, "%d.%d-%d.%d", \ - (Loc).first_line, (Loc).first_column, \ - (Loc).last_line, (Loc).last_column) -# else -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif -#endif +#define YYRECOVERING() (!!yyerrstatus) + +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror (YY_("syntax error: cannot back up")); \ + YYERROR; \ + } \ +while (0) + +/* Error token number */ +#define YYTERROR 1 +#define YYERRCODE 256 -/* YYLEX -- calling `yylex' with the right arguments. */ -#ifdef YYLEX_PARAM -# define YYLEX yylex (YYLEX_PARAM) -#else -# define YYLEX yylex () -#endif /* Enable debugging if requested. */ #if YYDEBUG @@ -651,54 +605,46 @@ while (YYID (0)) # define YYFPRINTF fprintf # endif -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (YYID (0)) +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yy_symbol_print (stderr, \ - Type, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (YYID (0)) +/* This macro is provided for backward compatibility. */ +#ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +#endif -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Type, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (0) + + +/*----------------------------------------. +| Print this symbol's value on YYOUTPUT. | +`----------------------------------------*/ -/*ARGSUSED*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) -#else -static void -yy_symbol_value_print (yyoutput, yytype, yyvaluep) - FILE *yyoutput; - int yytype; - YYSTYPE const * const yyvaluep; -#endif { + FILE *yyo = yyoutput; + YYUSE (yyo); if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# else - YYUSE (yyoutput); # endif - switch (yytype) - { - default: - break; - } + YYUSE (yytype); } @@ -706,22 +652,11 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) | Print this symbol on YYOUTPUT. | `--------------------------------*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) -#else -static void -yy_symbol_print (yyoutput, yytype, yyvaluep) - FILE *yyoutput; - int yytype; - YYSTYPE const * const yyvaluep; -#endif { - if (yytype < YYNTOKENS) - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); - else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); + YYFPRINTF (yyoutput, "%s %s (", + yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); @@ -732,16 +667,8 @@ yy_symbol_print (yyoutput, yytype, yyvaluep) | TOP (included). | `------------------------------------------------------------------*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) -#else -static void -yy_stack_print (yybottom, yytop) - yytype_int16 *yybottom; - yytype_int16 *yytop; -#endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) @@ -752,49 +679,42 @@ yy_stack_print (yybottom, yytop) YYFPRINTF (stderr, "\n"); } -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (YYID (0)) +# define YY_STACK_PRINT(Bottom, Top) \ +do { \ + if (yydebug) \ + yy_stack_print ((Bottom), (Top)); \ +} while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static void -yy_reduce_print (YYSTYPE *yyvsp, int yyrule) -#else -static void -yy_reduce_print (yyvsp, yyrule) - YYSTYPE *yyvsp; - int yyrule; -#endif +yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) { + unsigned long int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; - unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", - yyrule - 1, yylno); + yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], - &(yyvsp[(yyi + 1) - (yynrhs)]) - ); + yy_symbol_print (stderr, + yystos[yyssp[yyi + 1 - yynrhs]], + &(yyvsp[(yyi + 1) - (yynrhs)]) + ); YYFPRINTF (stderr, "\n"); } } -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyvsp, Rule); \ -} while (YYID (0)) +# define YY_REDUCE_PRINT(Rule) \ +do { \ + if (yydebug) \ + yy_reduce_print (yyssp, yyvsp, Rule); \ +} while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ @@ -808,7 +728,7 @@ int yydebug; /* YYINITDEPTH -- initial size of the parser's stacks. */ -#ifndef YYINITDEPTH +#ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif @@ -823,7 +743,6 @@ int yydebug; # define YYMAXDEPTH 10000 #endif - #if YYERROR_VERBOSE @@ -832,15 +751,8 @@ int yydebug; # define yystrlen strlen # else /* Return the length of YYSTR. */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) -#else -static YYSIZE_T -yystrlen (yystr) - const char *yystr; -#endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) @@ -856,16 +768,8 @@ yystrlen (yystr) # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) -#else -static char * -yystpcpy (yydest, yysrc) - char *yydest; - const char *yysrc; -#endif { char *yyd = yydest; const char *yys = yysrc; @@ -895,27 +799,27 @@ yytnamerr (char *yyres, const char *yystr) char const *yyp = yystr; for (;;) - switch (*++yyp) - { - case '\'': - case ',': - goto do_not_strip_quotes; - - case '\\': - if (*++yyp != '\\') - goto do_not_strip_quotes; - /* Fall through. */ - default: - if (yyres) - yyres[yyn] = *yyp; - yyn++; - break; - - case '"': - if (yyres) - yyres[yyn] = '\0'; - return yyn; - } + switch (*++yyp) + { + case '\'': + case ',': + goto do_not_strip_quotes; + + case '\\': + if (*++yyp != '\\') + goto do_not_strip_quotes; + /* Fall through. */ + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; + + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } do_not_strip_quotes: ; } @@ -926,161 +830,160 @@ yytnamerr (char *yyres, const char *yystr) } # endif -/* Copy into YYRESULT an error message about the unexpected token - YYCHAR while in state YYSTATE. Return the number of bytes copied, - including the terminating null byte. If YYRESULT is null, do not - copy anything; just return the number of bytes that would be - copied. As a special case, return 0 if an ordinary "syntax error" - message will do. Return YYSIZE_MAXIMUM if overflow occurs during - size calculation. */ -static YYSIZE_T -yysyntax_error (char *yyresult, int yystate, int yychar) +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return 2 if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, + yytype_int16 *yyssp, int yytoken) { - int yyn = yypact[yystate]; + YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); + YYSIZE_T yysize = yysize0; + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat. */ + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + /* Number of reported tokens (one for the "unexpected", one per + "expected"). */ + int yycount = 0; + + /* There are many possibilities here to consider: + - If this state is a consistent state with a default action, then + the only way this function was invoked is if the default action + is an error action. In that case, don't check for expected + tokens because there are none. + - The only way there can be no lookahead present (in yychar) is if + this state is a consistent state with a default action. Thus, + detecting the absence of a lookahead is sufficient to determine + that there is no unexpected or expected token to report. In that + case, just report a simple "syntax error". + - Don't assume there isn't a lookahead just because this state is a + consistent state with a default action. There might have been a + previous inconsistent state, consistent state with a non-default + action, or user semantic action that manipulated yychar. + - Of course, the expected token list depends on states to have + correct lookahead information, and it depends on the parser not + to perform extra reductions after fetching a lookahead from the + scanner and before detecting a syntax error. Thus, state merging + (from LALR or IELR) and default reductions corrupt the expected + token list. However, the list is correct for canonical LR with + one exception: it will still contain any token that will not be + accepted due to an error action in a later state. + */ + if (yytoken != YYEMPTY) + { + int yyn = yypact[*yyssp]; + yyarg[yycount++] = yytname[yytoken]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + break; + } + yyarg[yycount++] = yytname[yyx]; + { + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); + if (! (yysize <= yysize1 + && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } + } + } + } - if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) - return 0; - else + switch (yycount) { - int yytype = YYTRANSLATE (yychar); - YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); - YYSIZE_T yysize = yysize0; - YYSIZE_T yysize1; - int yysize_overflow = 0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - int yyx; - -# if 0 - /* This is so xgettext sees the translatable formats that are - constructed on the fly. */ - YY_("syntax error, unexpected %s"); - YY_("syntax error, unexpected %s, expecting %s"); - YY_("syntax error, unexpected %s, expecting %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); -# endif - char *yyfmt; - char const *yyf; - static char const yyunexpected[] = "syntax error, unexpected %s"; - static char const yyexpecting[] = ", expecting %s"; - static char const yyor[] = " or %s"; - char yyformat[sizeof yyunexpected - + sizeof yyexpecting - 1 - + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) - * (sizeof yyor - 1))]; - char const *yyprefix = yyexpecting; - - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yycount = 1; - - yyarg[0] = yytname[yytype]; - yyfmt = yystpcpy (yyformat, yyunexpected); - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - yyformat[sizeof yyunexpected - 1] = '\0'; - break; - } - yyarg[yycount++] = yytname[yyx]; - yysize1 = yysize + yytnamerr (0, yytname[yyx]); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - yyfmt = yystpcpy (yyfmt, yyprefix); - yyprefix = yyor; - } - - yyf = YY_(yyformat); - yysize1 = yysize + yystrlen (yyf); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - - if (yysize_overflow) - return YYSIZE_MAXIMUM; - - if (yyresult) - { - /* Avoid sprintf, as that infringes on the user's name space. - Don't have undefined behavior even if the translation - produced a string with the wrong number of "%s"s. */ - char *yyp = yyresult; - int yyi = 0; - while ((*yyp = *yyf) != '\0') - { - if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) - { - yyp += yytnamerr (yyp, yyarg[yyi++]); - yyf += 2; - } - else - { - yyp++; - yyf++; - } - } - } - return yysize; +# define YYCASE_(N, S) \ + case N: \ + yyformat = S; \ + break + YYCASE_(0, YY_("syntax error")); + YYCASE_(1, YY_("syntax error, unexpected %s")); + YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); + YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); + YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); + YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); +# undef YYCASE_ + } + + { + YYSIZE_T yysize1 = yysize + yystrlen (yyformat); + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } + + if (*yymsg_alloc < yysize) + { + *yymsg_alloc = 2 * yysize; + if (! (yysize <= *yymsg_alloc + && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) + *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; + return 1; } + + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + { + char *yyp = *yymsg; + int yyi = 0; + while ((*yyp = *yyformat) != '\0') + if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyformat += 2; + } + else + { + yyp++; + yyformat++; + } + } + return 0; } #endif /* YYERROR_VERBOSE */ - /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ -/*ARGSUSED*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) -#else -static void -yydestruct (yymsg, yytype, yyvaluep) - const char *yymsg; - int yytype; - YYSTYPE *yyvaluep; -#endif { YYUSE (yyvaluep); - if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); - switch (yytype) - { - - default: - break; - } + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YYUSE (yytype); + YY_IGNORE_MAYBE_UNINITIALIZED_END } -/* Prevent warnings from -Wmissing-prototypes. */ -#ifdef YYPARSE_PARAM -#if defined __STDC__ || defined __cplusplus -int yyparse (void *YYPARSE_PARAM); -#else -int yyparse (); -#endif -#else /* ! YYPARSE_PARAM */ -#if defined __STDC__ || defined __cplusplus -int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ + /* The lookahead symbol. */ @@ -1088,49 +991,26 @@ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; - /* Number of syntax errors so far. */ int yynerrs; +/*----------. +| yyparse. | +`----------*/ -/*-------------------------. -| yyparse or yypush_parse. | -`-------------------------*/ - -#ifdef YYPARSE_PARAM -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -int -yyparse (void *YYPARSE_PARAM) -#else -int -yyparse (YYPARSE_PARAM) - void *YYPARSE_PARAM; -#endif -#else /* ! YYPARSE_PARAM */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) int yyparse (void) -#else -int -yyparse () - -#endif -#endif { - - int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: - `yyss': related to states. - `yyvs': related to semantic values. + 'yyss': related to states. + 'yyvs': related to semantic values. - Refer to the stacks thru separate pointers, to allow yyoverflow + Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ @@ -1148,7 +1028,7 @@ yyparse () int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ - int yytoken; + int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; @@ -1166,9 +1046,8 @@ yyparse () Keep to zero when no symbol should be popped. */ int yylen = 0; - yytoken = 0; - yyss = yyssa; - yyvs = yyvsa; + yyssp = yyss = yyssa; + yyvsp = yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); @@ -1177,14 +1056,6 @@ yyparse () yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - yyssp = yyss; - yyvsp = yyvs; - goto yysetstate; /*------------------------------------------------------------. @@ -1205,23 +1076,23 @@ yyparse () #ifdef yyoverflow { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; - - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), - &yystacksize); - - yyss = yyss1; - yyvs = yyvs1; + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + YYSTYPE *yyvs1 = yyvs; + yytype_int16 *yyss1 = yyss; + + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. This used to be a + conditional around just the two extra args, but that might + be undefined if yyoverflow is a macro. */ + yyoverflow (YY_("memory exhausted"), + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); + + yyss = yyss1; + yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE @@ -1229,22 +1100,22 @@ yyparse () # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; + goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; + yystacksize = YYMAXDEPTH; { - yytype_int16 *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); + yytype_int16 *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyexhaustedlab; + YYSTACK_RELOCATE (yyss_alloc, yyss); + YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ @@ -1253,10 +1124,10 @@ yyparse () yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long int) yystacksize)); + (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) - YYABORT; + YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); @@ -1276,7 +1147,7 @@ yybackup: /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; - if (yyn == YYPACT_NINF) + if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ @@ -1285,7 +1156,7 @@ yybackup: if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); - yychar = YYLEX; + yychar = yylex (); } if (yychar <= YYEOF) @@ -1307,8 +1178,8 @@ yybackup: yyn = yytable[yyn]; if (yyn <= 0) { - if (yyn == 0 || yyn == YYTABLE_NINF) - goto yyerrlab; + if (yytable_value_is_error (yyn)) + goto yyerrlab; yyn = -yyn; goto yyreduce; } @@ -1325,7 +1196,9 @@ yybackup: yychar = YYEMPTY; yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; @@ -1348,7 +1221,7 @@ yyreduce: yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: - `$$ = $1'. + '$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison @@ -1362,200 +1235,193 @@ yyreduce: switch (yyn) { case 2: - -/* Line 1464 of yacc.c */ -#line 42 "./Parser.y" +#line 40 "./Parser.y" /* yacc.c:1646 */ { - ParsedSearchExpression((yyvsp[(1) - (1)].pexpr)); - delete (yyvsp[(1) - (1)].pexpr); + ParsedSearchExpression((yyvsp[0].pexpr)); + delete (yyvsp[0].pexpr); return 0; - ;} + } +#line 1245 "Parser.cpp" /* yacc.c:1646 */ break; case 3: - -/* Line 1464 of yacc.c */ -#line 48 "./Parser.y" +#line 46 "./Parser.y" /* yacc.c:1646 */ { - CSearchExpr* pexpr = new CSearchExpr(*(yyvsp[(1) - (1)].pstr)); + CSearchExpr* pexpr = new CSearchExpr(*(yyvsp[0].pstr)); ParsedSearchExpression(pexpr); delete pexpr; - delete (yyvsp[(1) - (1)].pstr); + delete (yyvsp[0].pstr); return 0; - ;} + } +#line 1257 "Parser.cpp" /* yacc.c:1646 */ break; case 4: - -/* Line 1464 of yacc.c */ -#line 57 "./Parser.y" +#line 55 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Undefined search expression error")); - delete (yyvsp[(1) - (2)].pexpr); + delete (yyvsp[-1].pexpr); return 1; - ;} + } +#line 1267 "Parser.cpp" /* yacc.c:1646 */ break; case 6: - -/* Line 1464 of yacc.c */ -#line 67 "./Parser.y" +#line 65 "./Parser.y" /* yacc.c:1646 */ { CSearchExpr* pexpr = new CSearchExpr; pexpr->Add(SEARCHOP_AND); - pexpr->Add((yyvsp[(1) - (3)].pexpr)); - pexpr->Add((yyvsp[(3) - (3)].pexpr)); + pexpr->Add((yyvsp[-2].pexpr)); + pexpr->Add((yyvsp[0].pexpr)); (yyval.pexpr) = pexpr; - delete (yyvsp[(1) - (3)].pexpr); - delete (yyvsp[(3) - (3)].pexpr); - ;} + delete (yyvsp[-2].pexpr); + delete (yyvsp[0].pexpr); + } +#line 1281 "Parser.cpp" /* yacc.c:1646 */ break; case 7: - -/* Line 1464 of yacc.c */ -#line 77 "./Parser.y" +#line 75 "./Parser.y" /* yacc.c:1646 */ { CSearchExpr* pexpr = new CSearchExpr; pexpr->Add(SEARCHOP_OR); - pexpr->Add((yyvsp[(1) - (3)].pexpr)); - pexpr->Add((yyvsp[(3) - (3)].pexpr)); + pexpr->Add((yyvsp[-2].pexpr)); + pexpr->Add((yyvsp[0].pexpr)); (yyval.pexpr) = pexpr; - delete (yyvsp[(1) - (3)].pexpr); - delete (yyvsp[(3) - (3)].pexpr); - ;} + delete (yyvsp[-2].pexpr); + delete (yyvsp[0].pexpr); + } +#line 1295 "Parser.cpp" /* yacc.c:1646 */ break; case 8: - -/* Line 1464 of yacc.c */ -#line 87 "./Parser.y" +#line 85 "./Parser.y" /* yacc.c:1646 */ { CSearchExpr* pexpr = new CSearchExpr; pexpr->Add(SEARCHOP_NOT); - pexpr->Add((yyvsp[(1) - (3)].pexpr)); - pexpr->Add((yyvsp[(3) - (3)].pexpr)); + pexpr->Add((yyvsp[-2].pexpr)); + pexpr->Add((yyvsp[0].pexpr)); (yyval.pexpr) = pexpr; - delete (yyvsp[(1) - (3)].pexpr); - delete (yyvsp[(3) - (3)].pexpr); - ;} + delete (yyvsp[-2].pexpr); + delete (yyvsp[0].pexpr); + } +#line 1309 "Parser.cpp" /* yacc.c:1646 */ break; case 9: - -/* Line 1464 of yacc.c */ -#line 97 "./Parser.y" +#line 95 "./Parser.y" /* yacc.c:1646 */ { - (yyval.pexpr) = (yyvsp[(2) - (3)].pexpr); - ;} + (yyval.pexpr) = (yyvsp[-1].pexpr); + } +#line 1317 "Parser.cpp" /* yacc.c:1646 */ break; case 10: - -/* Line 1464 of yacc.c */ -#line 102 "./Parser.y" +#line 100 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Missing right operand for OR on search expression")); - delete (yyvsp[(1) - (3)].pexpr); + delete (yyvsp[-2].pexpr); return 1; - ;} + } +#line 1327 "Parser.cpp" /* yacc.c:1646 */ break; case 11: - -/* Line 1464 of yacc.c */ -#line 108 "./Parser.y" +#line 106 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Missing operand for NOT on search expression")); - delete (yyvsp[(1) - (3)].pexpr); + delete (yyvsp[-2].pexpr); return 1; - ;} + } +#line 1337 "Parser.cpp" /* yacc.c:1646 */ break; case 12: - -/* Line 1464 of yacc.c */ -#line 114 "./Parser.y" +#line 112 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Missing left parenthesis on search expression")); return 1; - ;} + } +#line 1346 "Parser.cpp" /* yacc.c:1646 */ break; case 13: - -/* Line 1464 of yacc.c */ -#line 119 "./Parser.y" +#line 117 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Missing closing parenthesis on search expression")); - delete (yyvsp[(2) - (3)].pexpr); + delete (yyvsp[-1].pexpr); return 1; - ;} + } +#line 1356 "Parser.cpp" /* yacc.c:1646 */ break; case 14: - -/* Line 1464 of yacc.c */ -#line 125 "./Parser.y" +#line 123 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Missing left operand for AND on search expression")); return 1; - ;} + } +#line 1365 "Parser.cpp" /* yacc.c:1646 */ break; case 15: - -/* Line 1464 of yacc.c */ -#line 130 "./Parser.y" +#line 128 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Missing left operand for OR on search expression")); return 1; - ;} + } +#line 1374 "Parser.cpp" /* yacc.c:1646 */ break; case 16: - -/* Line 1464 of yacc.c */ -#line 135 "./Parser.y" +#line 133 "./Parser.y" /* yacc.c:1646 */ { yyerror(wxT("Missing left operand for NOT on search expression (?)")); return 1; - ;} + } +#line 1383 "Parser.cpp" /* yacc.c:1646 */ break; case 17: - -/* Line 1464 of yacc.c */ -#line 142 "./Parser.y" +#line 140 "./Parser.y" /* yacc.c:1646 */ { - (yyval.pexpr) = new CSearchExpr(*(yyvsp[(1) - (1)].pstr)); - delete (yyvsp[(1) - (1)].pstr); - ;} + (yyval.pexpr) = new CSearchExpr(*(yyvsp[0].pstr)); + delete (yyvsp[0].pstr); + } +#line 1392 "Parser.cpp" /* yacc.c:1646 */ break; case 18: - -/* Line 1464 of yacc.c */ -#line 147 "./Parser.y" +#line 145 "./Parser.y" /* yacc.c:1646 */ { /*$1->Concatenate($2); delete $2;*/ CSearchExpr* pexpr = new CSearchExpr; pexpr->Add(SEARCHOP_AND); - pexpr->Add((yyvsp[(1) - (2)].pexpr)); - pexpr->Add(*(yyvsp[(2) - (2)].pstr)); + pexpr->Add((yyvsp[-1].pexpr)); + pexpr->Add(*(yyvsp[0].pstr)); (yyval.pexpr) = pexpr; - delete (yyvsp[(1) - (2)].pexpr); - delete (yyvsp[(2) - (2)].pstr); - ;} + delete (yyvsp[-1].pexpr); + delete (yyvsp[0].pstr); + } +#line 1408 "Parser.cpp" /* yacc.c:1646 */ break; - -/* Line 1464 of yacc.c */ -#line 1558 "Parser.cpp" +#line 1412 "Parser.cpp" /* yacc.c:1646 */ default: break; } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); @@ -1564,7 +1430,7 @@ yyreduce: *++yyvsp = yyval; - /* Now `shift' the result of the reduction. Determine what state + /* Now 'shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ @@ -1579,10 +1445,14 @@ yyreduce: goto yynewstate; -/*------------------------------------. -| yyerrlab -- here on detecting error | -`------------------------------------*/ +/*--------------------------------------. +| yyerrlab -- here on detecting error. | +`--------------------------------------*/ yyerrlab: + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); + /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { @@ -1590,37 +1460,36 @@ yyerrlab: #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else +# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ + yyssp, yytoken) { - YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); - if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) - { - YYSIZE_T yyalloc = 2 * yysize; - if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) - yyalloc = YYSTACK_ALLOC_MAXIMUM; - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yyalloc); - if (yymsg) - yymsg_alloc = yyalloc; - else - { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - } - } - - if (0 < yysize && yysize <= yymsg_alloc) - { - (void) yysyntax_error (yymsg, yystate, yychar); - yyerror (yymsg); - } - else - { - yyerror (YY_("syntax error")); - if (yysize != 0) - goto yyexhaustedlab; - } + char const *yymsgp = YY_("syntax error"); + int yysyntax_error_status; + yysyntax_error_status = YYSYNTAX_ERROR; + if (yysyntax_error_status == 0) + yymsgp = yymsg; + else if (yysyntax_error_status == 1) + { + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); + yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); + if (!yymsg) + { + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = 2; + } + else + { + yysyntax_error_status = YYSYNTAX_ERROR; + yymsgp = yymsg; + } + } + yyerror (yymsgp); + if (yysyntax_error_status == 2) + goto yyexhaustedlab; } +# undef YYSYNTAX_ERROR #endif } @@ -1629,20 +1498,20 @@ yyerrlab: if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an - error, discard it. */ + error, discard it. */ if (yychar <= YYEOF) - { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; - } + { + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; + } else - { - yydestruct ("Error: discarding", - yytoken, &yylval); - yychar = YYEMPTY; - } + { + yydestruct ("Error: discarding", + yytoken, &yylval); + yychar = YYEMPTY; + } } /* Else will try to reuse lookahead token after shifting the error @@ -1661,7 +1530,7 @@ yyerrorlab: if (/*CONSTCOND*/ 0) goto yyerrorlab; - /* Do not reclaim the symbols of the rule which action triggered + /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; @@ -1674,35 +1543,37 @@ yyerrorlab: | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ + yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; - if (yyn != YYPACT_NINF) - { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) - { - yyn = yytable[yyn]; - if (0 < yyn) - break; - } - } + if (!yypact_value_is_default (yyn)) + { + yyn += YYTERROR; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + { + yyn = yytable[yyn]; + if (0 < yyn) + break; + } + } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) - YYABORT; + YYABORT; yydestruct ("Error: popping", - yystos[yystate], yyvsp); + yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ @@ -1726,7 +1597,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#if !defined(yyoverflow) || YYERROR_VERBOSE +#if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ @@ -1738,16 +1609,21 @@ yyexhaustedlab: yyreturn: if (yychar != YYEMPTY) - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval); - /* Do not reclaim the symbols of the rule which action triggered + { + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE (yychar); + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + } + /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp); + yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow @@ -1758,14 +1634,9 @@ yyreturn: if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif - /* Make sure YYID is used. */ - return YYID (yyresult); + return yyresult; } - - - -/* Line 1684 of yacc.c */ -#line 160 "./Parser.y" +#line 158 "./Parser.y" /* yacc.c:1906 */ int yyerror(const char* errstr) @@ -1785,4 +1656,3 @@ int yyerror(wxString errstr) _astrParserErrors.Add(errstr); return EXIT_FAILURE; } - diff --git a/src/Parser.hpp b/src/Parser.hpp index e4f7a331..10bc992f 100644 --- a/src/Parser.hpp +++ b/src/Parser.hpp @@ -1,20 +1,19 @@ -/* A Bison parser, made by GNU Bison 2.4.2. */ +/* A Bison parser, made by GNU Bison 3.0.4. */ + +/* Bison interface for Yacc-like parsers in C + + Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. -/* Skeleton interface for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software - Foundation, Inc. - This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -27,47 +26,54 @@ special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. - + This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ +#ifndef YY_YY_PARSER_HPP_INCLUDED +# define YY_YY_PARSER_HPP_INCLUDED +/* Debug traces. */ +#ifndef YYDEBUG +# define YYDEBUG 1 +#endif +#if YYDEBUG +extern int yydebug; +#endif -/* Tokens. */ +/* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - TOK_STRING = 258, - TOK_AND = 259, - TOK_OR = 260, - TOK_NOT = 261, - TOK_ED2K_LINK = 262 - }; + enum yytokentype + { + TOK_STRING = 258, + TOK_AND = 259, + TOK_OR = 260, + TOK_NOT = 261, + TOK_ED2K_LINK = 262 + }; #endif - - +/* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -{ -/* Line 1685 of yacc.c */ -#line 22 "./Parser.y" +union YYSTYPE +{ +#line 20 "./Parser.y" /* yacc.c:1909 */ wxString* pstr; CSearchExpr* pexpr; +#line 67 "Parser.hpp" /* yacc.c:1909 */ +}; - -/* Line 1685 of yacc.c */ -#line 65 "Parser.hpp" -} YYSTYPE; +typedef union YYSTYPE YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif + extern YYSTYPE yylval; +int yyparse (void); +#endif /* !YY_YY_PARSER_HPP_INCLUDED */ diff --git a/src/Parser.y b/src/Parser.y index 9444052f..d938305c 100644 --- a/src/Parser.y +++ b/src/Parser.y @@ -1,6 +1,5 @@ %{ #include "SearchExpr.h" -#include "Scanner.h.in" #include "Scanner.h" #include "OtherFunctions.h" diff --git a/src/Scanner.cpp b/src/Scanner.cpp index f4a46125..a55e0e15 100644 --- a/src/Scanner.cpp +++ b/src/Scanner.cpp @@ -9,7 +9,7 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 +#define YY_FLEX_SUBMINOR_VERSION 39 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif @@ -54,7 +54,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -85,6 +84,8 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -153,7 +154,12 @@ typedef unsigned int flex_uint32_t; typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif -extern int yyleng; +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + +extern yy_size_t yyleng; extern FILE *yyin, *yyout; @@ -162,6 +168,7 @@ extern FILE *yyin, *yyout; #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) + #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ @@ -179,11 +186,6 @@ extern FILE *yyin, *yyout; #define unput(c) yyunput( c, (yytext_ptr) ) -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state @@ -201,7 +203,7 @@ struct yy_buffer_state /* Number of characters read into yy_ch_buf, not including EOB * characters. */ - int yy_n_chars; + yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to @@ -271,8 +273,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; -static int yy_n_chars; /* number of characters read into yy_ch_buf */ -int yyleng; +static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ +yy_size_t yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; @@ -300,7 +302,7 @@ static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); @@ -332,7 +334,7 @@ void yyfree (void * ); /* Begin user sect3 */ -#define yywrap(n) 1 +#define yywrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; @@ -560,6 +562,10 @@ char *yytext; #define isatty(DUMMY) 0 #endif +#if defined(_MSC_VER) && (_MSC_VER >= 1800) +#include // for std::min and std::max +#endif + #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE @@ -574,7 +580,7 @@ extern int yyerror(wxString errstr); #define YY_INPUT ReadLexBuff #define YY_FATAL_ERROR FatalLexError -static void ReadLexBuff(char* pcBuff, int& riResult, size_t uMaxSize); +static void ReadLexBuff(char* pcBuff, size_t& riResult, size_t uMaxSize); static void FatalLexError(yyconst char msg[]); static char* _pszLexBuff; @@ -583,7 +589,7 @@ static char* _pszLexStr; void LexInit(const wxString& pszInput); void LexFree(); -#line 584 "Scanner.cpp" +#line 593 "Scanner.cpp" #define INITIAL 0 @@ -622,7 +628,7 @@ FILE *yyget_out (void ); void yyset_out (FILE * out_str ); -int yyget_leng (void ); +yy_size_t yyget_leng (void ); char *yyget_text (void ); @@ -672,7 +678,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) +#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -683,7 +689,7 @@ static int input (void ); if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - int n; \ + size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -765,11 +771,6 @@ YY_DECL register char *yy_cp, *yy_bp; register int yy_act; -#line 40 "./Scanner.l" - - -#line 769 "Scanner.cpp" - if ( !(yy_init) ) { (yy_init) = 1; @@ -796,6 +797,12 @@ YY_DECL yy_load_buffer_state( ); } + { +#line 47 "./Scanner.l" + + +#line 805 "Scanner.cpp" + while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); @@ -812,7 +819,7 @@ YY_DECL yy_match: do { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -853,27 +860,27 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 42 "./Scanner.l" +#line 49 "./Scanner.l" { /* Skip blanks. */ } YY_BREAK case 2: YY_RULE_SETUP -#line 43 "./Scanner.l" +#line 50 "./Scanner.l" { return TOK_OR; } YY_BREAK case 3: YY_RULE_SETUP -#line 44 "./Scanner.l" +#line 51 "./Scanner.l" { return TOK_AND; } YY_BREAK case 4: YY_RULE_SETUP -#line 45 "./Scanner.l" +#line 52 "./Scanner.l" { return TOK_NOT; } YY_BREAK case 5: YY_RULE_SETUP -#line 47 "./Scanner.l" +#line 54 "./Scanner.l" { yylval.pstr = new wxString(UTF82unicode(yytext)); return TOK_ED2K_LINK; @@ -882,7 +889,7 @@ YY_RULE_SETUP case 6: /* rule 6 can match eol */ YY_RULE_SETUP -#line 52 "./Scanner.l" +#line 59 "./Scanner.l" { yylval.pstr = new wxString(UTF82unicode(yytext)); return TOK_STRING; @@ -890,7 +897,7 @@ YY_RULE_SETUP YY_BREAK case 7: YY_RULE_SETUP -#line 57 "./Scanner.l" +#line 64 "./Scanner.l" { int l = 128; char* psz = (char*)malloc(l); @@ -998,15 +1005,15 @@ YY_RULE_SETUP YY_BREAK case 8: YY_RULE_SETUP -#line 162 "./Scanner.l" +#line 169 "./Scanner.l" { return yytext[0]; } YY_BREAK case 9: YY_RULE_SETUP -#line 164 "./Scanner.l" +#line 171 "./Scanner.l" ECHO; YY_BREAK -#line 1007 "Scanner.cpp" +#line 1017 "Scanner.cpp" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1137,6 +1144,7 @@ case YY_STATE_EOF(INITIAL): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ + } /* end of user's declarations */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer @@ -1192,21 +1200,21 @@ static int yy_get_next_buffer (void) else { - int num_to_read = + yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { - int new_size = b->yy_buf_size * 2; + yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; @@ -1237,7 +1245,7 @@ static int yy_get_next_buffer (void) /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), (size_t) num_to_read ); + (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } @@ -1332,7 +1340,7 @@ static int yy_get_next_buffer (void) yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 56); - return yy_is_jam ? 0 : yy_current_state; + return yy_is_jam ? 0 : yy_current_state; } static void yyunput (int c, register char * yy_bp ) @@ -1347,7 +1355,7 @@ static int yy_get_next_buffer (void) if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; + register yy_size_t number_to_move = (yy_n_chars) + 2; register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; register char *source = @@ -1396,7 +1404,7 @@ static int yy_get_next_buffer (void) else { /* need more input */ - int offset = (yy_c_buf_p) - (yytext_ptr); + yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) @@ -1556,10 +1564,6 @@ static void yy_load_buffer_state (void) yyfree((void *) b ); } -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ - /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. @@ -1672,7 +1676,7 @@ void yypop_buffer_state (void) */ static void yyensure_buffer_stack (void) { - int num_to_alloc; + yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { @@ -1764,17 +1768,17 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; - int i; + yy_size_t i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; @@ -1856,7 +1860,7 @@ FILE *yyget_out (void) /** Get the length of the current token. * */ -int yyget_leng (void) +yy_size_t yyget_leng (void) { return yyleng; } @@ -2004,11 +2008,11 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 164 "./Scanner.l" +#line 171 "./Scanner.l" -static void ReadLexBuff(char* pcBuff, int& riResult, size_t uMaxSize) +static void ReadLexBuff(char* pcBuff, size_t& riResult, size_t uMaxSize) { wxASSERT( _pszLexBuff != NULL ); @@ -2055,12 +2059,6 @@ void LexFree() yy_last_accepting_state = 0; yy_last_accepting_cpos = NULL; -#if YY_STACK_USED - yy_start_stack_ptr = 0; - yy_start_stack_depth = 0; - yy_start_stack = NULL; -#endif - free(_pszLexStr); } diff --git a/src/Scanner.h b/src/Scanner.h index 3c36c214..08ef7845 100644 --- a/src/Scanner.h +++ b/src/Scanner.h @@ -13,7 +13,7 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 +#define YY_FLEX_SUBMINOR_VERSION 39 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif @@ -58,7 +58,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -89,6 +88,8 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -122,15 +123,15 @@ typedef unsigned int flex_uint32_t; typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif -extern int yyleng; - -extern FILE *yyin, *yyout; - #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif +extern yy_size_t yyleng; + +extern FILE *yyin, *yyout; + #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state @@ -148,7 +149,7 @@ struct yy_buffer_state /* Number of characters read into yy_ch_buf, not including EOB * characters. */ - int yy_n_chars; + yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to @@ -192,7 +193,7 @@ void yypop_buffer_state (void ); YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); @@ -200,7 +201,7 @@ void yyfree (void * ); /* Begin user sect3 */ -#define yywrap(n) 1 +#define yywrap() 1 #define YY_SKIP_YYWRAP extern int yylineno; @@ -246,7 +247,7 @@ FILE *yyget_out (void ); void yyset_out (FILE * out_str ); -int yyget_leng (void ); +yy_size_t yyget_leng (void ); char *yyget_text (void ); @@ -313,9 +314,9 @@ extern int yylex (void); #undef YY_DECL #endif -#line 164 "./Scanner.l" +#line 171 "./Scanner.l" -#line 320 "./Scanner.h" +#line 321 "./Scanner.h" #undef yyIN_HEADER #endif /* yyHEADER_H */ diff --git a/src/Scanner.h.in b/src/Scanner.h.in deleted file mode 100644 index 6c8bb2f9..00000000 --- a/src/Scanner.h.in +++ /dev/null @@ -1,4 +0,0 @@ -int yylex(); -int yylex_destroy(); -void LexInit(const wxString& pszInput); -void LexFree(); diff --git a/src/Scanner.l b/src/Scanner.l index dc7b0128..c86ce1f0 100644 --- a/src/Scanner.l +++ b/src/Scanner.l @@ -30,7 +30,6 @@ extern int yyerror(wxString errstr); #define YY_FATAL_ERROR FatalLexError static void ReadLexBuff(char* pcBuff, size_t& riResult, size_t uMaxSize); -static void ReadLexBuff(char* pcBuff, int& riResult, size_t uMaxSize); static void FatalLexError(yyconst char msg[]); static char* _pszLexBuff; @@ -187,13 +186,6 @@ static void ReadLexBuff(char* pcBuff, size_t& riResult, size_t uMaxSize) _pszLexBuff += uCharsRead; } -static void ReadLexBuff(char* pcBuff, int& riResult, size_t uMaxSize) -{ - size_t st_result = static_cast(riResult); - ReadLexBuff(pcBuff, st_result, uMaxSize); - riResult = static_cast(st_result); -} - static void FatalLexError(yyconst char msg[]) { #ifdef _CONSOLE @@ -225,11 +217,5 @@ void LexFree() yy_last_accepting_state = 0; yy_last_accepting_cpos = NULL; -#if YY_STACK_USED - yy_start_stack_ptr = 0; - yy_start_stack_depth = 0; - yy_start_stack = NULL; -#endif - free(_pszLexStr); } diff --git a/src/SearchList.cpp b/src/SearchList.cpp index 4935aeee..caaaf92c 100644 --- a/src/SearchList.cpp +++ b/src/SearchList.cpp @@ -53,12 +53,14 @@ #include "kademlia/kademlia/Search.h" #include "SearchExpr.h" -#include "Scanner.h.in" +#include "Scanner.h" +void LexInit(const wxString& pszInput); +void LexFree(); + +#include "Parser.hpp" +int yyerror(wxString errstr); -extern int yyparse(); -extern int yyerror(const char* errstr); -extern int yyerror(wxString errstr); static wxString s_strCurKadKeyword; diff --git a/src/libs/Makefile.in b/src/libs/Makefile.in index 41c7fafe..db61cff1 100644 --- a/src/libs/Makefile.in +++ b/src/libs/Makefile.in @@ -287,9 +287,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -370,8 +367,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/libs/common/Makefile.in b/src/libs/common/Makefile.in index 1b48a6a1..132b2c37 100644 --- a/src/libs/common/Makefile.in +++ b/src/libs/common/Makefile.in @@ -290,9 +290,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -373,8 +370,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/libs/ec/Makefile.in b/src/libs/ec/Makefile.in index 08b21da8..2a95f452 100644 --- a/src/libs/ec/Makefile.in +++ b/src/libs/ec/Makefile.in @@ -287,9 +287,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -370,8 +367,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/libs/ec/cpp/Makefile.in b/src/libs/ec/cpp/Makefile.in index b5d59a73..64725733 100644 --- a/src/libs/ec/cpp/Makefile.in +++ b/src/libs/ec/cpp/Makefile.in @@ -278,9 +278,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -361,8 +358,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/pixmaps/Makefile.in b/src/pixmaps/Makefile.in index 3710ce71..576f5fff 100644 --- a/src/pixmaps/Makefile.in +++ b/src/pixmaps/Makefile.in @@ -285,9 +285,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -368,8 +365,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/pixmaps/flags_xpm/Makefile.in b/src/pixmaps/flags_xpm/Makefile.in index 10118988..5f0536fa 100644 --- a/src/pixmaps/flags_xpm/Makefile.in +++ b/src/pixmaps/flags_xpm/Makefile.in @@ -225,9 +225,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -308,8 +305,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/skins/Makefile.in b/src/skins/Makefile.in index 1512eff0..f752dce7 100644 --- a/src/skins/Makefile.in +++ b/src/skins/Makefile.in @@ -256,9 +256,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -339,8 +336,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/Makefile.in b/src/utils/Makefile.in index 72e83ae2..b346e085 100644 --- a/src/utils/Makefile.in +++ b/src/utils/Makefile.in @@ -286,9 +286,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -369,8 +366,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/aLinkCreator/Makefile.in b/src/utils/aLinkCreator/Makefile.in index 903353d2..acdbf34e 100644 --- a/src/utils/aLinkCreator/Makefile.in +++ b/src/utils/aLinkCreator/Makefile.in @@ -318,9 +318,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -401,8 +398,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/aLinkCreator/docs/Makefile.in b/src/utils/aLinkCreator/docs/Makefile.in index d975a69c..62641a10 100644 --- a/src/utils/aLinkCreator/docs/Makefile.in +++ b/src/utils/aLinkCreator/docs/Makefile.in @@ -226,9 +226,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -309,8 +306,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/aLinkCreator/src/Makefile.in b/src/utils/aLinkCreator/src/Makefile.in index c61d6c76..02cc54f4 100644 --- a/src/utils/aLinkCreator/src/Makefile.in +++ b/src/utils/aLinkCreator/src/Makefile.in @@ -291,9 +291,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -374,8 +371,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/cas/Makefile.in b/src/utils/cas/Makefile.in index 98495ba7..50b9675e 100644 --- a/src/utils/cas/Makefile.in +++ b/src/utils/cas/Makefile.in @@ -352,9 +352,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -435,8 +432,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/cas/docs/Makefile.in b/src/utils/cas/docs/Makefile.in index 6a2f3396..a78c8490 100644 --- a/src/utils/cas/docs/Makefile.in +++ b/src/utils/cas/docs/Makefile.in @@ -226,9 +226,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -309,8 +306,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/fileview/Makefile.in b/src/utils/fileview/Makefile.in index 9af54458..34c25e9d 100644 --- a/src/utils/fileview/Makefile.in +++ b/src/utils/fileview/Makefile.in @@ -291,9 +291,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -374,8 +371,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/plasmamule/Makefile.in b/src/utils/plasmamule/Makefile.in index 29a9590d..3b2fa78d 100644 --- a/src/utils/plasmamule/Makefile.in +++ b/src/utils/plasmamule/Makefile.in @@ -351,9 +351,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -434,8 +431,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/scripts/genfiles b/src/utils/scripts/genfiles new file mode 100755 index 00000000..d0cbc0a4 --- /dev/null +++ b/src/utils/scripts/genfiles @@ -0,0 +1,86 @@ +#!/bin/sh -eu + +### +# (Re)generate parser and lexer files +# +# The script will regenerate lexers and parsers. Must be run from either the +# scripts directory or from the source tree root, or from the src subdirectory. +# +# The script will update only those files whose source (.l or .y file) is newer +# than the generated C/C++ files (and the ones that are missing, of course). +# The generated files are then post-processed to remove trailing whitespace. +# +# The script will automatically try to find the flex and bison executables, +# however, you can specify their location in the FLEX and YACC environment +# variables, respectively. It's your responsibility to supply suitable versions +# of the required programs that understand the passed flags. +# + +file_to_test="Scanner.l" + +# Find the sources and cd to src +if [ -f src/"${file_to_test}" ]; then + # We're in the source tree root + cd src +elif [ -f ../../"${file_to_test}" ]; then + # The script is being run from the scripts directory + cd ../.. +fi + +# Check if we're at the right location +if [ ! -f "${file_to_test}" ]; then + echo "Fatal error: Cannot find the sources" >&2 + exit 1 +fi + +${FLEX+:} false || FLEX=`which flex 2>/dev/null` || true +${FLEX+:} false || FLEX=`which lex 2>/dev/null` || true +${YACC+:} false || YACC=`which bison 2>/dev/null` || true +${YACC+:} false || YACC=`which yacc 2>/dev/null` || true + +if [ -z "${FLEX}" ]; then + echo "Fatal error: flex executable not found" >&2 + echo "You can specify the flex executable to be used in the FLEX environment variable" >&2 + exit 1 +fi + +if [ -z "${YACC}" ]; then + echo "Fatal error: bison/yacc executable not found" >&2 + echo "You can specify the bison or yacc executable to be used in the YACC environment variable" >&2 + exit 1 +fi + + +if [ ! -e IPFilterScanner.cpp -o IPFilterScanner.l -nt IPFilterScanner.cpp ]; then + echo "${FLEX}" -P yyip --nounput -o IPFilterScanner.cpp ./IPFilterScanner.l + "${FLEX}" -P yyip --nounput -o IPFilterScanner.cpp ./IPFilterScanner.l + sed -e 's/[ ]*$//' -i IPFilterScanner.cpp +fi + +if [ ! -e Scanner.cpp -o ! -e Scanner.h -o Scanner.l -nt Scanner.cpp -o Scanner.l -nt Scanner.h ]; then + echo "${FLEX}" --header-file=./Scanner.h -o Scanner.cpp ./Scanner.l + "${FLEX}" --header-file=./Scanner.h -o Scanner.cpp ./Scanner.l + sed -e 's/[ ]*$//' -i Scanner.cpp Scanner.h +fi + +if [ ! -e Parser.cpp -o ! -e Parser.hpp -o Parser.y -nt Parser.cpp -o Parser.y -nt Parser.hpp ]; then + echo "${YACC}" --debug -t -d -v -o Parser.cpp ./Parser.y + "${YACC}" --debug -t -d -v -o Parser.cpp ./Parser.y + rm -f Parser.output + sed -e 's/[ ]*$//' -i Parser.cpp Parser.hpp +fi + +cd webserver/src + +if [ ! -e php_lexer.c -o php_lexer.l -nt php_lexer.c ]; then + echo "${FLEX}" -P php --nounput --noyy_top_state --noyy_pop_state --noyy_push_state -o php_lexer.c php_lexer.l + "${FLEX}" -P php --nounput --noyy_top_state --noyy_pop_state --noyy_push_state -o php_lexer.c php_lexer.l + sed -e 's/[ ]*$//' -i php_lexer.c +fi + +if [ ! -e php_parser.c -o ! -e php_parser.h -o php_parser.y -nt php_parser.c -o php_parser.y -nt php_parser.h ]; then + echo "${YACC}" --debug -t -d -v -p php -o php_parser.c php_parser.y + "${YACC}" --debug -t -d -v -p php -o php_parser.c php_parser.y + rm -f php_parser.output + sed -e 's/[ ]*$//' -i php_parser.c php_parser.h +fi diff --git a/src/utils/wxCas/Makefile.in b/src/utils/wxCas/Makefile.in index 38e55617..87f085b5 100644 --- a/src/utils/wxCas/Makefile.in +++ b/src/utils/wxCas/Makefile.in @@ -316,9 +316,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -399,8 +396,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/wxCas/docs/Makefile.in b/src/utils/wxCas/docs/Makefile.in index 6c4de1d0..ecd397ee 100644 --- a/src/utils/wxCas/docs/Makefile.in +++ b/src/utils/wxCas/docs/Makefile.in @@ -226,9 +226,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -309,8 +306,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/wxCas/src/Makefile.in b/src/utils/wxCas/src/Makefile.in index 23efd8ef..2c5f9249 100644 --- a/src/utils/wxCas/src/Makefile.in +++ b/src/utils/wxCas/src/Makefile.in @@ -275,9 +275,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -358,8 +355,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/xas/Makefile.in b/src/utils/xas/Makefile.in index f308b8d2..573c0ba7 100644 --- a/src/utils/xas/Makefile.in +++ b/src/utils/xas/Makefile.in @@ -319,9 +319,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -402,8 +399,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/utils/xas/docs/Makefile.in b/src/utils/xas/docs/Makefile.in index 15153005..aeb60dff 100644 --- a/src/utils/xas/docs/Makefile.in +++ b/src/utils/xas/docs/Makefile.in @@ -257,9 +257,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -340,8 +337,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/webserver/Makefile.in b/src/webserver/Makefile.in index 792edc33..2447d769 100644 --- a/src/webserver/Makefile.in +++ b/src/webserver/Makefile.in @@ -285,9 +285,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -368,8 +365,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/webserver/default/Makefile.in b/src/webserver/default/Makefile.in index 8bf077e3..991c47f9 100644 --- a/src/webserver/default/Makefile.in +++ b/src/webserver/default/Makefile.in @@ -256,9 +256,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -339,8 +336,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/src/webserver/src/Makefile.am b/src/webserver/src/Makefile.am index df78aa16..46e4373b 100644 --- a/src/webserver/src/Makefile.am +++ b/src/webserver/src/Makefile.am @@ -16,16 +16,10 @@ amuleweb_SOURCES = \ php_amule_lib.cpp \ php_core_lib.cpp -php_parser.c: php_parser.y - bison --debug -t -d -v -p php -o $@ $< - -php_lexer.c: php_lexer.l - $(LEX) -P php -o$@ $< - amuleweb_DEPENDENCIES = ../../libs/common/libmulecommon.a ../../libs/ec/cpp/libec.a ../../libmulesocket.a amuleweb_CPPFLAGS = -I../.. -I$(top_srcdir)/src -I$(top_srcdir)/src/libs -I$(top_srcdir)/src/include \ $(MULECPPFLAGS) $(AMULEWEB_DEFS) $(BFD_CPPFLAGS) $(WXBASE_CPPFLAGS) \ - -DWEBSERVERDIR="\"$(pkgdatadir)/webserver\"" \ + -DWEBSERVERDIR="\"$(pkgdatadir)/webserver\"" -DYY_NO_INPUT \ $(INCINTL) $(ZLIB_CPPFLAGS) $(LIBUPNP_CPPFLAGS) amuleweb_CFLAGS = $(MULECFLAGS) $(WX_CFLAGS_ONLY) $(LIBPNG_CFLAGS) $(LIBUPNP_CFLAGS) amuleweb_CXXFLAGS = $(MULECXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY) $(LIBPNG_CFLAGS) $(LIBUPNP_CFLAGS) diff --git a/src/webserver/src/Makefile.in b/src/webserver/src/Makefile.in index abdd949d..b8dc8462 100644 --- a/src/webserver/src/Makefile.in +++ b/src/webserver/src/Makefile.in @@ -299,9 +299,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -382,8 +379,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ @@ -459,7 +454,7 @@ amuleweb_SOURCES = \ amuleweb_DEPENDENCIES = ../../libs/common/libmulecommon.a ../../libs/ec/cpp/libec.a ../../libmulesocket.a amuleweb_CPPFLAGS = -I../.. -I$(top_srcdir)/src -I$(top_srcdir)/src/libs -I$(top_srcdir)/src/include \ $(MULECPPFLAGS) $(AMULEWEB_DEFS) $(BFD_CPPFLAGS) $(WXBASE_CPPFLAGS) \ - -DWEBSERVERDIR="\"$(pkgdatadir)/webserver\"" \ + -DWEBSERVERDIR="\"$(pkgdatadir)/webserver\"" -DYY_NO_INPUT \ $(INCINTL) $(ZLIB_CPPFLAGS) $(LIBUPNP_CPPFLAGS) amuleweb_CFLAGS = $(MULECFLAGS) $(WX_CFLAGS_ONLY) $(LIBPNG_CFLAGS) $(LIBUPNP_CFLAGS) @@ -1021,12 +1016,6 @@ uninstall-am: uninstall-binPROGRAMS .PRECIOUS: Makefile -php_parser.c: php_parser.y - bison --debug -t -d -v -p php -o $@ $< - -php_lexer.c: php_lexer.l - $(LEX) -P php -o$@ $< - @NEED_RC_TRUE@.rc.$(OBJEXT): @NEED_RC_TRUE@ $(RC) $(MULERCFLAGS) -I$(top_srcdir) $(RCFLAGS) -O COFF -i "$<" -o "$@" diff --git a/src/webserver/src/php_lexer.c b/src/webserver/src/php_lexer.c index 8cfb777c..215cb8e6 100644 --- a/src/webserver/src/php_lexer.c +++ b/src/webserver/src/php_lexer.c @@ -28,7 +28,7 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 +#define YY_FLEX_SUBMINOR_VERSION 39 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif @@ -53,7 +53,7 @@ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. + * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 @@ -70,10 +70,9 @@ typedef uint32_t flex_uint32_t; typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; +typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -104,6 +103,8 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -172,7 +173,12 @@ typedef unsigned int flex_uint32_t; typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif -extern int phpleng; +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + +extern yy_size_t phpleng; extern FILE *phpin, *phpout; @@ -182,7 +188,7 @@ extern FILE *phpin, *phpout; /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires * access to the local variable yy_act. Since yyless() is a macro, it would break - * existing scanners that call yyless() from OUTSIDE phplex. + * existing scanners that call yyless() from OUTSIDE phplex. * One obvious solution it to make yy_act a global. I tried that, and saw * a 5% performance hit in a non-phplineno scanner, because yy_act is * normally declared as a register variable-- so it is not worth it. @@ -194,7 +200,14 @@ extern FILE *phpin, *phpout; if ( phptext[yyl] == '\n' )\ --phplineno;\ }while(0) - + #define YY_LINENO_REWIND_TO(dst) \ + do {\ + const char *p;\ + for ( p = yy_cp-1; p >= (dst); --p)\ + if ( *p == '\n' )\ + --phplineno;\ + }while(0) + /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ @@ -211,11 +224,6 @@ extern FILE *phpin, *phpout; #define unput(c) yyunput( c, (yytext_ptr) ) -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state @@ -233,7 +241,7 @@ struct yy_buffer_state /* Number of characters read into yy_ch_buf, not including EOB * characters. */ - int yy_n_chars; + yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to @@ -256,7 +264,7 @@ struct yy_buffer_state int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ - + /* Whether to try to fill the input buffer when we reach the * end of it. */ @@ -303,8 +311,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* yy_hold_char holds the character lost when phptext is formed. */ static char yy_hold_char; -static int yy_n_chars; /* number of characters read into yy_ch_buf */ -int phpleng; +static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ +yy_size_t phpleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; @@ -332,7 +340,7 @@ static void php_init_buffer (YY_BUFFER_STATE b,FILE *file ); YY_BUFFER_STATE php_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE php_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE php_scan_bytes (yyconst char *bytes,int len ); +YY_BUFFER_STATE php_scan_bytes (yyconst char *bytes,yy_size_t len ); void *phpalloc (yy_size_t ); void *phprealloc (void *,yy_size_t ); @@ -647,10 +655,10 @@ static yyconst flex_int16_t yy_chk[411] = /* Table of booleans, true if rule could match eol. */ static yyconst flex_int32_t yy_rule_can_match_eol[80] = { 0, -0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, }; static yy_state_type yy_last_accepting_state; @@ -728,7 +736,7 @@ int phpwrap(void) -#line 732 "php_lexer.c" +#line 740 "php_lexer.c" #define INITIAL 0 #define BLOCK_COMMENT 1 @@ -770,7 +778,7 @@ FILE *phpget_out (void ); void phpset_out (FILE * out_str ); -int phpget_leng (void ); +yy_size_t phpget_leng (void ); char *phpget_text (void ); @@ -790,8 +798,6 @@ extern int phpwrap (void ); #endif #endif - static void yyunput (int c,char *buf_ptr ); - #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif @@ -813,13 +819,7 @@ static int input (void ); static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = NULL; - - static void yy_push_state (int new_state ); - - static void yy_pop_state (void ); - - static int yy_top_state (void ); - + /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 @@ -830,7 +830,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( phptext, phpleng, 1, phpout ) +#define ECHO do { if (fwrite( phptext, phpleng, 1, phpout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -841,7 +841,7 @@ static int input (void ); if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - int n; \ + size_t n; \ for ( n = 0; n < max_size && \ (c = getc( phpin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -922,11 +922,6 @@ YY_DECL register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; - -#line 73 "php_lexer.l" - - -#line 930 "php_lexer.c" if ( !(yy_init) ) { @@ -954,6 +949,12 @@ YY_DECL php_load_buffer_state( ); } + { +#line 73 "php_lexer.l" + + +#line 957 "php_lexer.c" + while ( 1 ) /* loops until end-of-file is reached */ { (yy_more_len) = 0; @@ -976,7 +977,7 @@ YY_DECL yy_match: do { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -1006,10 +1007,10 @@ yy_find_action: if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) { - int yyl; + yy_size_t yyl; for ( yyl = (yy_more_len); yyl < phpleng; ++yyl ) if ( phptext[yyl] == '\n' ) - + phplineno++; ; } @@ -1485,7 +1486,7 @@ YY_RULE_SETUP #line 251 "php_lexer.l" ECHO; YY_BREAK -#line 1489 "php_lexer.c" +#line 1490 "php_lexer.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(BLOCK_COMMENT): case YY_STATE_EOF(LINE_COMMENT): @@ -1619,6 +1620,7 @@ case YY_STATE_EOF(INCLUDE): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ + } /* end of user's declarations */ } /* end of phplex */ /* yy_get_next_buffer - try to read in a new buffer @@ -1674,21 +1676,21 @@ static int yy_get_next_buffer (void) else { - int num_to_read = + yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { - int new_size = b->yy_buf_size * 2; + yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; @@ -1719,7 +1721,7 @@ static int yy_get_next_buffer (void) /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), (size_t) num_to_read ); + (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } @@ -1766,7 +1768,7 @@ static int yy_get_next_buffer (void) { register yy_state_type yy_current_state; register char *yy_cp; - + yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) @@ -1814,48 +1816,7 @@ static int yy_get_next_buffer (void) yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 275); - return yy_is_jam ? 0 : yy_current_state; -} - - static void yyunput (int c, register char * yy_bp ) -{ - register char *yy_cp; - - yy_cp = (yy_c_buf_p); - - /* undo effects of setting up phptext */ - *yy_cp = (yy_hold_char); - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - - while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - *--dest = *--source; - - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--yy_cp = (char) c; - - if ( c == '\n' ){ - --phplineno; - } - - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; + return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT @@ -1867,7 +1828,7 @@ static int yy_get_next_buffer (void) { int c; - + *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) @@ -1882,7 +1843,7 @@ static int yy_get_next_buffer (void) else { /* need more input */ - int offset = (yy_c_buf_p) - (yytext_ptr); + yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) @@ -1929,7 +1890,7 @@ static int yy_get_next_buffer (void) (yy_hold_char) = *++(yy_c_buf_p); if ( c == '\n' ) - + phplineno++; ; @@ -1939,12 +1900,12 @@ static int yy_get_next_buffer (void) /** Immediately switch to a different input stream. * @param input_file A readable stream. - * + * * @note This function does not reset the start condition to @c INITIAL . */ void phprestart (FILE * input_file ) { - + if ( ! YY_CURRENT_BUFFER ){ phpensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = @@ -1957,11 +1918,11 @@ static int yy_get_next_buffer (void) /** Switch to a different input buffer. * @param new_buffer The new input buffer. - * + * */ void php_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { - + /* TODO. We should be able to replace this entire function body * with * phppop_buffer_state(); @@ -2001,13 +1962,13 @@ static void php_load_buffer_state (void) /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * + * * @return the allocated buffer state. */ YY_BUFFER_STATE php_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; - + b = (YY_BUFFER_STATE) phpalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in php_create_buffer()" ); @@ -2030,11 +1991,11 @@ static void php_load_buffer_state (void) /** Destroy the buffer. * @param b a buffer created with php_create_buffer() - * + * */ void php_delete_buffer (YY_BUFFER_STATE b ) { - + if ( ! b ) return; @@ -2047,10 +2008,6 @@ static void php_load_buffer_state (void) phpfree((void *) b ); } -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ - /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a phprestart() or at EOF. @@ -2059,7 +2016,7 @@ extern int isatty (int ); { int oerrno = errno; - + php_flush_buffer(b ); b->yy_input_file = file; @@ -2075,13 +2032,13 @@ extern int isatty (int ); } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - + errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * + * */ void php_flush_buffer (YY_BUFFER_STATE b ) { @@ -2110,7 +2067,7 @@ extern int isatty (int ); * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. - * + * */ void phppush_buffer_state (YY_BUFFER_STATE new_buffer ) { @@ -2140,7 +2097,7 @@ void phppush_buffer_state (YY_BUFFER_STATE new_buffer ) /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. - * + * */ void phppop_buffer_state (void) { @@ -2163,8 +2120,8 @@ void phppop_buffer_state (void) */ static void phpensure_buffer_stack (void) { - int num_to_alloc; - + yy_size_t num_to_alloc; + if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this @@ -2177,9 +2134,9 @@ static void phpensure_buffer_stack (void) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in phpensure_buffer_stack()" ); - + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - + (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; @@ -2207,13 +2164,13 @@ static void phpensure_buffer_stack (void) /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer - * - * @return the newly allocated buffer state object. + * + * @return the newly allocated buffer state object. */ YY_BUFFER_STATE php_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; - + if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) @@ -2242,31 +2199,31 @@ YY_BUFFER_STATE php_scan_buffer (char * base, yy_size_t size ) /** Setup the input buffer state to scan a string. The next call to phplex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan - * + * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * php_scan_bytes() instead. */ YY_BUFFER_STATE php_scan_string (yyconst char * yystr ) { - + return php_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to phplex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. + * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE php_scan_bytes (yyconst char * yybytes, int _yybytes_len ) +YY_BUFFER_STATE php_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; - int i; - + yy_size_t i; + /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) phpalloc(n ); @@ -2290,43 +2247,6 @@ YY_BUFFER_STATE php_scan_bytes (yyconst char * yybytes, int _yybytes_len ) return b; } - static void yy_push_state (int new_state ) -{ - if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) ) - { - yy_size_t new_size; - - (yy_start_stack_depth) += YY_START_STACK_INCR; - new_size = (yy_start_stack_depth) * sizeof( int ); - - if ( ! (yy_start_stack) ) - (yy_start_stack) = (int *) phpalloc(new_size ); - - else - (yy_start_stack) = (int *) phprealloc((void *) (yy_start_stack),new_size ); - - if ( ! (yy_start_stack) ) - YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); - } - - (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START; - - BEGIN(new_state); -} - - static void yy_pop_state (void) -{ - if ( --(yy_start_stack_ptr) < 0 ) - YY_FATAL_ERROR( "start-condition stack underflow" ); - - BEGIN((yy_start_stack)[(yy_start_stack_ptr)]); -} - - static int yy_top_state (void) -{ - return (yy_start_stack)[(yy_start_stack_ptr) - 1]; -} - #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif @@ -2357,16 +2277,16 @@ static void yy_fatal_error (yyconst char* msg ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. - * + * */ int phpget_lineno (void) { - + return phplineno; } /** Get the input stream. - * + * */ FILE *phpget_in (void) { @@ -2374,7 +2294,7 @@ FILE *phpget_in (void) } /** Get the output stream. - * + * */ FILE *phpget_out (void) { @@ -2382,15 +2302,15 @@ FILE *phpget_out (void) } /** Get the length of the current token. - * + * */ -int phpget_leng (void) +yy_size_t phpget_leng (void) { return phpleng; } /** Get the current token. - * + * */ char *phpget_text (void) @@ -2400,18 +2320,18 @@ char *phpget_text (void) /** Set the current line number. * @param line_number - * + * */ void phpset_lineno (int line_number ) { - + phplineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. - * + * * @see php_switch_to_buffer */ void phpset_in (FILE * in_str ) @@ -2442,7 +2362,7 @@ static int yy_init_globals (void) /* We do not touch phplineno unless the option is enabled. */ phplineno = 1; - + (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; @@ -2472,7 +2392,7 @@ static int yy_init_globals (void) /* phplex_destroy is for both reentrant and non-reentrant scanners. */ int phplex_destroy (void) { - + /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ php_delete_buffer(YY_CURRENT_BUFFER ); diff --git a/src/webserver/src/php_parser.c b/src/webserver/src/php_parser.c dissimilarity index 63% index fd79131c..31e45dd3 100644 --- a/src/webserver/src/php_parser.c +++ b/src/webserver/src/php_parser.c @@ -1,3694 +1,3354 @@ -/* A Bison parser, made by GNU Bison 2.4.2. */ - -/* Skeleton implementation for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software - Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - -/* C LALR(1) parser skeleton written by Richard Stallman, by - simplifying the original so-called "semantic" parser. */ - -/* All symbols defined below should begin with yy or YY, to avoid - infringing on user name space. This should be done even for local - variables, as they might otherwise be expanded by user macros. - There are some unavoidable exceptions within include files to - define necessary library symbols; they are noted "INFRINGES ON - USER NAME SPACE" below. */ - -/* Identify Bison output. */ -#define YYBISON 1 - -/* Bison version. */ -#define YYBISON_VERSION "2.4.2" - -/* Skeleton name. */ -#define YYSKELETON_NAME "yacc.c" - -/* Pure parsers. */ -#define YYPURE 0 - -/* Push parsers. */ -#define YYPUSH 0 - -/* Pull parsers. */ -#define YYPULL 1 - -/* Using locations. */ -#define YYLSP_NEEDED 0 - -/* Substitute the variable and function names. */ -#define yyparse phpparse -#define yylex phplex -#define yyerror phperror -#define yylval phplval -#define yychar phpchar -#define yydebug phpdebug -#define yynerrs phpnerrs - - -/* Copy the first part of user declarations. */ - -/* Line 189 of yacc.c */ -#line 1 "php_parser.y" - -// -// This file is part of the aMule Project. -// -// Copyright (c) 2003-2011 aMule Team ( admin@amule.org / http://www.amule.org ) -// Copyright (c) 2005-2011 Froenchenko Leonid ( lfroen@gmail.com / http://www.amule.org ) -// -// Any parts of this program derived from the xMule, lMule or eMule project, -// or contributed by third-party developers are copyrighted by their -// respective authors. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA -// - -#include -#include - -#include "php_syntree.h" - -int phplex(void); - -// add item to syntree list -PHP_SYN_NODE *add_statement_2_list(PHP_SYN_NODE *list, PHP_SYN_NODE *st) -{ - if ( st && list) { - PHP_SYN_NODE *last = list; - while ( last->next_node ) { - last = last->next_node; - } - last->next_node = st; - return list; - } else if ( st ) { - return st; - } else { - return list; - } -} - -PHP_SYN_NODE *add_branch_2_elseif(PHP_SYN_NODE *list, PHP_SYN_NODE *branch) -{ - if ( list ) { - PHP_SYN_NODE *curr_if = list; - while ( curr_if->node_if.code_else ) { - curr_if = curr_if->node_if.code_else; - } - curr_if->node_if.code_else = branch; - return list; - } else { - return branch; - } -} - - - -/* Line 189 of yacc.c */ -#line 147 "php_parser.c" - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 1 -#endif - -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 0 -#endif - -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 -#endif - - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - FNUMBER = 258, - DNUMBER = 259, - STRING = 260, - IDENT = 261, - VARIABLE = 262, - T_ECHO = 263, - EXIT = 264, - IF = 265, - DO = 266, - WHILE = 267, - ENDWHILE = 268, - FOR = 269, - ENDFOR = 270, - FOREACH = 271, - ENDFOREACH = 272, - DECLARE = 273, - ENDDECLARE = 274, - AS = 275, - CONST = 276, - GLOBAL = 277, - UNSET = 278, - ISSET = 279, - EMPTY = 280, - SWITCH = 281, - ENDSWITCH = 282, - CASE = 283, - DEFAULT = 284, - BREAK = 285, - CONTINUE = 286, - FUNCTION = 287, - RETURN = 288, - CLASS = 289, - INTERFACE = 290, - EXTENDS = 291, - IMPLEMENTS = 292, - OBJECT_OPERATOR = 293, - HASH_ASSIGN = 294, - LIST = 295, - ARRAY = 296, - CLASS_SCOPE = 297, - PRINT = 298, - SR_EQ = 299, - SL_EQ = 300, - XOR_EQ = 301, - OR_EQ = 302, - AND_EQ = 303, - MOD_EQ = 304, - CONCAT_EQ = 305, - DIV_EQ = 306, - MUL_EQ = 307, - MINUS_EQ = 308, - PLUS_EQ = 309, - LOG_OR = 310, - LOG_XOR = 311, - LOG_AND = 312, - BOOLEAN_OR = 313, - BOOLEAN_AND = 314, - IS_NOIDENTICAL = 315, - IS_IDENTICAL = 316, - IS_NOEQUAL = 317, - IS_EQ = 318, - IS_GREATER_OR_EQ = 319, - IS_SMALLER_OR_EQ = 320, - SR = 321, - SL = 322, - INSTANCEOF = 323, - UNSET_CAST = 324, - BOOL_CAST = 325, - OBJECT_CAST = 326, - ARRAY_CAST = 327, - STRING_CAST = 328, - DOUBLE_CAST = 329, - INT_CAST = 330, - DEC = 331, - INC = 332, - CLONE = 333, - NEW = 334, - ELSEIF = 335, - ELSE = 336, - ENDIF = 337, - PUBLIC = 338, - PROTECTED = 339, - PRIVATE = 340, - FINAL = 341, - ABSTRACT = 342, - STATIC = 343, - START_SCRIPT = 344, - END_SCRIPT = 345 - }; -#endif - - - -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -{ - -/* Line 214 of yacc.c */ -#line 67 "php_parser.y" - - PHP_SYN_NODE *syn_node; - PHP_EXP_NODE *exp_node; - - char str_val[256]; - - - -/* Line 214 of yacc.c */ -#line 282 "php_parser.c" -} YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -#endif - - -/* Copy the second part of user declarations. */ - - -/* Line 264 of yacc.c */ -#line 294 "php_parser.c" - -#ifdef short -# undef short -#endif - -#ifdef YYTYPE_UINT8 -typedef YYTYPE_UINT8 yytype_uint8; -#else -typedef unsigned char yytype_uint8; -#endif - -#ifdef YYTYPE_INT8 -typedef YYTYPE_INT8 yytype_int8; -#elif (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -typedef signed char yytype_int8; -#else -typedef short int yytype_int8; -#endif - -#ifdef YYTYPE_UINT16 -typedef YYTYPE_UINT16 yytype_uint16; -#else -typedef unsigned short int yytype_uint16; -#endif - -#ifdef YYTYPE_INT16 -typedef YYTYPE_INT16 yytype_int16; -#else -typedef short int yytype_int16; -#endif - -#ifndef YYSIZE_T -# ifdef __SIZE_TYPE__ -# define YYSIZE_T __SIZE_TYPE__ -# elif defined size_t -# define YYSIZE_T size_t -# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# else -# define YYSIZE_T unsigned int -# endif -#endif - -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) - -#ifndef YY_ -# if defined YYENABLE_NLS && YYENABLE_NLS -# if ENABLE_NLS -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_(msgid) dgettext ("bison-runtime", msgid) -# endif -# endif -# ifndef YY_ -# define YY_(msgid) msgid -# endif -#endif - -/* Suppress unused-variable warnings by "using" E. */ -#if ! defined lint || defined __GNUC__ -# define YYUSE(e) ((void) (e)) -#else -# define YYUSE(e) /* empty */ -#endif - -/* Identity function, used to suppress warnings about constant conditions. */ -#ifndef lint -# define YYID(n) (n) -#else -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static int -YYID (int yyi) -#else -static int -YYID (yyi) - int yyi; -#endif -{ - return yyi; -} -#endif - -#if ! defined yyoverflow || YYERROR_VERBOSE - -/* The parser invokes alloca or malloc; define the necessary symbols. */ - -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# elif defined __BUILTIN_VA_ARG_INCR -# include /* INFRINGES ON USER NAME SPACE */ -# elif defined _AIX -# define YYSTACK_ALLOC __alloca -# elif defined _MSC_VER -# include /* INFRINGES ON USER NAME SPACE */ -# define alloca _alloca -# else -# define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 -# endif -# endif -# endif -# endif -# endif - -# ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) -# ifndef YYSTACK_ALLOC_MAXIMUM - /* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM -# endif -# if (defined __cplusplus && ! defined _STDLIB_H \ - && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 -# endif -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -void free (void *); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# endif -#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - - -#if (! defined yyoverflow \ - && (! defined __cplusplus \ - || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) - -/* A type that is properly aligned for any stack member. */ -union yyalloc -{ - yytype_int16 yyss_alloc; - YYSTYPE yyvs_alloc; -}; - -/* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) - -/* The size of an array large to enough to hold all stacks, each with - N elements. */ -# define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ - + YYSTACK_GAP_MAXIMUM) - -/* Copy COUNT objects from FROM to TO. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) -# else -# define YYCOPY(To, From, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ - while (YYID (0)) -# endif -# endif - -/* Relocate STACK from its old location to the new one. The - local variables YYSIZE and YYSTACKSIZE give the old and new number of - elements in the stack, and YYPTR gives the new location of the - stack. Advance YYPTR to a properly aligned location for the next - stack. */ -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (YYID (0)) - -#endif - -/* YYFINAL -- State number of the termination state. */ -#define YYFINAL 4 -/* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 3075 - -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 117 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 37 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 169 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 385 - -/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ -#define YYUNDEFTOK 2 -#define YYMAXUTOK 345 - -#define YYTRANSLATE(YYX) \ - ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) - -/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ -static const yytype_uint8 yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 83, 2, 2, 116, 82, 66, 2, - 113, 114, 80, 77, 43, 78, 79, 81, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 58, 112, - 71, 45, 72, 57, 86, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 96, 2, 115, 65, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 110, 64, 111, 85, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 44, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, - 59, 60, 61, 62, 63, 67, 68, 69, 70, 73, - 74, 75, 76, 84, 87, 88, 89, 90, 91, 92, - 93, 94, 95, 97, 98, 99, 100, 101, 102, 103, - 104, 105, 106, 107, 108, 109 -}; - -#if YYDEBUG -/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in - YYRHS. */ -static const yytype_uint16 yyprhs[] = -{ - 0, 0, 3, 7, 10, 11, 13, 17, 19, 23, - 26, 30, 34, 42, 48, 56, 66, 72, 75, 79, - 82, 86, 89, 93, 97, 103, 111, 121, 132, 138, - 146, 148, 152, 158, 160, 164, 166, 170, 172, 176, - 178, 180, 184, 186, 190, 191, 201, 211, 214, 218, - 223, 229, 230, 231, 233, 235, 240, 242, 247, 249, - 250, 257, 258, 259, 262, 264, 269, 273, 278, 283, - 289, 290, 295, 298, 300, 302, 304, 306, 308, 310, - 312, 314, 318, 322, 324, 328, 333, 338, 343, 348, - 355, 362, 364, 367, 371, 376, 377, 384, 386, 390, - 392, 397, 401, 405, 409, 413, 417, 421, 425, 429, - 433, 437, 441, 444, 447, 450, 453, 457, 461, 465, - 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, - 509, 513, 517, 520, 523, 526, 529, 533, 537, 541, - 545, 549, 553, 557, 561, 565, 571, 574, 577, 580, - 583, 586, 589, 592, 594, 599, 602, 606, 609, 610, - 612, 616, 618, 623, 624, 626, 630, 632, 636, 641 -}; - -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const yytype_int16 yyrhs[] = -{ - 118, 0, -1, 108, 119, 109, -1, 119, 120, -1, - -1, 121, -1, 108, 119, 109, -1, 129, -1, 110, - 119, 111, -1, 148, 112, -1, 22, 125, 112, -1, - 107, 127, 112, -1, 10, 113, 148, 114, 121, 136, - 137, -1, 12, 113, 148, 114, 138, -1, 11, 121, - 12, 113, 148, 114, 112, -1, 14, 113, 135, 112, - 135, 112, 135, 114, 133, -1, 26, 113, 148, 114, - 139, -1, 31, 112, -1, 31, 148, 112, -1, 30, - 112, -1, 30, 148, 112, -1, 33, 112, -1, 33, - 148, 112, -1, 8, 123, 112, -1, 23, 113, 124, - 114, 112, -1, 16, 113, 148, 20, 144, 114, 134, - -1, 16, 113, 148, 20, 144, 39, 144, 114, 134, - -1, 16, 113, 148, 20, 144, 39, 66, 144, 114, - 134, -1, 18, 113, 122, 114, 121, -1, 18, 113, - 122, 114, 58, 119, 19, -1, 112, -1, 6, 45, - 143, -1, 122, 43, 6, 45, 143, -1, 148, -1, - 123, 43, 148, -1, 144, -1, 124, 43, 144, -1, - 126, -1, 125, 43, 126, -1, 7, -1, 128, -1, - 127, 43, 128, -1, 7, -1, 7, 45, 143, -1, - -1, 32, 6, 130, 113, 131, 114, 110, 119, 111, - -1, 32, 66, 6, 113, 131, 114, 110, 119, 111, - -1, 132, 7, -1, 132, 66, 7, -1, 131, 43, - 132, 7, -1, 131, 43, 132, 66, 7, -1, -1, - -1, 6, -1, 121, -1, 58, 119, 15, 112, -1, - 121, -1, 58, 119, 17, 112, -1, 123, -1, -1, - 136, 99, 113, 148, 114, 121, -1, -1, -1, 100, - 121, -1, 121, -1, 58, 119, 13, 112, -1, 110, - 140, 111, -1, 110, 112, 140, 111, -1, 58, 140, - 27, 112, -1, 58, 112, 140, 27, 112, -1, -1, - 140, 141, 142, 119, -1, 28, 148, -1, 29, -1, - 58, -1, 112, -1, 3, -1, 4, -1, 5, -1, - 6, -1, 145, -1, 6, 42, 6, -1, 145, 38, - 6, -1, 7, -1, 145, 96, 115, -1, 145, 96, - 148, 115, -1, 145, 110, 148, 111, -1, 116, 110, - 148, 111, -1, 6, 113, 147, 114, -1, 145, 42, - 6, 113, 147, 114, -1, 145, 38, 6, 113, 147, - 114, -1, 148, -1, 66, 144, -1, 147, 43, 148, - -1, 147, 43, 66, 144, -1, -1, 40, 113, 150, - 114, 45, 148, -1, 144, -1, 144, 45, 148, -1, - 146, -1, 144, 45, 66, 144, -1, 144, 56, 148, - -1, 144, 55, 148, -1, 144, 54, 148, -1, 144, - 53, 148, -1, 144, 52, 148, -1, 144, 51, 148, - -1, 144, 50, 148, -1, 144, 49, 148, -1, 144, - 48, 148, -1, 144, 47, 148, -1, 144, 46, 148, - -1, 144, 95, -1, 95, 144, -1, 144, 94, -1, - 94, 144, -1, 148, 62, 148, -1, 148, 63, 148, - -1, 148, 59, 148, -1, 148, 61, 148, -1, 148, - 60, 148, -1, 148, 64, 148, -1, 148, 66, 148, - -1, 148, 65, 148, -1, 148, 79, 148, -1, 148, - 77, 148, -1, 148, 78, 148, -1, 148, 80, 148, - -1, 148, 81, 148, -1, 148, 82, 148, -1, 148, - 76, 148, -1, 148, 75, 148, -1, 77, 148, -1, - 78, 148, -1, 83, 148, -1, 85, 148, -1, 148, - 68, 148, -1, 148, 67, 148, -1, 148, 70, 148, - -1, 148, 69, 148, -1, 148, 71, 148, -1, 148, - 74, 148, -1, 148, 72, 148, -1, 148, 73, 148, - -1, 113, 148, 114, -1, 148, 57, 148, 58, 148, - -1, 93, 148, -1, 92, 148, -1, 91, 148, -1, - 88, 148, -1, 87, 148, -1, 9, 149, -1, 86, - 148, -1, 143, -1, 41, 113, 152, 114, -1, 44, - 148, -1, 113, 148, 114, -1, 113, 114, -1, -1, - 151, -1, 150, 43, 151, -1, 144, -1, 40, 113, - 150, 114, -1, -1, 153, -1, 152, 43, 153, -1, - 148, -1, 148, 39, 148, -1, 148, 39, 66, 144, - -1, 66, 144, -1 -}; - -/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const yytype_uint16 yyrline[] = -{ - 0, 142, 142, 146, 147, 152, 153, 154, 159, 160, - 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, - 171, 172, 173, 174, 175, 176, 179, 182, 185, 186, - 187, 190, 191, 194, 195, 204, 205, 211, 212, 216, - 231, 232, 235, 236, 244, 244, 255, 259, 260, 261, - 262, 263, 267, 268, 272, 273, 277, 278, 281, 282, - 286, 287, 291, 292, 295, 296, 300, 301, 302, 303, - 307, 308, 323, 324, 327, 328, 332, 333, 334, 335, - 338, 339, 340, 344, 345, 346, 347, 348, 352, 353, - 354, 357, 358, 359, 360, 361, 366, 367, 368, 369, - 370, 375, 376, 377, 378, 379, 380, 381, 382, 383, - 384, 385, 387, 388, 389, 390, 392, 393, 394, 395, - 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, - 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, - 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, - 428, 429, 430, 432, 433, 434, 437, 438, 439, 442, - 443, 447, 448, 449, 452, 453, 462, 463, 464, 465 -}; -#endif - -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE -/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. - First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char *const yytname[] = -{ - "$end", "error", "$undefined", "FNUMBER", "DNUMBER", "STRING", "IDENT", - "VARIABLE", "T_ECHO", "EXIT", "IF", "DO", "WHILE", "ENDWHILE", "FOR", - "ENDFOR", "FOREACH", "ENDFOREACH", "DECLARE", "ENDDECLARE", "AS", - "CONST", "GLOBAL", "UNSET", "ISSET", "EMPTY", "SWITCH", "ENDSWITCH", - "CASE", "DEFAULT", "BREAK", "CONTINUE", "FUNCTION", "RETURN", "CLASS", - "INTERFACE", "EXTENDS", "IMPLEMENTS", "OBJECT_OPERATOR", "HASH_ASSIGN", - "LIST", "ARRAY", "CLASS_SCOPE", "','", "PRINT", "'='", "SR_EQ", "SL_EQ", - "XOR_EQ", "OR_EQ", "AND_EQ", "MOD_EQ", "CONCAT_EQ", "DIV_EQ", "MUL_EQ", - "MINUS_EQ", "PLUS_EQ", "'?'", "':'", "LOG_OR", "LOG_XOR", "LOG_AND", - "BOOLEAN_OR", "BOOLEAN_AND", "'|'", "'^'", "'&'", "IS_NOIDENTICAL", - "IS_IDENTICAL", "IS_NOEQUAL", "IS_EQ", "'<'", "'>'", "IS_GREATER_OR_EQ", - "IS_SMALLER_OR_EQ", "SR", "SL", "'+'", "'-'", "'.'", "'*'", "'/'", "'%'", - "'!'", "INSTANCEOF", "'~'", "'@'", "UNSET_CAST", "BOOL_CAST", - "OBJECT_CAST", "ARRAY_CAST", "STRING_CAST", "DOUBLE_CAST", "INT_CAST", - "DEC", "INC", "'['", "CLONE", "NEW", "ELSEIF", "ELSE", "ENDIF", "PUBLIC", - "PROTECTED", "PRIVATE", "FINAL", "ABSTRACT", "STATIC", "START_SCRIPT", - "END_SCRIPT", "'{'", "'}'", "';'", "'('", "')'", "']'", "'$'", "$accept", - "program_tree", "top_statement_list", "top_statement", "statement", - "decl_list", "expr_list", "variable_list", "global_var_list", - "global_var", "static_var_list", "static_var", "function_decl_statement", - "$@1", "parameter_list", "optional_class_type", "for_statement", - "foreach_statement", "for_expr", "elseif_list", "else_statement", - "while_statement", "switch_case_list", "case_list", "case_list_item", - "case_separator", "const_value", "variable", "deref_variable", - "function_call", "func_param_list", "expr", "exit_expr", - "assignment_list", "assignment_list_element", "array_pair_list", - "array_elem", 0 -}; -#endif - -# ifdef YYPRINT -/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to - token YYLEX-NUM. */ -static const yytype_uint16 yytoknum[] = -{ - 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, - 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 297, 44, 298, 61, 299, 300, 301, 302, - 303, 304, 305, 306, 307, 308, 309, 63, 58, 310, - 311, 312, 313, 314, 124, 94, 38, 315, 316, 317, - 318, 60, 62, 319, 320, 321, 322, 43, 45, 46, - 42, 47, 37, 33, 323, 126, 64, 324, 325, 326, - 327, 328, 329, 330, 331, 332, 91, 333, 334, 335, - 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, - 123, 125, 59, 40, 41, 93, 36 -}; -# endif - -/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = -{ - 0, 117, 118, 119, 119, 120, 120, 120, 121, 121, - 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, - 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, - 121, 122, 122, 123, 123, 124, 124, 125, 125, 126, - 127, 127, 128, 128, 130, 129, 129, 131, 131, 131, - 131, 131, 132, 132, 133, 133, 134, 134, 135, 135, - 136, 136, 137, 137, 138, 138, 139, 139, 139, 139, - 140, 140, 141, 141, 142, 142, 143, 143, 143, 143, - 144, 144, 144, 145, 145, 145, 145, 145, 146, 146, - 146, 147, 147, 147, 147, 147, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 149, 149, 149, 150, - 150, 151, 151, 151, 152, 152, 153, 153, 153, 153 -}; - -/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = -{ - 0, 2, 3, 2, 0, 1, 3, 1, 3, 2, - 3, 3, 7, 5, 7, 9, 5, 2, 3, 2, - 3, 2, 3, 3, 5, 7, 9, 10, 5, 7, - 1, 3, 5, 1, 3, 1, 3, 1, 3, 1, - 1, 3, 1, 3, 0, 9, 9, 2, 3, 4, - 5, 0, 0, 1, 1, 4, 1, 4, 1, 0, - 6, 0, 0, 2, 1, 4, 3, 4, 4, 5, - 0, 4, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 3, 3, 1, 3, 4, 4, 4, 4, 6, - 6, 1, 2, 3, 4, 0, 6, 1, 3, 1, - 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 5, 2, 2, 2, 2, - 2, 2, 2, 1, 4, 2, 3, 2, 0, 1, - 3, 1, 4, 0, 1, 3, 1, 3, 4, 2 -}; - -/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state - STATE-NUM when YYTABLE doesn't specify something else to do. Zero - means the default is an error. */ -static const yytype_uint8 yydefact[] = -{ - 0, 4, 0, 0, 1, 76, 77, 78, 79, 83, - 0, 158, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 4, 2, 4, 30, 0, 0, 3, 5, 7, - 153, 97, 80, 99, 0, 0, 95, 0, 33, 0, - 151, 0, 0, 0, 59, 0, 0, 39, 0, 37, - 0, 0, 19, 0, 17, 0, 44, 0, 21, 0, - 163, 0, 155, 132, 133, 134, 135, 152, 150, 149, - 148, 147, 146, 0, 115, 80, 113, 42, 0, 40, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 114, 112, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 9, 81, 0, - 0, 91, 0, 23, 157, 0, 0, 0, 0, 58, - 0, 0, 0, 0, 0, 10, 0, 35, 0, 20, - 18, 0, 0, 22, 0, 161, 0, 159, 0, 166, - 0, 164, 0, 0, 0, 11, 6, 8, 144, 0, - 0, 98, 111, 110, 109, 108, 107, 106, 105, 104, - 103, 102, 101, 82, 0, 84, 0, 0, 0, 118, - 120, 119, 116, 117, 121, 123, 122, 137, 136, 139, - 138, 140, 142, 143, 141, 131, 130, 125, 126, 124, - 127, 128, 129, 92, 0, 88, 34, 156, 0, 0, - 0, 59, 0, 0, 0, 0, 38, 0, 0, 0, - 51, 51, 163, 163, 0, 169, 0, 0, 154, 82, - 79, 43, 41, 87, 100, 95, 95, 85, 86, 0, - 0, 93, 61, 0, 4, 64, 13, 0, 0, 31, - 0, 4, 28, 36, 24, 70, 70, 16, 53, 0, - 0, 0, 0, 160, 0, 0, 167, 165, 0, 0, - 145, 94, 62, 0, 0, 59, 0, 0, 0, 0, - 70, 0, 70, 0, 52, 0, 47, 0, 0, 162, - 96, 168, 90, 89, 0, 0, 12, 14, 0, 0, - 0, 0, 4, 56, 25, 32, 29, 0, 0, 0, - 73, 0, 0, 66, 0, 4, 48, 4, 0, 63, - 65, 0, 0, 0, 0, 0, 68, 72, 74, 75, - 4, 67, 49, 0, 0, 0, 0, 4, 54, 15, - 0, 26, 0, 69, 71, 50, 45, 46, 0, 0, - 27, 57, 60, 0, 55 -}; - -/* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int16 yydefgoto[] = -{ - -1, 2, 3, 47, 48, 163, 159, 166, 68, 69, - 98, 99, 49, 171, 289, 290, 369, 334, 160, 302, - 326, 276, 287, 311, 341, 360, 50, 51, 52, 53, - 150, 54, 60, 176, 177, 180, 181 -}; - -/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -#define YYPACT_NINF -309 -static const yytype_int16 yypact[] = -{ - -75, -309, 36, 371, -309, -309, -309, -309, -30, -309, - 2593, -59, 58, 1967, 59, 69, 71, 98, 66, 113, - 123, 2023, 2081, 8, 2137, 124, 126, 2593, 2593, 2593, - 2593, 2593, 2593, 2593, 2593, 2593, 2593, 2593, 34, 34, - 147, -309, -309, -309, -309, 2593, 49, -309, -309, -309, - -309, 222, -29, -309, 1383, 234, 2195, 0, 2864, 2251, - -309, 2593, 230, 2593, 2593, 2593, 238, -309, 51, -309, - 34, 2593, -309, 2651, -309, 2677, -309, 239, -309, 2705, - 31, 2309, 2864, -33, -33, -309, -309, -309, -309, -309, - -309, -309, -309, 204, -309, -28, -309, 208, 52, -309, - 485, 599, 585, 2593, 2365, 2593, 2593, 2593, 2593, 2593, - 2593, 2593, 2593, 2593, 2593, 2593, -309, -309, 241, 248, - 2423, 2593, 2593, 2593, 2593, 2593, 2593, 2593, 2593, 2593, - 2593, 2593, 2593, 2593, 2593, 2593, 2593, 2593, 2593, 2593, - 2593, 2593, 2593, 2593, 2593, 2593, 2593, -309, -309, 34, - -1, 2864, 2593, -309, -309, 699, 813, 143, 927, 212, - 145, 128, 213, 29, 66, -309, 35, -309, 1041, -309, - -309, 148, 149, -309, 151, -309, 37, -309, 34, 2812, - 41, -309, 259, 172, 147, -309, -309, -309, -309, 2731, - 34, 2864, 2864, 2864, 2864, 2864, 2864, 2864, 2864, 2864, - 2864, 2864, 2864, 166, 167, -309, 471, 2759, 2838, 2911, - 2933, 2954, 2974, 2993, 1505, 350, 1617, 1731, 1731, 1731, - 1731, 142, 142, 142, 142, 88, 88, -33, -33, -33, - -309, -309, -309, -309, 2479, -309, 2864, -309, 1967, 2593, - 1511, 2593, 34, 172, 276, 1625, -309, 34, 171, -41, - 86, 86, 31, 31, 240, -309, 2537, 2309, -309, -309, - -309, -309, -309, -309, -309, 2195, 2195, -309, -309, 2593, - 34, 2864, -309, 1155, -309, -309, -309, 174, -37, -309, - 242, -309, -309, -309, -309, 177, 178, -309, -309, 42, - 4, 43, 44, -309, 2593, 34, 2864, -309, 46, 48, - 2888, -309, -39, 183, 713, 2593, 45, 1739, 172, 827, - -309, 152, -309, -23, 278, 186, -309, 290, 188, -309, - 2864, -309, -309, -309, 187, 1967, -309, -309, 189, 190, - 34, 192, -309, -309, -309, -309, -309, 202, 191, 2593, - -309, -2, -21, -309, 146, -309, -309, -309, 2593, -309, - -309, 1853, 194, 1739, 941, 197, -309, 2864, -309, -309, - -309, -309, -309, 303, 1055, 1169, 1269, -309, -309, -309, - 1739, -309, 199, -309, 1397, -309, -309, -309, 1967, 1283, - -309, -309, -309, 201, -309 -}; - -/* YYPGOTO[NTERM-NUM]. */ -static const yytype_int16 yypgoto[] = -{ - -309, -309, -40, -309, -13, -309, 304, -309, -309, 154, - -309, 131, -309, -309, 68, 7, -309, -308, -209, -309, - -309, -309, -309, -266, -309, -309, -164, -4, 103, -309, - -202, -6, -309, 70, 72, -309, 67 -}; - -/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule which - number is the opposite. If zero, do what YYDEFACT says. - If YYTABLE_NINF, syntax error. */ -#define YYTABLE_NINF -53 -static const yytype_int16 yytable[] = -{ - 62, 100, 306, 101, 58, 339, 340, 339, 340, 118, - 182, 316, 55, 119, 76, 73, 75, 285, 79, 261, - 313, 82, 83, 84, 85, 86, 87, 88, 89, 90, - 91, 92, 277, 1, 94, 96, 4, 93, 9, 102, - 93, 9, 234, 152, 337, 371, 342, 144, 145, 146, - 151, 93, 9, 155, 59, 156, 358, 158, 58, 161, - 324, 325, 380, 298, 299, 168, 167, 120, 120, 286, - 317, 174, 244, 67, 77, 179, 175, 307, 247, 279, - 253, 121, 121, 56, 257, 314, 314, 253, 343, 234, - 361, 234, 288, -52, 164, 184, 329, 189, 191, 192, - 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, - 359, 330, 153, 235, 206, 207, 208, 209, 210, 211, - 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, - 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, - 232, 95, 95, 245, 335, 233, 236, 46, 242, 248, - 46, 254, -52, 362, 97, 258, 315, 318, 319, 103, - 322, 46, 323, 165, 185, 141, 142, 143, 144, 145, - 146, 61, 63, 95, 255, 5, 6, 7, 260, 338, - 339, 340, 64, 95, 65, 122, 264, 123, 124, 125, - 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, - 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, - 146, 66, 363, -53, -53, -53, -53, 139, 140, 141, - 142, 143, 144, 145, 146, 272, 70, 275, 271, 355, - 339, 340, 282, 273, 304, 58, 71, 80, 278, 81, - 148, 309, 157, 283, 162, 172, 55, 203, 175, 175, - 296, 179, 95, 183, 204, 152, 239, 241, 243, 151, - 151, 250, 251, 300, 252, 259, 301, 104, 105, 106, - 107, 108, 109, 110, 111, 112, 113, 114, 115, 265, - 266, 95, 280, 284, 288, 294, 305, 308, 320, 310, - 312, 321, 354, 95, 333, 327, 345, 346, 347, 58, - 348, 350, 331, 356, 351, 364, 353, 365, 370, 373, - 375, 381, 349, 384, 57, 262, 116, 117, 246, 291, - 374, 344, 292, 0, 297, 293, 352, 379, 0, 0, - 0, 0, 0, 357, 0, 0, 0, 0, 368, 0, - 333, 0, 366, 0, 0, 95, 0, 0, 0, 0, - 95, 0, 0, 0, 0, 95, 95, 333, 0, 0, - 0, 0, 0, 0, 0, 382, 0, 0, 0, 0, - 0, 0, 0, 95, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 0, 15, 0, 16, 0, 17, - 0, 0, 0, 18, 19, 0, 0, 20, 95, 0, - 0, 21, 22, 23, 24, 0, 0, 0, 0, 95, - 0, 25, 26, 0, 0, 27, 130, 131, 132, 133, - 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, - 144, 145, 146, 95, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 28, 29, - 0, 0, 0, 0, 30, 0, 31, 32, 33, 34, - 0, 0, 35, 36, 37, 38, 39, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 40, 41, - 42, 43, 0, 44, 45, 0, 0, 46, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, - 0, 16, 0, 17, 0, 0, 0, 18, 19, 0, - 0, 20, 0, 0, 0, 21, 22, 23, 24, 0, - 0, 0, 0, 0, 0, 25, 26, 0, 122, 27, - 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, - 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, - 143, 144, 145, 146, 0, 0, 0, 0, 0, 0, - 0, 0, 28, 29, 0, 0, 0, 0, 30, 0, - 31, 32, 33, 34, 0, 0, 35, 36, 37, 38, - 39, 0, 0, 0, 0, 0, 267, 0, 0, 0, - 0, 0, 40, 41, 186, 43, 0, 44, 45, 0, - 0, 46, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 0, 15, 0, 16, 0, 17, 0, 0, - 0, 18, 19, 0, 0, 20, 0, 0, 0, 21, - 22, 23, 24, 0, 0, 0, 0, 0, 0, 25, - 26, 0, 122, 27, 123, 124, 125, 126, 127, 128, - 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, - 139, 140, 141, 142, 143, 144, 145, 146, 0, 0, - 0, 0, 0, 0, 0, 0, 28, 29, 0, 0, - 0, 0, 30, 0, 31, 32, 33, 34, 0, 0, - 35, 36, 37, 38, 39, 0, 0, 0, 0, 188, - 0, 0, 0, 0, 0, 0, 40, 41, 0, 43, - 187, 44, 45, 0, 0, 46, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 328, 15, 0, 16, - 0, 17, 0, 0, 0, 18, 19, 0, 0, 20, - 0, 0, 0, 21, 22, 23, 24, 0, 0, 0, - 0, 0, 0, 25, 26, 0, 122, 27, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 0, 0, 0, 0, 0, 0, 0, 0, - 28, 29, 0, 0, 0, 0, 30, 0, 31, 32, - 33, 34, 0, 0, 35, 36, 37, 38, 39, 0, - 0, 0, 0, 237, 0, 0, 0, 0, 0, 0, - 40, 41, 0, 43, 0, 44, 45, 0, 0, 46, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 0, 15, 0, 16, 0, 17, 336, 0, 0, 18, - 19, 0, 0, 20, 0, 0, 0, 21, 22, 23, - 24, 0, 0, 0, 0, 0, 0, 25, 26, 0, - 122, 27, 123, 124, 125, 126, 127, 128, 129, 130, - 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, - 141, 142, 143, 144, 145, 146, 0, 0, 0, 0, - 0, 0, 0, 0, 28, 29, 0, 0, 0, 0, - 30, 0, 31, 32, 33, 34, 0, 0, 35, 36, - 37, 38, 39, 0, 0, 0, 0, 238, 0, 0, - 0, 0, 0, 0, 40, 41, 0, 43, 0, 44, - 45, 0, 0, 46, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 0, 15, 0, 16, 372, 17, - 0, 0, 0, 18, 19, 0, 0, 20, 0, 0, - 0, 21, 22, 23, 24, 0, 0, 0, 0, 0, - 0, 25, 26, 0, 122, 27, 123, 124, 125, 126, - 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, - 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, - 0, 0, 0, 0, 0, 0, 0, 0, 28, 29, - 0, 0, 0, 0, 30, 0, 31, 32, 33, 34, - 0, 0, 35, 36, 37, 38, 39, 0, 0, 0, - 0, 240, 0, 0, 0, 0, 0, 0, 40, 41, - 0, 43, 0, 44, 45, 0, 0, 46, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, - 0, 16, 0, 17, 0, 0, 0, 18, 19, 0, - 0, 20, 0, 0, 0, 21, 22, 23, 24, 0, - 0, 0, 0, 0, 0, 25, 26, 0, 122, 27, - 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, - 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, - 143, 144, 145, 146, 0, 0, 0, 0, 0, 0, - 0, 0, 28, 29, 0, 0, 0, 0, 30, 0, - 31, 32, 33, 34, 0, 0, 35, 36, 37, 38, - 39, 0, 0, 0, 0, 249, 0, 0, 0, 0, - 0, 0, 40, 41, 0, 43, 376, 44, 45, 0, - 0, 46, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 0, 15, 0, 16, 0, 17, 0, 0, - 0, 18, 19, 0, 0, 20, 0, 0, 0, 21, - 22, 23, 24, 0, 0, 0, 0, 0, 0, 25, - 26, 0, 122, 27, 123, 124, 125, 126, 127, 128, - 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, - 139, 140, 141, 142, 143, 144, 145, 146, 0, 0, - 0, 0, 0, 0, 0, 0, 28, 29, 0, 0, - 0, 0, 30, 0, 31, 32, 33, 34, 0, 0, - 35, 36, 37, 38, 39, 0, 0, 0, 0, 303, - 0, 0, 0, 0, 0, 0, 40, 41, 0, 43, - 377, 44, 45, 0, 0, 46, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 0, 15, 383, 16, - 0, 17, 0, 0, 0, 18, 19, 0, 0, 20, - 0, 0, 0, 21, 22, 23, 24, 0, 0, 0, - 0, 0, 0, 25, 26, 0, 122, 27, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 0, 0, 0, 0, 0, 0, 0, 0, - 28, 29, 0, 0, 0, 0, 30, 0, 31, 32, - 33, 34, 0, 0, 35, 36, 37, 38, 39, 0, - 0, 0, 0, 378, 0, 0, 0, 0, 0, 0, - 40, 41, 0, 43, 0, 44, 45, 0, 0, 46, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 0, 15, 0, 16, 0, 17, 0, 0, 0, 18, - 19, 0, 0, 20, 0, 0, 0, 21, 22, 23, - 24, 0, 0, 0, 0, 0, 0, 25, 26, 0, - 122, 27, 123, 124, 125, 126, 127, 128, 129, 130, - 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, - 141, 142, 143, 144, 145, 146, 0, 0, 0, 0, - 0, 0, 0, 0, 28, 29, 0, 0, 0, 0, - 30, 0, 31, 32, 33, 34, 0, 0, 35, 36, - 37, 38, 39, 0, 0, 147, 0, 0, 0, 0, - 0, 0, 0, 0, 40, 41, 0, 43, 0, 44, - 45, 0, 0, 46, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 0, 15, 0, 16, 0, 17, - 0, 0, 0, 18, 19, 0, 0, 20, 0, 0, - 0, 21, 22, 0, 24, 0, 0, 0, 0, 0, - 0, 25, 26, 0, 0, 27, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, - 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, - 139, 140, 141, 142, 143, 144, 145, 146, 28, 29, - 0, 0, 0, 0, 30, 0, 31, 32, 33, 34, - 0, 0, 35, 36, 37, 38, 39, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, - 0, 43, 0, 44, 45, 0, 0, 46, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, - 0, 16, 0, 17, 0, 0, 0, 18, 19, 0, - 0, 20, 0, 0, 0, 21, 22, 0, 24, 0, - 0, 0, 0, 0, 0, 25, 26, 0, 0, 27, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 281, 131, 132, 133, 134, 135, 136, - 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, - 0, 0, 28, 29, 0, 0, 0, 0, 30, 0, - 31, 32, 33, 34, 0, 0, 35, 36, 37, 38, - 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 40, 0, 0, 43, 0, 44, 45, 0, - 0, 46, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 0, 15, 0, 16, 0, 17, 0, 0, - 0, 18, 19, 0, 0, 20, 0, 0, 0, 21, - 22, 0, 24, 0, 0, 0, 0, 0, 0, 25, - 26, 0, 0, 27, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 332, -53, -53, - -53, -53, 135, 136, 137, 138, 139, 140, 141, 142, - 143, 144, 145, 146, 0, 0, 28, 29, 0, 0, - 0, 0, 30, 0, 31, 32, 33, 34, 0, 0, - 35, 36, 37, 38, 39, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 40, 0, 0, 43, - 0, 44, 45, 0, 0, 46, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 0, 15, 0, 16, - 0, 17, 0, 0, 0, 18, 19, 0, 0, 20, - 0, 0, 0, 21, 22, 0, 24, 0, 0, 0, - 0, 0, 0, 25, 26, 0, 0, 27, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 367, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 28, 29, 0, 0, 0, 0, 30, 0, 31, 32, - 33, 34, 0, 0, 35, 36, 37, 38, 39, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 40, 0, 0, 43, 0, 44, 45, 0, 0, 46, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 0, 15, 0, 16, 0, 17, 0, 0, 0, 18, - 19, 0, 0, 20, 0, 0, 0, 21, 22, 0, - 24, 0, 0, 0, 0, 0, 0, 25, 26, 0, - 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 5, 6, 7, 8, - 9, 0, 11, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 28, 29, 0, 0, 0, 0, - 30, 0, 31, 32, 33, 34, 0, 0, 35, 36, - 37, 38, 39, 25, 26, 0, 0, 27, 0, 0, - 0, 0, 0, 0, 40, 0, 0, 43, 0, 44, - 45, 0, 0, 46, 5, 6, 7, 8, 9, 0, - 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 28, 29, 0, 0, 0, 0, 30, 0, 31, 32, - 33, 34, 0, 0, 35, 36, 37, 38, 39, 0, - 0, 25, 26, 0, 0, 27, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 72, 45, 0, 0, 46, - 5, 6, 7, 8, 9, 0, 11, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 28, 29, - 0, 0, 0, 0, 30, 0, 31, 32, 33, 34, - 0, 0, 35, 36, 37, 38, 39, 25, 26, 0, - 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 74, 45, 0, 0, 46, 5, 6, - 7, 8, 9, 0, 11, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 28, 29, 0, 0, 0, 0, - 30, 0, 31, 32, 33, 34, 0, 0, 35, 36, - 37, 38, 39, 0, 0, 25, 26, 0, 0, 27, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 78, - 45, 0, 0, 46, 5, 6, 7, 8, 9, 0, - 11, 149, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 28, 29, 0, 0, 0, 0, 30, 0, - 31, 32, 33, 34, 0, 0, 35, 36, 37, 38, - 39, 25, 26, 0, 0, 27, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, - 0, 46, 5, 6, 7, 8, 9, 0, 11, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 28, 29, - 0, 0, 0, 0, 30, 0, 31, 32, 33, 34, - 0, 0, 35, 36, 37, 38, 39, 0, 0, 25, - 26, 0, 0, 27, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 45, 154, 0, 46, 5, 6, - 7, 8, 9, 0, 11, 178, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 28, 29, 0, 0, - 0, 0, 30, 0, 31, 32, 33, 34, 0, 0, - 35, 36, 37, 38, 39, 25, 26, 0, 0, 27, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 45, 0, 0, 46, 5, 6, 7, 8, - 9, 190, 11, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 28, 29, 0, 0, 0, 0, 30, 0, - 31, 32, 33, 34, 0, 0, 35, 36, 37, 38, - 39, 0, 0, 25, 26, 0, 0, 27, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, - 0, 46, 5, 6, 7, 8, 9, 0, 11, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 28, 29, 0, 0, 0, 0, 30, 0, 31, 32, - 33, 34, 0, 0, 35, 36, 37, 38, 39, 25, - 26, 0, 0, 27, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 45, 0, 205, 46, - 5, 6, 7, 8, 9, 270, 11, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 28, 29, 0, 0, - 0, 0, 30, 0, 31, 32, 33, 34, 0, 0, - 35, 36, 37, 38, 39, 0, 0, 25, 26, 0, - 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 45, 0, 0, 46, 5, 6, 7, 8, - 9, 0, 11, 295, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 28, 29, 0, 0, 0, 0, - 30, 0, 31, 32, 33, 34, 0, 0, 35, 36, - 37, 38, 39, 25, 26, 0, 0, 27, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 45, 0, 0, 46, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 28, 29, 0, 0, 0, 0, 30, 0, 31, 32, - 33, 34, 0, 0, 35, 36, 37, 38, 39, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 45, 0, 122, 46, - 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, - 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, - 143, 144, 145, 146, 122, 0, 123, 124, 125, 126, - 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, - 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, - 0, 0, 122, 169, 123, 124, 125, 126, 127, 128, - 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, - 139, 140, 141, 142, 143, 144, 145, 146, 122, 170, - 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, - 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, - 143, 144, 145, 146, 0, 0, 122, 173, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 263, 0, 0, 0, 0, 0, 0, 0, - 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, - 268, 123, 124, 125, 126, 127, 128, 129, 130, 131, - 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, - 142, 143, 144, 145, 146, 122, 269, 123, 124, 125, - 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, - 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, - 146, 122, 0, 123, 124, 125, 126, 127, 128, 129, - 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, - 140, 141, 142, 143, 144, 145, 146, 123, 124, 125, - 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, - 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, - 146, 124, 125, 126, 127, 128, 129, 130, 131, 132, - 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, - 143, 144, 145, 146, 125, 126, 127, 128, 129, 130, - 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, - 141, 142, 143, 144, 145, 146, 126, 127, 128, 129, - 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, - 140, 141, 142, 143, 144, 145, 146, 127, 128, 129, - 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, - 140, 141, 142, 143, 144, 145, 146, 128, 129, 130, - 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, - 141, 142, 143, 144, 145, 146 -}; - -static const yytype_int16 yycheck[] = -{ - 13, 41, 39, 43, 10, 28, 29, 28, 29, 38, - 38, 7, 42, 42, 6, 21, 22, 58, 24, 183, - 286, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 241, 108, 38, 39, 0, 6, 7, 45, - 6, 7, 43, 43, 310, 353, 312, 80, 81, 82, - 56, 6, 7, 59, 113, 61, 58, 63, 64, 65, - 99, 100, 370, 265, 266, 71, 70, 96, 96, 110, - 66, 40, 43, 7, 66, 81, 80, 114, 43, 243, - 43, 110, 110, 113, 43, 43, 43, 43, 111, 43, - 111, 43, 6, 7, 43, 43, 305, 103, 104, 105, - 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, - 112, 66, 112, 114, 120, 121, 122, 123, 124, 125, - 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, - 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, - 146, 38, 39, 114, 308, 149, 152, 116, 20, 114, - 116, 114, 66, 7, 7, 114, 114, 114, 114, 110, - 114, 116, 114, 112, 112, 77, 78, 79, 80, 81, - 82, 113, 113, 70, 178, 3, 4, 5, 6, 27, - 28, 29, 113, 80, 113, 57, 190, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 113, 66, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 238, 113, 240, 234, 27, - 28, 29, 245, 239, 274, 241, 113, 113, 242, 113, - 6, 281, 12, 247, 6, 6, 42, 6, 252, 253, - 256, 257, 149, 45, 6, 43, 113, 112, 45, 265, - 266, 113, 113, 269, 113, 6, 270, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 56, 113, - 113, 178, 6, 112, 6, 45, 112, 45, 294, 112, - 112, 295, 332, 190, 307, 112, 110, 7, 110, 305, - 113, 112, 306, 112, 114, 345, 114, 347, 114, 112, - 7, 112, 325, 112, 10, 184, 94, 95, 164, 251, - 360, 314, 252, -1, 257, 253, 330, 367, -1, -1, - -1, -1, -1, 339, -1, -1, -1, -1, 351, -1, - 353, -1, 348, -1, -1, 242, -1, -1, -1, -1, - 247, -1, -1, -1, -1, 252, 253, 370, -1, -1, - -1, -1, -1, -1, -1, 378, -1, -1, -1, -1, - -1, -1, -1, 270, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, -1, 14, -1, 16, -1, 18, - -1, -1, -1, 22, 23, -1, -1, 26, 295, -1, - -1, 30, 31, 32, 33, -1, -1, -1, -1, 306, - -1, 40, 41, -1, -1, 44, 66, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 330, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 77, 78, - -1, -1, -1, -1, 83, -1, 85, 86, 87, 88, - -1, -1, 91, 92, 93, 94, 95, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 107, 108, - 109, 110, -1, 112, 113, -1, -1, 116, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, -1, 14, - -1, 16, -1, 18, -1, -1, -1, 22, 23, -1, - -1, 26, -1, -1, -1, 30, 31, 32, 33, -1, - -1, -1, -1, -1, -1, 40, 41, -1, 57, 44, - 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, -1, -1, -1, -1, -1, -1, - -1, -1, 77, 78, -1, -1, -1, -1, 83, -1, - 85, 86, 87, 88, -1, -1, 91, 92, 93, 94, - 95, -1, -1, -1, -1, -1, 115, -1, -1, -1, - -1, -1, 107, 108, 109, 110, -1, 112, 113, -1, - -1, 116, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, -1, 14, -1, 16, -1, 18, -1, -1, - -1, 22, 23, -1, -1, 26, -1, -1, -1, 30, - 31, 32, 33, -1, -1, -1, -1, -1, -1, 40, - 41, -1, 57, 44, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, -1, -1, - -1, -1, -1, -1, -1, -1, 77, 78, -1, -1, - -1, -1, 83, -1, 85, 86, 87, 88, -1, -1, - 91, 92, 93, 94, 95, -1, -1, -1, -1, 114, - -1, -1, -1, -1, -1, -1, 107, 108, -1, 110, - 111, 112, 113, -1, -1, 116, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, -1, 16, - -1, 18, -1, -1, -1, 22, 23, -1, -1, 26, - -1, -1, -1, 30, 31, 32, 33, -1, -1, -1, - -1, -1, -1, 40, 41, -1, 57, 44, 59, 60, - 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, -1, -1, -1, -1, -1, -1, -1, -1, - 77, 78, -1, -1, -1, -1, 83, -1, 85, 86, - 87, 88, -1, -1, 91, 92, 93, 94, 95, -1, - -1, -1, -1, 114, -1, -1, -1, -1, -1, -1, - 107, 108, -1, 110, -1, 112, 113, -1, -1, 116, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - -1, 14, -1, 16, -1, 18, 19, -1, -1, 22, - 23, -1, -1, 26, -1, -1, -1, 30, 31, 32, - 33, -1, -1, -1, -1, -1, -1, 40, 41, -1, - 57, 44, 59, 60, 61, 62, 63, 64, 65, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, -1, -1, -1, -1, - -1, -1, -1, -1, 77, 78, -1, -1, -1, -1, - 83, -1, 85, 86, 87, 88, -1, -1, 91, 92, - 93, 94, 95, -1, -1, -1, -1, 114, -1, -1, - -1, -1, -1, -1, 107, 108, -1, 110, -1, 112, - 113, -1, -1, 116, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, -1, 14, -1, 16, 17, 18, - -1, -1, -1, 22, 23, -1, -1, 26, -1, -1, - -1, 30, 31, 32, 33, -1, -1, -1, -1, -1, - -1, 40, 41, -1, 57, 44, 59, 60, 61, 62, - 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - -1, -1, -1, -1, -1, -1, -1, -1, 77, 78, - -1, -1, -1, -1, 83, -1, 85, 86, 87, 88, - -1, -1, 91, 92, 93, 94, 95, -1, -1, -1, - -1, 114, -1, -1, -1, -1, -1, -1, 107, 108, - -1, 110, -1, 112, 113, -1, -1, 116, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, -1, 14, - -1, 16, -1, 18, -1, -1, -1, 22, 23, -1, - -1, 26, -1, -1, -1, 30, 31, 32, 33, -1, - -1, -1, -1, -1, -1, 40, 41, -1, 57, 44, - 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, -1, -1, -1, -1, -1, -1, - -1, -1, 77, 78, -1, -1, -1, -1, 83, -1, - 85, 86, 87, 88, -1, -1, 91, 92, 93, 94, - 95, -1, -1, -1, -1, 114, -1, -1, -1, -1, - -1, -1, 107, 108, -1, 110, 111, 112, 113, -1, - -1, 116, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, -1, 14, -1, 16, -1, 18, -1, -1, - -1, 22, 23, -1, -1, 26, -1, -1, -1, 30, - 31, 32, 33, -1, -1, -1, -1, -1, -1, 40, - 41, -1, 57, 44, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, -1, -1, - -1, -1, -1, -1, -1, -1, 77, 78, -1, -1, - -1, -1, 83, -1, 85, 86, 87, 88, -1, -1, - 91, 92, 93, 94, 95, -1, -1, -1, -1, 114, - -1, -1, -1, -1, -1, -1, 107, 108, -1, 110, - 111, 112, 113, -1, -1, 116, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, -1, 14, 15, 16, - -1, 18, -1, -1, -1, 22, 23, -1, -1, 26, - -1, -1, -1, 30, 31, 32, 33, -1, -1, -1, - -1, -1, -1, 40, 41, -1, 57, 44, 59, 60, - 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, -1, -1, -1, -1, -1, -1, -1, -1, - 77, 78, -1, -1, -1, -1, 83, -1, 85, 86, - 87, 88, -1, -1, 91, 92, 93, 94, 95, -1, - -1, -1, -1, 114, -1, -1, -1, -1, -1, -1, - 107, 108, -1, 110, -1, 112, 113, -1, -1, 116, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - -1, 14, -1, 16, -1, 18, -1, -1, -1, 22, - 23, -1, -1, 26, -1, -1, -1, 30, 31, 32, - 33, -1, -1, -1, -1, -1, -1, 40, 41, -1, - 57, 44, 59, 60, 61, 62, 63, 64, 65, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, -1, -1, -1, -1, - -1, -1, -1, -1, 77, 78, -1, -1, -1, -1, - 83, -1, 85, 86, 87, 88, -1, -1, 91, 92, - 93, 94, 95, -1, -1, 112, -1, -1, -1, -1, - -1, -1, -1, -1, 107, 108, -1, 110, -1, 112, - 113, -1, -1, 116, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, -1, 14, -1, 16, -1, 18, - -1, -1, -1, 22, 23, -1, -1, 26, -1, -1, - -1, 30, 31, -1, 33, -1, -1, -1, -1, -1, - -1, 40, 41, -1, -1, 44, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 77, 78, - -1, -1, -1, -1, 83, -1, 85, 86, 87, 88, - -1, -1, 91, 92, 93, 94, 95, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 107, -1, - -1, 110, -1, 112, 113, -1, -1, 116, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, -1, 14, - -1, 16, -1, 18, -1, -1, -1, 22, 23, -1, - -1, 26, -1, -1, -1, 30, 31, -1, 33, -1, - -1, -1, -1, -1, -1, 40, 41, -1, -1, 44, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 58, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - -1, -1, 77, 78, -1, -1, -1, -1, 83, -1, - 85, 86, 87, 88, -1, -1, 91, 92, 93, 94, - 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 107, -1, -1, 110, -1, 112, 113, -1, - -1, 116, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, -1, 14, -1, 16, -1, 18, -1, -1, - -1, 22, 23, -1, -1, 26, -1, -1, -1, 30, - 31, -1, 33, -1, -1, -1, -1, -1, -1, 40, - 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 58, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, -1, -1, 77, 78, -1, -1, - -1, -1, 83, -1, 85, 86, 87, 88, -1, -1, - 91, 92, 93, 94, 95, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 107, -1, -1, 110, - -1, 112, 113, -1, -1, 116, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, -1, 14, -1, 16, - -1, 18, -1, -1, -1, 22, 23, -1, -1, 26, - -1, -1, -1, 30, 31, -1, 33, -1, -1, -1, - -1, -1, -1, 40, 41, -1, -1, 44, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 58, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 77, 78, -1, -1, -1, -1, 83, -1, 85, 86, - 87, 88, -1, -1, 91, 92, 93, 94, 95, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 107, -1, -1, 110, -1, 112, 113, -1, -1, 116, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - -1, 14, -1, 16, -1, 18, -1, -1, -1, 22, - 23, -1, -1, 26, -1, -1, -1, 30, 31, -1, - 33, -1, -1, -1, -1, -1, -1, 40, 41, -1, - -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 3, 4, 5, 6, - 7, -1, 9, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 77, 78, -1, -1, -1, -1, - 83, -1, 85, 86, 87, 88, -1, -1, 91, 92, - 93, 94, 95, 40, 41, -1, -1, 44, -1, -1, - -1, -1, -1, -1, 107, -1, -1, 110, -1, 112, - 113, -1, -1, 116, 3, 4, 5, 6, 7, -1, - 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 77, 78, -1, -1, -1, -1, 83, -1, 85, 86, - 87, 88, -1, -1, 91, 92, 93, 94, 95, -1, - -1, 40, 41, -1, -1, 44, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 112, 113, -1, -1, 116, - 3, 4, 5, 6, 7, -1, 9, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 77, 78, - -1, -1, -1, -1, 83, -1, 85, 86, 87, 88, - -1, -1, 91, 92, 93, 94, 95, 40, 41, -1, - -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 112, 113, -1, -1, 116, 3, 4, - 5, 6, 7, -1, 9, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 77, 78, -1, -1, -1, -1, - 83, -1, 85, 86, 87, 88, -1, -1, 91, 92, - 93, 94, 95, -1, -1, 40, 41, -1, -1, 44, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 112, - 113, -1, -1, 116, 3, 4, 5, 6, 7, -1, - 9, 66, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 77, 78, -1, -1, -1, -1, 83, -1, - 85, 86, 87, 88, -1, -1, 91, 92, 93, 94, - 95, 40, 41, -1, -1, 44, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 113, -1, - -1, 116, 3, 4, 5, 6, 7, -1, 9, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 77, 78, - -1, -1, -1, -1, 83, -1, 85, 86, 87, 88, - -1, -1, 91, 92, 93, 94, 95, -1, -1, 40, - 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 113, 114, -1, 116, 3, 4, - 5, 6, 7, -1, 9, 66, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 77, 78, -1, -1, - -1, -1, 83, -1, 85, 86, 87, 88, -1, -1, - 91, 92, 93, 94, 95, 40, 41, -1, -1, 44, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 113, -1, -1, 116, 3, 4, 5, 6, - 7, 66, 9, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 77, 78, -1, -1, -1, -1, 83, -1, - 85, 86, 87, 88, -1, -1, 91, 92, 93, 94, - 95, -1, -1, 40, 41, -1, -1, 44, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 113, -1, - -1, 116, 3, 4, 5, 6, 7, -1, 9, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 77, 78, -1, -1, -1, -1, 83, -1, 85, 86, - 87, 88, -1, -1, 91, 92, 93, 94, 95, 40, - 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 113, -1, 115, 116, - 3, 4, 5, 6, 7, 66, 9, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 77, 78, -1, -1, - -1, -1, 83, -1, 85, 86, 87, 88, -1, -1, - 91, 92, 93, 94, 95, -1, -1, 40, 41, -1, - -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 113, -1, -1, 116, 3, 4, 5, 6, - 7, -1, 9, 66, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 77, 78, -1, -1, -1, -1, - 83, -1, 85, 86, 87, 88, -1, -1, 91, 92, - 93, 94, 95, 40, 41, -1, -1, 44, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 113, -1, -1, 116, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 77, 78, -1, -1, -1, -1, 83, -1, 85, 86, - 87, 88, -1, -1, 91, 92, 93, 94, 95, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 113, -1, 57, 116, - 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 57, -1, 59, 60, 61, 62, - 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - -1, -1, 57, 112, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 57, 112, - 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, -1, -1, 57, 112, 59, 60, - 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 111, -1, -1, -1, -1, -1, -1, -1, - -1, 39, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 57, - 111, 59, 60, 61, 62, 63, 64, 65, 66, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 57, 58, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 57, -1, 59, 60, 61, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 60, 61, 62, 63, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 61, 62, 63, 64, 65, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 63, 64, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 64, 65, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82 -}; - -/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = -{ - 0, 108, 118, 119, 0, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 14, 16, 18, 22, 23, - 26, 30, 31, 32, 33, 40, 41, 44, 77, 78, - 83, 85, 86, 87, 88, 91, 92, 93, 94, 95, - 107, 108, 109, 110, 112, 113, 116, 120, 121, 129, - 143, 144, 145, 146, 148, 42, 113, 123, 148, 113, - 149, 113, 121, 113, 113, 113, 113, 7, 125, 126, - 113, 113, 112, 148, 112, 148, 6, 66, 112, 148, - 113, 113, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 6, 144, 145, 144, 7, 127, 128, - 119, 119, 148, 110, 45, 46, 47, 48, 49, 50, - 51, 52, 53, 54, 55, 56, 94, 95, 38, 42, - 96, 110, 57, 59, 60, 61, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 112, 6, 66, - 147, 148, 43, 112, 114, 148, 148, 12, 148, 123, - 135, 148, 6, 122, 43, 112, 124, 144, 148, 112, - 112, 130, 6, 112, 40, 144, 150, 151, 66, 148, - 152, 153, 38, 45, 43, 112, 109, 111, 114, 148, - 66, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 6, 6, 115, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 144, 43, 114, 148, 114, 114, 113, - 114, 112, 20, 45, 43, 114, 126, 43, 114, 114, - 113, 113, 113, 43, 114, 144, 39, 43, 114, 6, - 6, 143, 128, 111, 144, 113, 113, 115, 111, 58, - 66, 148, 121, 148, 58, 121, 138, 135, 144, 143, - 6, 58, 121, 144, 112, 58, 110, 139, 6, 131, - 132, 131, 150, 151, 45, 66, 148, 153, 147, 147, - 148, 144, 136, 114, 119, 112, 39, 114, 45, 119, - 112, 140, 112, 140, 43, 114, 7, 66, 114, 114, - 148, 144, 114, 114, 99, 100, 137, 112, 13, 135, - 66, 144, 58, 121, 134, 143, 19, 140, 27, 28, - 29, 141, 140, 111, 132, 110, 7, 110, 113, 121, - 112, 114, 144, 114, 119, 27, 112, 148, 58, 112, - 142, 111, 7, 66, 119, 119, 148, 58, 121, 133, - 114, 134, 17, 112, 119, 7, 111, 111, 114, 119, - 134, 112, 121, 15, 112 -}; - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 - -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab - - -/* Like YYERROR except do call yyerror. This remains here temporarily - to ease the transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. However, - YYFAIL appears to be in use. Nevertheless, it is formally deprecated - in Bison 2.4.2's NEWS entry, where a plan to phase it out is - discussed. */ - -#define YYFAIL goto yyerrlab -#if defined YYFAIL - /* This is here to suppress warnings from the GCC cpp's - -Wunused-macros. Normally we don't worry about that warning, but - some users do, and we want to make it easy for users to remove - YYFAIL uses, which will produce warnings from Bison 2.5. */ -#endif - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - yytoken = YYTRANSLATE (yychar); \ - YYPOPSTACK (1); \ - goto yybackup; \ - } \ - else \ - { \ - yyerror (YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ -while (YYID (0)) - - -#define YYTERROR 1 -#define YYERRCODE 256 - - -/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. - If N is 0, then set CURRENT to the empty location which ends - the previous symbol: RHS[0] (always defined). */ - -#define YYRHSLOC(Rhs, K) ((Rhs)[K]) -#ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (YYID (N)) \ - { \ - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ - } \ - else \ - { \ - (Current).first_line = (Current).last_line = \ - YYRHSLOC (Rhs, 0).last_line; \ - (Current).first_column = (Current).last_column = \ - YYRHSLOC (Rhs, 0).last_column; \ - } \ - while (YYID (0)) -#endif - - -/* YY_LOCATION_PRINT -- Print the location on the stream. - This macro was not mandated originally: define only if we know - we won't break user code: when these are the locations we know. */ - -#ifndef YY_LOCATION_PRINT -# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL -# define YY_LOCATION_PRINT(File, Loc) \ - fprintf (File, "%d.%d-%d.%d", \ - (Loc).first_line, (Loc).first_column, \ - (Loc).last_line, (Loc).last_column) -# else -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif -#endif - - -/* YYLEX -- calling `yylex' with the right arguments. */ - -#ifdef YYLEX_PARAM -# define YYLEX yylex (YYLEX_PARAM) -#else -# define YYLEX yylex () -#endif - -/* Enable debugging if requested. */ -#if YYDEBUG - -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif - -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (YYID (0)) - -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yy_symbol_print (stderr, \ - Type, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (YYID (0)) - - -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ - -/*ARGSUSED*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) -#else -static void -yy_symbol_value_print (yyoutput, yytype, yyvaluep) - FILE *yyoutput; - int yytype; - YYSTYPE const * const yyvaluep; -#endif -{ - if (!yyvaluep) - return; -# ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# else - YYUSE (yyoutput); -# endif - switch (yytype) - { - default: - break; - } -} - - -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ - -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) -#else -static void -yy_symbol_print (yyoutput, yytype, yyvaluep) - FILE *yyoutput; - int yytype; - YYSTYPE const * const yyvaluep; -#endif -{ - if (yytype < YYNTOKENS) - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); - else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); - - yy_symbol_value_print (yyoutput, yytype, yyvaluep); - YYFPRINTF (yyoutput, ")"); -} - -/*------------------------------------------------------------------. -| yy_stack_print -- Print the state stack from its BOTTOM up to its | -| TOP (included). | -`------------------------------------------------------------------*/ - -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) -#else -static void -yy_stack_print (yybottom, yytop) - yytype_int16 *yybottom; - yytype_int16 *yytop; -#endif -{ - YYFPRINTF (stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) - { - int yybot = *yybottom; - YYFPRINTF (stderr, " %d", yybot); - } - YYFPRINTF (stderr, "\n"); -} - -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (YYID (0)) - - -/*------------------------------------------------. -| Report that the YYRULE is going to be reduced. | -`------------------------------------------------*/ - -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yy_reduce_print (YYSTYPE *yyvsp, int yyrule) -#else -static void -yy_reduce_print (yyvsp, yyrule) - YYSTYPE *yyvsp; - int yyrule; -#endif -{ - int yynrhs = yyr2[yyrule]; - int yyi; - unsigned long int yylno = yyrline[yyrule]; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", - yyrule - 1, yylno); - /* The symbols being reduced. */ - for (yyi = 0; yyi < yynrhs; yyi++) - { - YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], - &(yyvsp[(yyi + 1) - (yynrhs)]) - ); - YYFPRINTF (stderr, "\n"); - } -} - -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyvsp, Rule); \ -} while (YYID (0)) - -/* Nonzero means print parse trace. It is left uninitialized so that - multiple parsers can coexist. */ -int yydebug; -#else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) -#endif /* !YYDEBUG */ - - -/* YYINITDEPTH -- initial size of the parser's stacks. */ -#ifndef YYINITDEPTH -# define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only - if the built-in stack extension method is used). - - Do not make this value too large; the results are undefined if - YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) - evaluated with infinite-precision integer arithmetic. */ - -#ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 -#endif - - - -#if YYERROR_VERBOSE - -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else -/* Return the length of YYSTR. */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static YYSIZE_T -yystrlen (const char *yystr) -#else -static YYSIZE_T -yystrlen (yystr) - const char *yystr; -#endif -{ - YYSIZE_T yylen; - for (yylen = 0; yystr[yylen]; yylen++) - continue; - return yylen; -} -# endif -# endif - -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else -/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in - YYDEST. */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static char * -yystpcpy (char *yydest, const char *yysrc) -#else -static char * -yystpcpy (yydest, yysrc) - char *yydest; - const char *yysrc; -#endif -{ - char *yyd = yydest; - const char *yys = yysrc; - - while ((*yyd++ = *yys++) != '\0') - continue; - - return yyd - 1; -} -# endif -# endif - -# ifndef yytnamerr -/* Copy to YYRES the contents of YYSTR after stripping away unnecessary - quotes and backslashes, so that it's suitable for yyerror. The - heuristic is that double-quoting is unnecessary unless the string - contains an apostrophe, a comma, or backslash (other than - backslash-backslash). YYSTR is taken from yytname. If YYRES is - null, do not copy; instead, return the length of what the result - would have been. */ -static YYSIZE_T -yytnamerr (char *yyres, const char *yystr) -{ - if (*yystr == '"') - { - YYSIZE_T yyn = 0; - char const *yyp = yystr; - - for (;;) - switch (*++yyp) - { - case '\'': - case ',': - goto do_not_strip_quotes; - - case '\\': - if (*++yyp != '\\') - goto do_not_strip_quotes; - /* Fall through. */ - default: - if (yyres) - yyres[yyn] = *yyp; - yyn++; - break; - - case '"': - if (yyres) - yyres[yyn] = '\0'; - return yyn; - } - do_not_strip_quotes: ; - } - - if (! yyres) - return yystrlen (yystr); - - return yystpcpy (yyres, yystr) - yyres; -} -# endif - -/* Copy into YYRESULT an error message about the unexpected token - YYCHAR while in state YYSTATE. Return the number of bytes copied, - including the terminating null byte. If YYRESULT is null, do not - copy anything; just return the number of bytes that would be - copied. As a special case, return 0 if an ordinary "syntax error" - message will do. Return YYSIZE_MAXIMUM if overflow occurs during - size calculation. */ -static YYSIZE_T -yysyntax_error (char *yyresult, int yystate, int yychar) -{ - int yyn = yypact[yystate]; - - if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) - return 0; - else - { - int yytype = YYTRANSLATE (yychar); - YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); - YYSIZE_T yysize = yysize0; - YYSIZE_T yysize1; - int yysize_overflow = 0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - int yyx; - -# if 0 - /* This is so xgettext sees the translatable formats that are - constructed on the fly. */ - YY_("syntax error, unexpected %s"); - YY_("syntax error, unexpected %s, expecting %s"); - YY_("syntax error, unexpected %s, expecting %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); -# endif - char *yyfmt; - char const *yyf; - static char const yyunexpected[] = "syntax error, unexpected %s"; - static char const yyexpecting[] = ", expecting %s"; - static char const yyor[] = " or %s"; - char yyformat[sizeof yyunexpected - + sizeof yyexpecting - 1 - + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) - * (sizeof yyor - 1))]; - char const *yyprefix = yyexpecting; - - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yycount = 1; - - yyarg[0] = yytname[yytype]; - yyfmt = yystpcpy (yyformat, yyunexpected); - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - yyformat[sizeof yyunexpected - 1] = '\0'; - break; - } - yyarg[yycount++] = yytname[yyx]; - yysize1 = yysize + yytnamerr (0, yytname[yyx]); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - yyfmt = yystpcpy (yyfmt, yyprefix); - yyprefix = yyor; - } - - yyf = YY_(yyformat); - yysize1 = yysize + yystrlen (yyf); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - - if (yysize_overflow) - return YYSIZE_MAXIMUM; - - if (yyresult) - { - /* Avoid sprintf, as that infringes on the user's name space. - Don't have undefined behavior even if the translation - produced a string with the wrong number of "%s"s. */ - char *yyp = yyresult; - int yyi = 0; - while ((*yyp = *yyf) != '\0') - { - if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) - { - yyp += yytnamerr (yyp, yyarg[yyi++]); - yyf += 2; - } - else - { - yyp++; - yyf++; - } - } - } - return yysize; - } -} -#endif /* YYERROR_VERBOSE */ - - -/*-----------------------------------------------. -| Release the memory associated to this symbol. | -`-----------------------------------------------*/ - -/*ARGSUSED*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) -#else -static void -yydestruct (yymsg, yytype, yyvaluep) - const char *yymsg; - int yytype; - YYSTYPE *yyvaluep; -#endif -{ - YYUSE (yyvaluep); - - if (!yymsg) - yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); - - switch (yytype) - { - - default: - break; - } -} - -/* Prevent warnings from -Wmissing-prototypes. */ -#ifdef YYPARSE_PARAM -#if defined __STDC__ || defined __cplusplus -int yyparse (void *YYPARSE_PARAM); -#else -int yyparse (); -#endif -#else /* ! YYPARSE_PARAM */ -#if defined __STDC__ || defined __cplusplus -int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ - - -/* The lookahead symbol. */ -int yychar; - -/* The semantic value of the lookahead symbol. */ -YYSTYPE yylval; - -/* Number of syntax errors so far. */ -int yynerrs; - - - -/*-------------------------. -| yyparse or yypush_parse. | -`-------------------------*/ - -#ifdef YYPARSE_PARAM -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -int -yyparse (void *YYPARSE_PARAM) -#else -int -yyparse (YYPARSE_PARAM) - void *YYPARSE_PARAM; -#endif -#else /* ! YYPARSE_PARAM */ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -int -yyparse (void) -#else -int -yyparse () - -#endif -#endif -{ - - - int yystate; - /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; - - /* The stacks and their tools: - `yyss': related to states. - `yyvs': related to semantic values. - - Refer to the stacks thru separate pointers, to allow yyoverflow - to reallocate them elsewhere. */ - - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss; - yytype_int16 *yyssp; - - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs; - YYSTYPE *yyvsp; - - YYSIZE_T yystacksize; - - int yyn; - int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken; - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; - -#if YYERROR_VERBOSE - /* Buffer for error messages, and its allocated size. */ - char yymsgbuf[128]; - char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; -#endif - -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) - - /* The number of symbols on the RHS of the reduced rule. - Keep to zero when no symbol should be popped. */ - int yylen = 0; - - yytoken = 0; - yyss = yyssa; - yyvs = yyvsa; - yystacksize = YYINITDEPTH; - - YYDPRINTF ((stderr, "Starting parse\n")); - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - yyssp = yyss; - yyvsp = yyvs; - - goto yysetstate; - -/*------------------------------------------------------------. -| yynewstate -- Push a new state, which is found in yystate. | -`------------------------------------------------------------*/ - yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. So pushing a state here evens the stacks. */ - yyssp++; - - yysetstate: - *yyssp = yystate; - - if (yyss + yystacksize - 1 <= yyssp) - { - /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = yyssp - yyss + 1; - -#ifdef yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; - - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), - &yystacksize); - - yyss = yyss1; - yyvs = yyvs1; - } -#else /* no yyoverflow */ -# ifndef YYSTACK_RELOCATE - goto yyexhaustedlab; -# else - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; - - { - yytype_int16 *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); - } -# endif -#endif /* no yyoverflow */ - - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; - - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long int) yystacksize)); - - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; - } - - YYDPRINTF ((stderr, "Entering state %d\n", yystate)); - - if (yystate == YYFINAL) - YYACCEPT; - - goto yybackup; - -/*-----------. -| yybackup. | -`-----------*/ -yybackup: - - /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ - - /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; - if (yyn == YYPACT_NINF) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ - if (yychar == YYEMPTY) - { - YYDPRINTF ((stderr, "Reading a token: ")); - yychar = YYLEX; - } - - if (yychar <= YYEOF) - { - yychar = yytoken = YYEOF; - YYDPRINTF ((stderr, "Now at end of input.\n")); - } - else - { - yytoken = YYTRANSLATE (yychar); - YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); - } - - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) - { - if (yyn == 0 || yyn == YYTABLE_NINF) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; - - /* Shift the lookahead token. */ - YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - - /* Discard the shifted token. */ - yychar = YYEMPTY; - - yystate = yyn; - *++yyvsp = yylval; - - goto yynewstate; - - -/*-----------------------------------------------------------. -| yydefault -- do the default action for the current state. | -`-----------------------------------------------------------*/ -yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; - - -/*-----------------------------. -| yyreduce -- Do a reduction. | -`-----------------------------*/ -yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; - - /* If YYLEN is nonzero, implement the default value of the action: - `$$ = $1'. - - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1-yylen]; - - - YY_REDUCE_PRINT (yyn); - switch (yyn) - { - case 2: - -/* Line 1464 of yacc.c */ -#line 142 "php_parser.y" - { g_syn_tree_top = (yyvsp[(2) - (3)].syn_node); ;} - break; - - case 3: - -/* Line 1464 of yacc.c */ -#line 146 "php_parser.y" - { (yyval.syn_node) = add_statement_2_list((yyvsp[(1) - (2)].syn_node), (yyvsp[(2) - (2)].syn_node)); ;} - break; - - case 4: - -/* Line 1464 of yacc.c */ -#line 147 "php_parser.y" - { (yyval.syn_node) = 0; ;} - break; - - case 6: - -/* Line 1464 of yacc.c */ -#line 153 "php_parser.y" - { (yyval.syn_node) = (yyvsp[(2) - (3)].syn_node); ;} - break; - - case 8: - -/* Line 1464 of yacc.c */ -#line 159 "php_parser.y" - { (yyval.syn_node) = (yyvsp[(2) - (3)].syn_node); ;} - break; - - case 9: - -/* Line 1464 of yacc.c */ -#line 160 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_EXPR, (yyvsp[(1) - (2)].exp_node)); ;} - break; - - case 10: - -/* Line 1464 of yacc.c */ -#line 161 "php_parser.y" - { (yyval.syn_node) = 0; ;} - break; - - case 11: - -/* Line 1464 of yacc.c */ -#line 162 "php_parser.y" - { (yyval.syn_node) = (yyvsp[(2) - (3)].syn_node); ;} - break; - - case 12: - -/* Line 1464 of yacc.c */ -#line 163 "php_parser.y" - { (yyval.syn_node) = make_ifelse_syn_node((yyvsp[(3) - (7)].exp_node), (yyvsp[(5) - (7)].syn_node), (yyvsp[(6) - (7)].syn_node), (yyvsp[(7) - (7)].syn_node)); ;} - break; - - case 13: - -/* Line 1464 of yacc.c */ -#line 164 "php_parser.y" - { (yyval.syn_node) = make_while_loop_syn_node((yyvsp[(3) - (5)].exp_node), (yyvsp[(5) - (5)].syn_node), 1); ;} - break; - - case 14: - -/* Line 1464 of yacc.c */ -#line 165 "php_parser.y" - { (yyval.syn_node) = make_while_loop_syn_node((yyvsp[(5) - (7)].exp_node), (yyvsp[(2) - (7)].syn_node), 0); ;} - break; - - case 15: - -/* Line 1464 of yacc.c */ -#line 166 "php_parser.y" - { (yyval.syn_node) = make_for_syn_node((yyvsp[(3) - (9)].exp_node), (yyvsp[(5) - (9)].exp_node), (yyvsp[(7) - (9)].exp_node), (yyvsp[(9) - (9)].syn_node)); ;} - break; - - case 16: - -/* Line 1464 of yacc.c */ -#line 167 "php_parser.y" - { (yyval.syn_node) = make_switch_syn_node((yyvsp[(3) - (5)].exp_node), (yyvsp[(5) - (5)].exp_node)); ;} - break; - - case 17: - -/* Line 1464 of yacc.c */ -#line 168 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_CONTINUE, 0); ;} - break; - - case 18: - -/* Line 1464 of yacc.c */ -#line 169 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_CONTINUE, (yyvsp[(2) - (3)].exp_node)); ;} - break; - - case 19: - -/* Line 1464 of yacc.c */ -#line 170 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_BREAK, 0); ;} - break; - - case 20: - -/* Line 1464 of yacc.c */ -#line 171 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_BREAK, (yyvsp[(2) - (3)].exp_node)); ;} - break; - - case 21: - -/* Line 1464 of yacc.c */ -#line 172 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_RET, 0); ;} - break; - - case 22: - -/* Line 1464 of yacc.c */ -#line 173 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_RET, (yyvsp[(2) - (3)].exp_node)); ;} - break; - - case 23: - -/* Line 1464 of yacc.c */ -#line 174 "php_parser.y" - { (yyval.syn_node) = make_expr_syn_node(PHP_ST_ECHO, (yyvsp[(2) - (3)].exp_node)); ;} - break; - - case 24: - -/* Line 1464 of yacc.c */ -#line 175 "php_parser.y" - { ;} - break; - - case 25: - -/* Line 1464 of yacc.c */ -#line 176 "php_parser.y" - { - (yyval.syn_node) = make_foreach_loop_syn_node((yyvsp[(3) - (7)].exp_node), 0, (yyvsp[(5) - (7)].exp_node), (yyvsp[(7) - (7)].syn_node), 0); - ;} - break; - - case 26: - -/* Line 1464 of yacc.c */ -#line 179 "php_parser.y" - { - (yyval.syn_node) = make_foreach_loop_syn_node((yyvsp[(3) - (9)].exp_node), (yyvsp[(5) - (9)].exp_node), (yyvsp[(7) - (9)].exp_node), (yyvsp[(9) - (9)].syn_node), 0); - ;} - break; - - case 27: - -/* Line 1464 of yacc.c */ -#line 182 "php_parser.y" - { - (yyval.syn_node) = make_foreach_loop_syn_node((yyvsp[(3) - (10)].exp_node), (yyvsp[(5) - (10)].exp_node), (yyvsp[(8) - (10)].exp_node), (yyvsp[(10) - (10)].syn_node), 1); - ;} - break; - - case 28: - -/* Line 1464 of yacc.c */ -#line 185 "php_parser.y" - { ;} - break; - - case 29: - -/* Line 1464 of yacc.c */ -#line 186 "php_parser.y" - { ;} - break; - - case 30: - -/* Line 1464 of yacc.c */ -#line 187 "php_parser.y" - { (yyval.syn_node) = 0; ;} - break; - - case 31: - -/* Line 1464 of yacc.c */ -#line 190 "php_parser.y" - { ;} - break; - - case 32: - -/* Line 1464 of yacc.c */ -#line 191 "php_parser.y" - { ;} - break; - - case 33: - -/* Line 1464 of yacc.c */ -#line 194 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_LIST, 0); (yyval.exp_node)->exp_node = (yyvsp[(1) - (1)].exp_node); ;} - break; - - case 34: - -/* Line 1464 of yacc.c */ -#line 195 "php_parser.y" - { - PHP_EXP_NODE *last = (yyvsp[(1) - (3)].exp_node); - while ( last->next) last = last->next; - last->next = make_exp_1(PHP_OP_LIST, 0); - last->next->exp_node = (yyvsp[(3) - (3)].exp_node); - (yyval.exp_node) = (yyvsp[(1) - (3)].exp_node); - ;} - break; - - case 37: - -/* Line 1464 of yacc.c */ -#line 211 "php_parser.y" - { (yyval.syn_node) = 0; ;} - break; - - case 38: - -/* Line 1464 of yacc.c */ -#line 212 "php_parser.y" - { ;} - break; - - case 39: - -/* Line 1464 of yacc.c */ -#line 216 "php_parser.y" - { - const char *varname = get_scope_var_name(g_current_scope, (yyvsp[(1) - (1)].exp_node)->var_si_node->var); - PHP_SCOPE_ITEM *si = get_scope_item(g_current_scope, varname); - PHP_SCOPE_ITEM *gsi = get_scope_item(g_global_scope, varname); - if ( gsi && (gsi->type == PHP_SCOPE_VAR) ) { - free_var_node(si->var); - php_exp_tree_free((yyvsp[(1) - (1)].exp_node)); - gsi->var->ref_count++; - si->var = gsi->var; - } else { - php_report_error(PHP_ERROR, "There is no such global var"); - } - ;} - break; - - case 40: - -/* Line 1464 of yacc.c */ -#line 231 "php_parser.y" - { (yyval.syn_node) = 0; ;} - break; - - case 41: - -/* Line 1464 of yacc.c */ -#line 232 "php_parser.y" - { ;} - break; - - case 42: - -/* Line 1464 of yacc.c */ -#line 235 "php_parser.y" - { (yyvsp[(1) - (1)].exp_node)->var_node->flags |= PHP_VARFLAG_STATIC; (yyval.exp_node) = (yyvsp[(1) - (1)].exp_node); ;} - break; - - case 43: - -/* Line 1464 of yacc.c */ -#line 236 "php_parser.y" - { - (yyvsp[(1) - (3)].exp_node)->var_node->flags |= PHP_VARFLAG_STATIC; (yyval.exp_node) = (yyvsp[(1) - (3)].exp_node); - value_value_assign(&(yyvsp[(1) - (3)].exp_node)->var_node->value, &(yyvsp[(3) - (3)].exp_node)->val_node); - ;} - break; - - case 44: - -/* Line 1464 of yacc.c */ -#line 244 "php_parser.y" - { - switch_push_scope_table(make_scope_table()) - ;} - break; - - case 45: - -/* Line 1464 of yacc.c */ -#line 246 "php_parser.y" - { - (yyval.syn_node) = make_func_decl_syn_node((yyvsp[(2) - (9)].str_val), (yyvsp[(5) - (9)].exp_node)); - (yyval.syn_node)->func_decl->scope = g_current_scope; - (yyval.syn_node)->func_decl->is_native = 0; - (yyval.syn_node)->func_decl->code = (yyvsp[(8) - (9)].syn_node); - switch_pop_scope_table(0); - add_func_2_scope(g_current_scope, (yyval.syn_node)); - (yyval.syn_node) = 0; - ;} - break; - - case 46: - -/* Line 1464 of yacc.c */ -#line 255 "php_parser.y" - { ;} - break; - - case 47: - -/* Line 1464 of yacc.c */ -#line 259 "php_parser.y" - { (yyval.exp_node) = make_func_param(0, (yyvsp[(2) - (2)].exp_node), (yyvsp[(1) - (2)].str_val), 0); ;} - break; - - case 48: - -/* Line 1464 of yacc.c */ -#line 260 "php_parser.y" - { (yyval.exp_node) = make_func_param(0, (yyvsp[(3) - (3)].exp_node), (yyvsp[(1) - (3)].str_val), 1); ;} - break; - - case 49: - -/* Line 1464 of yacc.c */ -#line 261 "php_parser.y" - { (yyval.exp_node) = make_func_param((yyvsp[(1) - (4)].exp_node), (yyvsp[(4) - (4)].exp_node), (yyvsp[(3) - (4)].str_val), 0); ;} - break; - - case 50: - -/* Line 1464 of yacc.c */ -#line 262 "php_parser.y" - { (yyval.exp_node) = make_func_param((yyvsp[(1) - (5)].exp_node), (yyvsp[(5) - (5)].exp_node), (yyvsp[(3) - (5)].str_val), 1); ;} - break; - - case 51: - -/* Line 1464 of yacc.c */ -#line 263 "php_parser.y" - { (yyval.exp_node) = 0; ;} - break; - - case 52: - -/* Line 1464 of yacc.c */ -#line 267 "php_parser.y" - { (yyval.str_val)[0] = 0; ;} - break; - - case 55: - -/* Line 1464 of yacc.c */ -#line 273 "php_parser.y" - { (yyval.syn_node) = (yyvsp[(2) - (4)].syn_node); ;} - break; - - case 57: - -/* Line 1464 of yacc.c */ -#line 278 "php_parser.y" - { (yyval.syn_node) = (yyvsp[(2) - (4)].syn_node); ;} - break; - - case 59: - -/* Line 1464 of yacc.c */ -#line 282 "php_parser.y" - { (yyval.exp_node) = 0; ;} - break; - - case 60: - -/* Line 1464 of yacc.c */ -#line 286 "php_parser.y" - { (yyval.syn_node) = add_branch_2_elseif((yyvsp[(1) - (6)].syn_node), make_ifelse_syn_node((yyvsp[(4) - (6)].exp_node), (yyvsp[(6) - (6)].syn_node), 0, 0)); ;} - break; - - case 61: - -/* Line 1464 of yacc.c */ -#line 287 "php_parser.y" - { (yyval.syn_node) = 0; ;} - break; - - case 62: - -/* Line 1464 of yacc.c */ -#line 291 "php_parser.y" - { (yyval.syn_node) = 0; ;} - break; - - case 63: - -/* Line 1464 of yacc.c */ -#line 292 "php_parser.y" - { (yyval.syn_node) = (yyvsp[(2) - (2)].syn_node); ;} - break; - - case 65: - -/* Line 1464 of yacc.c */ -#line 296 "php_parser.y" - { (yyval.syn_node) = (yyvsp[(2) - (4)].syn_node); ;} - break; - - case 66: - -/* Line 1464 of yacc.c */ -#line 300 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(2) - (3)].exp_node); ;} - break; - - case 67: - -/* Line 1464 of yacc.c */ -#line 301 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(3) - (4)].exp_node); ;} - break; - - case 68: - -/* Line 1464 of yacc.c */ -#line 302 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(2) - (4)].exp_node); ;} - break; - - case 69: - -/* Line 1464 of yacc.c */ -#line 303 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(3) - (5)].exp_node); ;} - break; - - case 70: - -/* Line 1464 of yacc.c */ -#line 307 "php_parser.y" - { (yyval.exp_node) = 0; ;} - break; - - case 71: - -/* Line 1464 of yacc.c */ -#line 308 "php_parser.y" - { - (yyvsp[(2) - (4)].exp_node)->tree_node.syn_right = (yyvsp[(4) - (4)].syn_node); - if ( (yyvsp[(1) - (4)].exp_node) ) { - PHP_EXP_NODE *last = (yyvsp[(1) - (4)].exp_node); - while ( last->next) last = last->next; - last->next = make_exp_1(PHP_OP_LIST, 0); - last->next->exp_node = (yyvsp[(2) - (4)].exp_node); - (yyval.exp_node) = (yyvsp[(1) - (4)].exp_node); - } else { - (yyval.exp_node) = make_exp_1(PHP_OP_LIST, 0); - (yyval.exp_node)->exp_node = (yyvsp[(2) - (4)].exp_node); - } - ;} - break; - - case 72: - -/* Line 1464 of yacc.c */ -#line 323 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LIST, (yyvsp[(2) - (2)].exp_node), 0); ;} - break; - - case 73: - -/* Line 1464 of yacc.c */ -#line 324 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LIST, 0, 0); ;} - break; - - case 79: - -/* Line 1464 of yacc.c */ -#line 335 "php_parser.y" - { (yyval.exp_node) = make_known_const((yyvsp[(1) - (1)].str_val)); ;} - break; - - case 81: - -/* Line 1464 of yacc.c */ -#line 339 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_CLASS_DEREF, make_const_exp_str((yyvsp[(1) - (3)].str_val), 0), make_const_exp_str((yyvsp[(3) - (3)].str_val), 0)); ;} - break; - - case 82: - -/* Line 1464 of yacc.c */ -#line 340 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_OBJECT_DEREF, (yyvsp[(1) - (3)].exp_node), make_const_exp_str((yyvsp[(3) - (3)].str_val), 0)); ;} - break; - - case 84: - -/* Line 1464 of yacc.c */ -#line 345 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_BY_KEY, (yyvsp[(1) - (3)].exp_node), 0); ;} - break; - - case 85: - -/* Line 1464 of yacc.c */ -#line 346 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_BY_KEY, (yyvsp[(1) - (4)].exp_node), (yyvsp[(3) - (4)].exp_node));;} - break; - - case 86: - -/* Line 1464 of yacc.c */ -#line 347 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_BY_KEY, (yyvsp[(1) - (4)].exp_node), (yyvsp[(3) - (4)].exp_node));;} - break; - - case 87: - -/* Line 1464 of yacc.c */ -#line 348 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_VAR_BY_EXP, (yyvsp[(3) - (4)].exp_node)); ;} - break; - - case 88: - -/* Line 1464 of yacc.c */ -#line 352 "php_parser.y" - { (yyval.exp_node) = make_func_call_exp((yyvsp[(1) - (4)].str_val), (yyvsp[(3) - (4)].exp_node)); ;} - break; - - case 89: - -/* Line 1464 of yacc.c */ -#line 353 "php_parser.y" - { ;} - break; - - case 90: - -/* Line 1464 of yacc.c */ -#line 354 "php_parser.y" - { ;} - break; - - case 91: - -/* Line 1464 of yacc.c */ -#line 357 "php_parser.y" - { (yyval.exp_node) = make_func_call_param_list(); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[(1) - (1)].exp_node), 0); ;} - break; - - case 92: - -/* Line 1464 of yacc.c */ -#line 358 "php_parser.y" - { (yyval.exp_node) = make_func_call_param_list(); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[(2) - (2)].exp_node), 1); ;} - break; - - case 93: - -/* Line 1464 of yacc.c */ -#line 359 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(1) - (3)].exp_node); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[(3) - (3)].exp_node), 0); ;} - break; - - case 94: - -/* Line 1464 of yacc.c */ -#line 360 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(1) - (4)].exp_node); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[(4) - (4)].exp_node), 1); ;} - break; - - case 95: - -/* Line 1464 of yacc.c */ -#line 361 "php_parser.y" - { (yyval.exp_node) = make_func_call_param_list(); ;} - break; - - case 96: - -/* Line 1464 of yacc.c */ -#line 366 "php_parser.y" - { ;} - break; - - case 98: - -/* Line 1464 of yacc.c */ -#line 368 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 99: - -/* Line 1464 of yacc.c */ -#line 369 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(1) - (1)].exp_node); ;} - break; - - case 100: - -/* Line 1464 of yacc.c */ -#line 370 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_MAKE_REF, (yyvsp[(1) - (4)].exp_node), (yyvsp[(4) - (4)].exp_node)); ;} - break; - - case 101: - -/* Line 1464 of yacc.c */ -#line 375 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_ADD, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 102: - -/* Line 1464 of yacc.c */ -#line 376 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_SUB, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 103: - -/* Line 1464 of yacc.c */ -#line 377 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_MUL, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 104: - -/* Line 1464 of yacc.c */ -#line 378 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_DIV, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 105: - -/* Line 1464 of yacc.c */ -#line 379 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_CAT, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 106: - -/* Line 1464 of yacc.c */ -#line 380 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_REM, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 107: - -/* Line 1464 of yacc.c */ -#line 381 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_AND, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 108: - -/* Line 1464 of yacc.c */ -#line 382 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_OR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 109: - -/* Line 1464 of yacc.c */ -#line 383 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_XOR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 110: - -/* Line 1464 of yacc.c */ -#line 384 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_SHL, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 111: - -/* Line 1464 of yacc.c */ -#line 385 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (3)].exp_node), make_exp_2(PHP_OP_SHR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node))); ;} - break; - - case 112: - -/* Line 1464 of yacc.c */ -#line 387 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (2)].exp_node), make_exp_2(PHP_OP_ADD, (yyvsp[(1) - (2)].exp_node), make_const_exp_dnum(1))); ;} - break; - - case 113: - -/* Line 1464 of yacc.c */ -#line 388 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(2) - (2)].exp_node), make_exp_2(PHP_OP_ADD, (yyvsp[(2) - (2)].exp_node), make_const_exp_dnum(1))); ;} - break; - - case 114: - -/* Line 1464 of yacc.c */ -#line 389 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(1) - (2)].exp_node), make_exp_2(PHP_OP_SUB, (yyvsp[(1) - (2)].exp_node), make_const_exp_dnum(1))); ;} - break; - - case 115: - -/* Line 1464 of yacc.c */ -#line 390 "php_parser.y" - { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[(2) - (2)].exp_node), make_exp_2(PHP_OP_SUB, (yyvsp[(2) - (2)].exp_node), make_const_exp_dnum(1))); ;} - break; - - case 116: - -/* Line 1464 of yacc.c */ -#line 392 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_OR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 117: - -/* Line 1464 of yacc.c */ -#line 393 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_AND, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 118: - -/* Line 1464 of yacc.c */ -#line 394 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_OR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 119: - -/* Line 1464 of yacc.c */ -#line 395 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_AND, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 120: - -/* Line 1464 of yacc.c */ -#line 396 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_XOR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 121: - -/* Line 1464 of yacc.c */ -#line 397 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_OR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 122: - -/* Line 1464 of yacc.c */ -#line 398 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_AND, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 123: - -/* Line 1464 of yacc.c */ -#line 399 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_XOR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 124: - -/* Line 1464 of yacc.c */ -#line 400 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_CAT, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 125: - -/* Line 1464 of yacc.c */ -#line 401 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_ADD, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 126: - -/* Line 1464 of yacc.c */ -#line 402 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_SUB, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 127: - -/* Line 1464 of yacc.c */ -#line 403 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_MUL, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 128: - -/* Line 1464 of yacc.c */ -#line 404 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_DIV, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 129: - -/* Line 1464 of yacc.c */ -#line 405 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_REM, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 130: - -/* Line 1464 of yacc.c */ -#line 406 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_SHL, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 131: - -/* Line 1464 of yacc.c */ -#line 407 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_SHR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 132: - -/* Line 1464 of yacc.c */ -#line 408 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(2) - (2)].exp_node); ;} - break; - - case 133: - -/* Line 1464 of yacc.c */ -#line 409 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_SUB, make_const_exp_dnum(0), (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 134: - -/* Line 1464 of yacc.c */ -#line 410 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_LOG_NOT, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 135: - -/* Line 1464 of yacc.c */ -#line 411 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_NOT, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 136: - -/* Line 1464 of yacc.c */ -#line 412 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_SAME, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 137: - -/* Line 1464 of yacc.c */ -#line 413 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_NOT_SAME, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 138: - -/* Line 1464 of yacc.c */ -#line 414 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_EQ, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 139: - -/* Line 1464 of yacc.c */ -#line 415 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_NEQ, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 140: - -/* Line 1464 of yacc.c */ -#line 416 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LWR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 141: - -/* Line 1464 of yacc.c */ -#line 417 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_LWR_EQ, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 142: - -/* Line 1464 of yacc.c */ -#line 418 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_GRT, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 143: - -/* Line 1464 of yacc.c */ -#line 419 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_GRT_EQ, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 144: - -/* Line 1464 of yacc.c */ -#line 420 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(2) - (3)].exp_node); ;} - break; - - case 145: - -/* Line 1464 of yacc.c */ -#line 421 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_MUX, (yyvsp[(3) - (5)].exp_node), (yyvsp[(5) - (5)].exp_node)); (yyval.exp_node)->exp_node = (yyvsp[(1) - (5)].exp_node); ;} - break; - - case 146: - -/* Line 1464 of yacc.c */ -#line 422 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_INT, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 147: - -/* Line 1464 of yacc.c */ -#line 423 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_FLOAT, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 148: - -/* Line 1464 of yacc.c */ -#line 424 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_STR, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 149: - -/* Line 1464 of yacc.c */ -#line 425 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_BOOL, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 150: - -/* Line 1464 of yacc.c */ -#line 428 "php_parser.y" - { ;} - break; - - case 151: - -/* Line 1464 of yacc.c */ -#line 429 "php_parser.y" - { ;} - break; - - case 152: - -/* Line 1464 of yacc.c */ -#line 430 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(2) - (2)].exp_node); ;} - break; - - case 153: - -/* Line 1464 of yacc.c */ -#line 432 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(1) - (1)].exp_node); ;} - break; - - case 154: - -/* Line 1464 of yacc.c */ -#line 433 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_ARRAY, (yyvsp[(3) - (4)].exp_node)); ;} - break; - - case 155: - -/* Line 1464 of yacc.c */ -#line 434 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_PRINT, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - case 156: - -/* Line 1464 of yacc.c */ -#line 437 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(2) - (3)].exp_node); ;} - break; - - case 157: - -/* Line 1464 of yacc.c */ -#line 438 "php_parser.y" - { (yyval.exp_node) = 0; ;} - break; - - case 158: - -/* Line 1464 of yacc.c */ -#line 439 "php_parser.y" - { (yyval.exp_node) = 0; ;} - break; - - case 161: - -/* Line 1464 of yacc.c */ -#line 447 "php_parser.y" - { /*$$ = make_assign_node($1);*/ ;} - break; - - case 162: - -/* Line 1464 of yacc.c */ -#line 448 "php_parser.y" - { (yyval.exp_node) = (yyvsp[(3) - (4)].exp_node); ;} - break; - - case 163: - -/* Line 1464 of yacc.c */ -#line 449 "php_parser.y" - { /*$$ = make_assign_node(0);*/ ;} - break; - - case 164: - -/* Line 1464 of yacc.c */ -#line 452 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_LIST, 0); (yyval.exp_node)->exp_node = (yyvsp[(1) - (1)].exp_node); ;} - break; - - case 165: - -/* Line 1464 of yacc.c */ -#line 453 "php_parser.y" - { - PHP_EXP_NODE *last = (yyvsp[(1) - (3)].exp_node); - while ( last->next) last = last->next; - last->next = make_exp_1(PHP_OP_LIST, 0); - last->next->exp_node = (yyvsp[(3) - (3)].exp_node); - (yyval.exp_node) = (yyvsp[(1) - (3)].exp_node); - ;} - break; - - case 166: - -/* Line 1464 of yacc.c */ -#line 462 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_ARRAY_PAIR, (yyvsp[(1) - (1)].exp_node)); ;} - break; - - case 167: - -/* Line 1464 of yacc.c */ -#line 463 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_PAIR, (yyvsp[(1) - (3)].exp_node), (yyvsp[(3) - (3)].exp_node)); ;} - break; - - case 168: - -/* Line 1464 of yacc.c */ -#line 464 "php_parser.y" - { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_REF_PAIR, (yyvsp[(1) - (4)].exp_node), (yyvsp[(4) - (4)].exp_node)); ;} - break; - - case 169: - -/* Line 1464 of yacc.c */ -#line 465 "php_parser.y" - { (yyval.exp_node) = make_exp_1(PHP_OP_ARRAY_REF_PAIR, (yyvsp[(2) - (2)].exp_node)); ;} - break; - - - -/* Line 1464 of yacc.c */ -#line 3485 "php_parser.c" - default: break; - } - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); - - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - - *++yyvsp = yyval; - - /* Now `shift' the result of the reduction. Determine what state - that goes to, based on the state we popped back to and the rule - number reduced by. */ - - yyn = yyr1[yyn]; - - yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; - if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) - yystate = yytable[yystate]; - else - yystate = yydefgoto[yyn - YYNTOKENS]; - - goto yynewstate; - - -/*------------------------------------. -| yyerrlab -- here on detecting error | -`------------------------------------*/ -yyerrlab: - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) - { - ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (YY_("syntax error")); -#else - { - YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); - if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) - { - YYSIZE_T yyalloc = 2 * yysize; - if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) - yyalloc = YYSTACK_ALLOC_MAXIMUM; - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yyalloc); - if (yymsg) - yymsg_alloc = yyalloc; - else - { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - } - } - - if (0 < yysize && yysize <= yymsg_alloc) - { - (void) yysyntax_error (yymsg, yystate, yychar); - yyerror (yymsg); - } - else - { - yyerror (YY_("syntax error")); - if (yysize != 0) - goto yyexhaustedlab; - } - } -#endif - } - - - - if (yyerrstatus == 3) - { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ - - if (yychar <= YYEOF) - { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; - } - else - { - yydestruct ("Error: discarding", - yytoken, &yylval); - yychar = YYEMPTY; - } - } - - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; - - -/*---------------------------------------------------. -| yyerrorlab -- error raised explicitly by YYERROR. | -`---------------------------------------------------*/ -yyerrorlab: - - /* Pacify compilers like GCC when the user code never invokes - YYERROR and the label yyerrorlab therefore never appears in user - code. */ - if (/*CONSTCOND*/ 0) - goto yyerrorlab; - - /* Do not reclaim the symbols of the rule which action triggered - this YYERROR. */ - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - yystate = *yyssp; - goto yyerrlab1; - - -/*-------------------------------------------------------------. -| yyerrlab1 -- common code for both syntax error and YYERROR. | -`-------------------------------------------------------------*/ -yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ - - for (;;) - { - yyn = yypact[yystate]; - if (yyn != YYPACT_NINF) - { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) - { - yyn = yytable[yyn]; - if (0 < yyn) - break; - } - } - - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; - - - yydestruct ("Error: popping", - yystos[yystate], yyvsp); - YYPOPSTACK (1); - yystate = *yyssp; - YY_STACK_PRINT (yyss, yyssp); - } - - *++yyvsp = yylval; - - - /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); - - yystate = yyn; - goto yynewstate; - - -/*-------------------------------------. -| yyacceptlab -- YYACCEPT comes here. | -`-------------------------------------*/ -yyacceptlab: - yyresult = 0; - goto yyreturn; - -/*-----------------------------------. -| yyabortlab -- YYABORT comes here. | -`-----------------------------------*/ -yyabortlab: - yyresult = 1; - goto yyreturn; - -#if !defined(yyoverflow) || YYERROR_VERBOSE -/*-------------------------------------------------. -| yyexhaustedlab -- memory exhaustion comes here. | -`-------------------------------------------------*/ -yyexhaustedlab: - yyerror (YY_("memory exhausted")); - yyresult = 2; - /* Fall through. */ -#endif - -yyreturn: - if (yychar != YYEMPTY) - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval); - /* Do not reclaim the symbols of the rule which action triggered - this YYABORT or YYACCEPT. */ - YYPOPSTACK (yylen); - YY_STACK_PRINT (yyss, yyssp); - while (yyssp != yyss) - { - yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp); - YYPOPSTACK (1); - } -#ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE (yyss); -#endif -#if YYERROR_VERBOSE - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); -#endif - /* Make sure YYID is used. */ - return YYID (yyresult); -} - - - +/* A Bison parser, made by GNU Bison 3.0.4. */ + +/* Bison implementation for Yacc-like parsers in C + + Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +/* C LALR(1) parser skeleton written by Richard Stallman, by + simplifying the original so-called "semantic" parser. */ + +/* All symbols defined below should begin with yy or YY, to avoid + infringing on user name space. This should be done even for local + variables, as they might otherwise be expanded by user macros. + There are some unavoidable exceptions within include files to + define necessary library symbols; they are noted "INFRINGES ON + USER NAME SPACE" below. */ + +/* Identify Bison output. */ +#define YYBISON 1 + +/* Bison version. */ +#define YYBISON_VERSION "3.0.4" + +/* Skeleton name. */ +#define YYSKELETON_NAME "yacc.c" + +/* Pure parsers. */ +#define YYPURE 0 + +/* Push parsers. */ +#define YYPUSH 0 + +/* Pull parsers. */ +#define YYPULL 1 + + +/* Substitute the variable and function names. */ +#define yyparse phpparse +#define yylex phplex +#define yyerror phperror +#define yydebug phpdebug +#define yynerrs phpnerrs + +#define yylval phplval +#define yychar phpchar + +/* Copy the first part of user declarations. */ +#line 1 "php_parser.y" /* yacc.c:339 */ + +// +// This file is part of the aMule Project. +// +// Copyright (c) 2003-2011 aMule Team ( admin@amule.org / http://www.amule.org ) +// Copyright (c) 2005-2011 Froenchenko Leonid ( lfroen@gmail.com / http://www.amule.org ) +// +// Any parts of this program derived from the xMule, lMule or eMule project, +// or contributed by third-party developers are copyrighted by their +// respective authors. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA +// + +#include +#include + +#include "php_syntree.h" + +int phplex(void); + +// add item to syntree list +PHP_SYN_NODE *add_statement_2_list(PHP_SYN_NODE *list, PHP_SYN_NODE *st) +{ + if ( st && list) { + PHP_SYN_NODE *last = list; + while ( last->next_node ) { + last = last->next_node; + } + last->next_node = st; + return list; + } else if ( st ) { + return st; + } else { + return list; + } +} + +PHP_SYN_NODE *add_branch_2_elseif(PHP_SYN_NODE *list, PHP_SYN_NODE *branch) +{ + if ( list ) { + PHP_SYN_NODE *curr_if = list; + while ( curr_if->node_if.code_else ) { + curr_if = curr_if->node_if.code_else; + } + curr_if->node_if.code_else = branch; + return list; + } else { + return branch; + } +} + + +#line 140 "php_parser.c" /* yacc.c:339 */ + +# ifndef YY_NULLPTR +# if defined __cplusplus && 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# endif + +/* Enabling verbose error messages. */ +#ifdef YYERROR_VERBOSE +# undef YYERROR_VERBOSE +# define YYERROR_VERBOSE 1 +#else +# define YYERROR_VERBOSE 0 +#endif + +/* In a future release of Bison, this section will be replaced + by #include "php_parser.h". */ +#ifndef YY_PHP_PHP_PARSER_H_INCLUDED +# define YY_PHP_PHP_PARSER_H_INCLUDED +/* Debug traces. */ +#ifndef YYDEBUG +# define YYDEBUG 1 +#endif +#if YYDEBUG +extern int phpdebug; +#endif + +/* Token type. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + enum yytokentype + { + FNUMBER = 258, + DNUMBER = 259, + STRING = 260, + IDENT = 261, + VARIABLE = 262, + T_ECHO = 263, + EXIT = 264, + IF = 265, + DO = 266, + WHILE = 267, + ENDWHILE = 268, + FOR = 269, + ENDFOR = 270, + FOREACH = 271, + ENDFOREACH = 272, + DECLARE = 273, + ENDDECLARE = 274, + AS = 275, + CONST = 276, + GLOBAL = 277, + UNSET = 278, + ISSET = 279, + EMPTY = 280, + SWITCH = 281, + ENDSWITCH = 282, + CASE = 283, + DEFAULT = 284, + BREAK = 285, + CONTINUE = 286, + FUNCTION = 287, + RETURN = 288, + CLASS = 289, + INTERFACE = 290, + EXTENDS = 291, + IMPLEMENTS = 292, + OBJECT_OPERATOR = 293, + HASH_ASSIGN = 294, + LIST = 295, + ARRAY = 296, + CLASS_SCOPE = 297, + PRINT = 298, + PLUS_EQ = 299, + MINUS_EQ = 300, + MUL_EQ = 301, + DIV_EQ = 302, + CONCAT_EQ = 303, + MOD_EQ = 304, + AND_EQ = 305, + OR_EQ = 306, + XOR_EQ = 307, + SL_EQ = 308, + SR_EQ = 309, + LOG_OR = 310, + LOG_XOR = 311, + LOG_AND = 312, + BOOLEAN_OR = 313, + BOOLEAN_AND = 314, + IS_EQ = 315, + IS_NOEQUAL = 316, + IS_IDENTICAL = 317, + IS_NOIDENTICAL = 318, + IS_SMALLER_OR_EQ = 319, + IS_GREATER_OR_EQ = 320, + SL = 321, + SR = 322, + INSTANCEOF = 323, + INC = 324, + DEC = 325, + INT_CAST = 326, + DOUBLE_CAST = 327, + STRING_CAST = 328, + ARRAY_CAST = 329, + OBJECT_CAST = 330, + BOOL_CAST = 331, + UNSET_CAST = 332, + NEW = 333, + CLONE = 334, + ELSEIF = 335, + ELSE = 336, + ENDIF = 337, + STATIC = 338, + ABSTRACT = 339, + FINAL = 340, + PRIVATE = 341, + PROTECTED = 342, + PUBLIC = 343, + START_SCRIPT = 344, + END_SCRIPT = 345 + }; +#endif + +/* Value type. */ +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED + +union YYSTYPE +{ +#line 67 "php_parser.y" /* yacc.c:355 */ + + PHP_SYN_NODE *syn_node; + PHP_EXP_NODE *exp_node; + + char str_val[256]; + +#line 278 "php_parser.c" /* yacc.c:355 */ +}; + +typedef union YYSTYPE YYSTYPE; +# define YYSTYPE_IS_TRIVIAL 1 +# define YYSTYPE_IS_DECLARED 1 +#endif + + +extern YYSTYPE phplval; + +int phpparse (void); + +#endif /* !YY_PHP_PHP_PARSER_H_INCLUDED */ + +/* Copy the second part of user declarations. */ + +#line 295 "php_parser.c" /* yacc.c:358 */ + +#ifdef short +# undef short +#endif + +#ifdef YYTYPE_UINT8 +typedef YYTYPE_UINT8 yytype_uint8; +#else +typedef unsigned char yytype_uint8; +#endif + +#ifdef YYTYPE_INT8 +typedef YYTYPE_INT8 yytype_int8; +#else +typedef signed char yytype_int8; +#endif + +#ifdef YYTYPE_UINT16 +typedef YYTYPE_UINT16 yytype_uint16; +#else +typedef unsigned short int yytype_uint16; +#endif + +#ifdef YYTYPE_INT16 +typedef YYTYPE_INT16 yytype_int16; +#else +typedef short int yytype_int16; +#endif + +#ifndef YYSIZE_T +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif ! defined YYSIZE_T +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned int +# endif +#endif + +#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) + +#ifndef YY_ +# if defined YYENABLE_NLS && YYENABLE_NLS +# if ENABLE_NLS +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) +# endif +# endif +# ifndef YY_ +# define YY_(Msgid) Msgid +# endif +#endif + +#ifndef YY_ATTRIBUTE +# if (defined __GNUC__ \ + && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ + || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C +# define YY_ATTRIBUTE(Spec) __attribute__(Spec) +# else +# define YY_ATTRIBUTE(Spec) /* empty */ +# endif +#endif + +#ifndef YY_ATTRIBUTE_PURE +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +#endif + +#ifndef YY_ATTRIBUTE_UNUSED +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +#endif + +#if !defined _Noreturn \ + && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) +# if defined _MSC_VER && 1200 <= _MSC_VER +# define _Noreturn __declspec (noreturn) +# else +# define _Noreturn YY_ATTRIBUTE ((__noreturn__)) +# endif +#endif + +/* Suppress unused-variable warnings by "using" E. */ +#if ! defined lint || defined __GNUC__ +# define YYUSE(E) ((void) (E)) +#else +# define YYUSE(E) /* empty */ +#endif + +#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +/* Suppress an incorrect diagnostic about yylval being uninitialized. */ +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ + _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ + _Pragma ("GCC diagnostic pop") +#else +# define YY_INITIAL_VALUE(Value) Value +#endif +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END +#endif +#ifndef YY_INITIAL_VALUE +# define YY_INITIAL_VALUE(Value) /* Nothing. */ +#endif + + +#if ! defined yyoverflow || YYERROR_VERBOSE + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# ifdef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS +# include /* INFRINGES ON USER NAME SPACE */ + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's 'empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ +# endif +# else +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && ! defined EXIT_SUCCESS \ + && ! ((defined YYMALLOC || defined malloc) \ + && (defined YYFREE || defined free))) +# include /* INFRINGES ON USER NAME SPACE */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if ! defined malloc && ! defined EXIT_SUCCESS +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if ! defined free && ! defined EXIT_SUCCESS +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# endif +#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ + + +#if (! defined yyoverflow \ + && (! defined __cplusplus \ + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + yytype_int16 yyss_alloc; + YYSTYPE yyvs_alloc; +}; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAXIMUM) + +# define YYCOPY_NEEDED 1 + +/* Relocate STACK from its old location to the new one. The + local variables YYSIZE and YYSTACKSIZE give the old and new number of + elements in the stack, and YYPTR gives the new location of the + stack. Advance YYPTR to a properly aligned location for the next + stack. */ +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) + +#endif + +#if defined YYCOPY_NEEDED && YYCOPY_NEEDED +/* Copy COUNT objects from SRC to DST. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ + while (0) +# endif +# endif +#endif /* !YYCOPY_NEEDED */ + +/* YYFINAL -- State number of the termination state. */ +#define YYFINAL 4 +/* YYLAST -- Last index in YYTABLE. */ +#define YYLAST 3048 + +/* YYNTOKENS -- Number of terminals. */ +#define YYNTOKENS 117 +/* YYNNTS -- Number of nonterminals. */ +#define YYNNTS 37 +/* YYNRULES -- Number of rules. */ +#define YYNRULES 169 +/* YYNSTATES -- Number of states. */ +#define YYNSTATES 385 + +/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned + by yylex, with out-of-bounds checking. */ +#define YYUNDEFTOK 2 +#define YYMAXUTOK 345 + +#define YYTRANSLATE(YYX) \ + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) + +/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM + as returned by yylex, without out-of-bounds checking. */ +static const yytype_uint8 yytranslate[] = +{ + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 83, 2, 2, 116, 82, 66, 2, + 113, 114, 80, 77, 43, 78, 79, 81, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 58, 112, + 71, 45, 73, 57, 95, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 96, 2, 115, 65, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 110, 64, 111, 85, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 44, 46, + 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, + 59, 60, 61, 62, 63, 67, 68, 69, 70, 72, + 74, 75, 76, 84, 86, 87, 88, 89, 90, 91, + 92, 93, 94, 97, 98, 99, 100, 101, 102, 103, + 104, 105, 106, 107, 108, 109 +}; + +#if YYDEBUG + /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ +static const yytype_uint16 yyrline[] = +{ + 0, 142, 142, 146, 147, 152, 153, 154, 159, 160, + 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, + 171, 172, 173, 174, 175, 176, 179, 182, 185, 186, + 187, 190, 191, 194, 195, 204, 205, 211, 212, 216, + 231, 232, 235, 236, 244, 244, 255, 259, 260, 261, + 262, 263, 267, 268, 272, 273, 277, 278, 281, 282, + 286, 287, 291, 292, 295, 296, 300, 301, 302, 303, + 307, 308, 323, 324, 327, 328, 332, 333, 334, 335, + 338, 339, 340, 344, 345, 346, 347, 348, 352, 353, + 354, 357, 358, 359, 360, 361, 366, 367, 368, 369, + 370, 375, 376, 377, 378, 379, 380, 381, 382, 383, + 384, 385, 387, 388, 389, 390, 392, 393, 394, 395, + 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, + 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, + 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, + 428, 429, 430, 432, 433, 434, 437, 438, 439, 442, + 443, 447, 448, 449, 452, 453, 462, 463, 464, 465 +}; +#endif + +#if YYDEBUG || YYERROR_VERBOSE || 0 +/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */ +static const char *const yytname[] = +{ + "$end", "error", "$undefined", "FNUMBER", "DNUMBER", "STRING", "IDENT", + "VARIABLE", "T_ECHO", "EXIT", "IF", "DO", "WHILE", "ENDWHILE", "FOR", + "ENDFOR", "FOREACH", "ENDFOREACH", "DECLARE", "ENDDECLARE", "AS", + "CONST", "GLOBAL", "UNSET", "ISSET", "EMPTY", "SWITCH", "ENDSWITCH", + "CASE", "DEFAULT", "BREAK", "CONTINUE", "FUNCTION", "RETURN", "CLASS", + "INTERFACE", "EXTENDS", "IMPLEMENTS", "OBJECT_OPERATOR", "HASH_ASSIGN", + "LIST", "ARRAY", "CLASS_SCOPE", "','", "PRINT", "'='", "PLUS_EQ", + "MINUS_EQ", "MUL_EQ", "DIV_EQ", "CONCAT_EQ", "MOD_EQ", "AND_EQ", "OR_EQ", + "XOR_EQ", "SL_EQ", "SR_EQ", "'?'", "':'", "LOG_OR", "LOG_XOR", "LOG_AND", + "BOOLEAN_OR", "BOOLEAN_AND", "'|'", "'^'", "'&'", "IS_EQ", "IS_NOEQUAL", + "IS_IDENTICAL", "IS_NOIDENTICAL", "'<'", "IS_SMALLER_OR_EQ", "'>'", + "IS_GREATER_OR_EQ", "SL", "SR", "'+'", "'-'", "'.'", "'*'", "'/'", "'%'", + "'!'", "INSTANCEOF", "'~'", "INC", "DEC", "INT_CAST", "DOUBLE_CAST", + "STRING_CAST", "ARRAY_CAST", "OBJECT_CAST", "BOOL_CAST", "UNSET_CAST", + "'@'", "'['", "NEW", "CLONE", "ELSEIF", "ELSE", "ENDIF", "STATIC", + "ABSTRACT", "FINAL", "PRIVATE", "PROTECTED", "PUBLIC", "START_SCRIPT", + "END_SCRIPT", "'{'", "'}'", "';'", "'('", "')'", "']'", "'$'", "$accept", + "program_tree", "top_statement_list", "top_statement", "statement", + "decl_list", "expr_list", "variable_list", "global_var_list", + "global_var", "static_var_list", "static_var", "function_decl_statement", + "$@1", "parameter_list", "optional_class_type", "for_statement", + "foreach_statement", "for_expr", "elseif_list", "else_statement", + "while_statement", "switch_case_list", "case_list", "case_list_item", + "case_separator", "const_value", "variable", "deref_variable", + "function_call", "func_param_list", "expr", "exit_expr", + "assignment_list", "assignment_list_element", "array_pair_list", + "array_elem", YY_NULLPTR +}; +#endif + +# ifdef YYPRINT +/* YYTOKNUM[NUM] -- (External) token number corresponding to the + (internal) symbol number NUM (which must be that of a token). */ +static const yytype_uint16 yytoknum[] = +{ + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, + 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, + 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, + 295, 296, 297, 44, 298, 61, 299, 300, 301, 302, + 303, 304, 305, 306, 307, 308, 309, 63, 58, 310, + 311, 312, 313, 314, 124, 94, 38, 315, 316, 317, + 318, 60, 319, 62, 320, 321, 322, 43, 45, 46, + 42, 47, 37, 33, 323, 126, 324, 325, 326, 327, + 328, 329, 330, 331, 332, 64, 91, 333, 334, 335, + 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, + 123, 125, 59, 40, 41, 93, 36 +}; +# endif + +#define YYPACT_NINF -335 + +#define yypact_value_is_default(Yystate) \ + (!!((Yystate) == (-335))) + +#define YYTABLE_NINF -53 + +#define yytable_value_is_error(Yytable_value) \ + (!!((Yytable_value) == (-53))) + + /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ +static const yytype_int16 yypact[] = +{ + -94, -335, 54, 344, -335, -335, -335, -335, -32, -335, + 2566, -64, -57, 1940, -49, -44, -37, 42, 59, 70, + 78, 1996, 2054, 14, 2110, 88, 90, 2566, 2566, 2566, + 2566, 2566, 34, 34, 2566, 2566, 2566, 2566, 2566, 2566, + 61, -335, -335, -335, -335, 2566, 56, -335, -335, -335, + -335, 123, 49, -335, 1356, 157, 2168, 0, 2837, 2224, + -335, 2566, 192, 2566, 2566, 2566, 205, -335, 36, -335, + 34, 2566, -335, 2624, -335, 2650, -335, 208, -335, 2678, + 31, 2282, 2837, 118, 118, -335, -335, 173, -335, -36, + -335, -335, -335, -335, -335, -335, -335, 171, 50, -335, + 458, 572, 558, 2566, 2338, 2566, 2566, 2566, 2566, 2566, + 2566, 2566, 2566, 2566, 2566, 2566, -335, -335, 211, 212, + 2396, 2566, 2566, 2566, 2566, 2566, 2566, 2566, 2566, 2566, + 2566, 2566, 2566, 2566, 2566, 2566, 2566, 2566, 2566, 2566, + 2566, 2566, 2566, 2566, 2566, 2566, 2566, -335, -335, 34, + -31, 2837, 2566, -335, -335, 672, 786, 106, 900, 177, + 109, 451, 178, -1, 59, -335, 27, -335, 1014, -335, + -335, 111, 113, -335, 116, -335, 30, -335, 34, 2785, + 35, -335, 216, 191, 61, -335, -335, -335, -335, 2704, + 34, 2837, 2837, 2837, 2837, 2837, 2837, 2837, 2837, 2837, + 2837, 2837, 2837, 117, 124, -335, 330, 2732, 2811, 2884, + 2906, 2927, 2947, 2966, 1478, 1591, 1704, 1818, 1818, 1818, + 1818, 202, 202, 202, 202, 108, 108, 118, 118, 118, + -335, -335, -335, -335, 2452, -335, 2837, -335, 1940, 2566, + 1484, 2566, 34, 191, 225, 1598, -335, 34, 126, -47, + 146, 146, 31, 31, 194, -335, 2510, 2282, -335, -335, + -335, -335, -335, -335, -335, 2168, 2168, -335, -335, 2566, + 34, 2837, -335, 1128, -335, -335, -335, 128, -30, -335, + 197, -335, -335, -335, -335, 131, 133, -335, -335, 43, + 136, 46, 51, -335, 2566, 34, 2837, -335, 53, 67, + 2861, -335, -73, 134, 686, 2566, 45, 1712, 191, 800, + -335, 17, -335, -23, 230, 137, -335, 241, 142, -335, + 2837, -335, -335, -335, 140, 1940, -335, -335, 144, 150, + 34, 151, -335, -335, -335, -335, -335, 179, 149, 2566, + -335, -45, -21, -335, 147, -335, -335, -335, 2566, -335, + -335, 1826, 152, 1712, 914, 158, -335, 2837, -335, -335, + -335, -335, -335, 251, 1028, 1142, 1242, -335, -335, -335, + 1712, -335, 159, -335, 1370, -335, -335, -335, 1940, 1256, + -335, -335, -335, 174, -335 +}; + + /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ +static const yytype_uint8 yydefact[] = +{ + 0, 4, 0, 0, 1, 76, 77, 78, 79, 83, + 0, 158, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 4, 2, 4, 30, 0, 0, 3, 5, 7, + 153, 97, 80, 99, 0, 0, 95, 0, 33, 0, + 151, 0, 0, 0, 59, 0, 0, 39, 0, 37, + 0, 0, 19, 0, 17, 0, 44, 0, 21, 0, + 163, 0, 155, 132, 133, 134, 135, 0, 113, 80, + 115, 146, 147, 148, 149, 150, 152, 42, 0, 40, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 112, 114, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 9, 81, 0, + 0, 91, 0, 23, 157, 0, 0, 0, 0, 58, + 0, 0, 0, 0, 0, 10, 0, 35, 0, 20, + 18, 0, 0, 22, 0, 161, 0, 159, 0, 166, + 0, 164, 0, 0, 0, 11, 6, 8, 144, 0, + 0, 98, 101, 102, 103, 104, 105, 106, 107, 108, + 109, 110, 111, 82, 0, 84, 0, 0, 0, 118, + 120, 119, 116, 117, 121, 123, 122, 138, 139, 136, + 137, 140, 141, 142, 143, 130, 131, 125, 126, 124, + 127, 128, 129, 92, 0, 88, 34, 156, 0, 0, + 0, 59, 0, 0, 0, 0, 38, 0, 0, 0, + 51, 51, 163, 163, 0, 169, 0, 0, 154, 82, + 79, 43, 41, 87, 100, 95, 95, 85, 86, 0, + 0, 93, 61, 0, 4, 64, 13, 0, 0, 31, + 0, 4, 28, 36, 24, 70, 70, 16, 53, 0, + 0, 0, 0, 160, 0, 0, 167, 165, 0, 0, + 145, 94, 62, 0, 0, 59, 0, 0, 0, 0, + 70, 0, 70, 0, 52, 0, 47, 0, 0, 162, + 96, 168, 90, 89, 0, 0, 12, 14, 0, 0, + 0, 0, 4, 56, 25, 32, 29, 0, 0, 0, + 73, 0, 0, 66, 0, 4, 48, 4, 0, 63, + 65, 0, 0, 0, 0, 0, 68, 72, 74, 75, + 4, 67, 49, 0, 0, 0, 0, 4, 54, 15, + 0, 26, 0, 69, 71, 50, 45, 46, 0, 0, + 27, 57, 60, 0, 55 +}; + + /* YYPGOTO[NTERM-NUM]. */ +static const yytype_int16 yypgoto[] = +{ + -335, -335, -40, -335, -13, -335, 259, -335, -335, 125, + -335, 103, -335, -335, 39, -19, -335, -334, -149, -335, + -335, -335, -335, -128, -335, -335, -166, 2, 15, -335, + -204, -6, -335, 41, 38, -335, 44 +}; + + /* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int16 yydefgoto[] = +{ + -1, 2, 3, 47, 48, 163, 159, 166, 68, 69, + 98, 99, 49, 171, 289, 290, 369, 334, 160, 302, + 326, 276, 287, 311, 341, 360, 50, 51, 52, 53, + 150, 54, 60, 176, 177, 180, 181 +}; + + /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ +static const yytype_int16 yytable[] = +{ + 62, 100, 182, 101, 58, 339, 340, 339, 340, 306, + 55, 285, 234, 358, 1, 73, 75, 261, 79, 371, + 76, 82, 83, 84, 85, 86, 324, 325, 91, 92, + 93, 94, 95, 96, 88, 90, 380, 87, 9, 102, + 87, 9, 244, 152, 338, 339, 340, 89, 89, 59, + 151, 87, 9, 155, 4, 156, 61, 158, 58, 161, + 120, 298, 299, 286, 63, 168, 67, 359, 97, 64, + 247, 174, 167, 253, 121, 179, 65, 279, 257, 164, + 77, 56, 175, 235, 307, 89, 314, 118, 343, 314, + 361, 119, 277, 184, 253, 89, 234, 189, 191, 192, + 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, + 234, 330, 153, 245, 206, 207, 208, 209, 210, 211, + 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, + 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, + 232, 248, 335, 316, 254, 120, 236, 46, 165, 258, + 46, 233, 288, -52, 362, 66, 329, 315, 313, 121, + 318, 46, 185, 148, 89, 319, 103, 322, 104, 105, + 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, + 255, 323, 337, 70, 342, 141, 142, 143, 144, 145, + 146, 71, 264, 89, 5, 6, 7, 260, 144, 145, + 146, 80, 317, 81, 157, 89, 355, 339, 340, 116, + 117, 162, -52, 363, 172, 55, 183, 203, 204, 239, + 152, 241, 259, 243, 250, 272, 251, 275, 271, 252, + 265, 280, 282, 273, 304, 58, 288, 266, 284, 294, + 305, 309, 308, 310, 278, 312, 327, 345, 346, 283, + 296, 179, 347, 348, 175, 175, 350, 89, 375, 151, + 151, 356, 89, 300, 351, 353, 370, 89, 89, 57, + 373, 381, 301, -53, -53, -53, -53, 139, 140, 141, + 142, 143, 144, 145, 146, 89, 384, 262, 320, 246, + 291, 293, 354, 292, 333, 344, 0, 321, 0, 58, + 0, 297, 0, 0, 0, 364, 0, 365, 331, 0, + 89, 0, 349, 0, 0, 0, 0, 0, 0, 0, + 374, 89, 0, 0, 0, 0, 0, 379, 0, 0, + 0, 0, 352, 357, 0, 0, 0, 0, 368, 0, + 333, 0, 366, 0, 0, 89, 0, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 333, 15, 0, + 16, 0, 17, 0, 0, 382, 18, 19, 0, 0, + 20, 0, 0, 0, 21, 22, 23, 24, 0, 0, + 0, 0, 0, 0, 25, 26, 0, 122, 27, 123, + 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, + 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, + 144, 145, 146, 0, 0, 0, 0, 0, 0, 0, + 0, 28, 29, 0, 0, 0, 0, 30, 0, 31, + 32, 33, 34, 35, 36, 0, 0, 37, 38, 39, + 0, 0, 0, 0, 0, 267, 40, 0, 0, 0, + 0, 0, 41, 42, 43, 0, 44, 45, 0, 0, + 46, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 242, 15, 0, 16, 0, 17, 0, 0, 0, + 18, 19, 0, 0, 20, 0, 0, 0, 21, 22, + 23, 24, 0, 0, 0, 0, 0, 0, 25, 26, + 0, 0, 27, 0, 0, 0, 0, 0, 122, 0, + 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, + 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, + 143, 144, 145, 146, 0, 28, 29, 0, 0, 0, + 0, 30, 0, 31, 32, 33, 34, 35, 36, 0, + 0, 37, 38, 39, 0, 0, 0, 0, 0, 0, + 40, 0, 0, 0, 0, 0, 41, 186, 43, 0, + 44, 45, 0, 0, 46, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 0, 15, 0, 16, 0, + 17, 0, 0, 0, 18, 19, 0, 0, 20, 0, + 0, 0, 21, 22, 23, 24, 0, 0, 0, 0, + 0, 0, 25, 26, 0, 122, 27, 123, 124, 125, + 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, + 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, + 146, 0, 0, 0, 0, 0, 0, 0, 0, 28, + 29, 0, 0, 0, 0, 30, 0, 31, 32, 33, + 34, 35, 36, 0, 0, 37, 38, 39, 0, 0, + 0, 0, 188, 0, 40, 0, 0, 0, 0, 0, + 41, 0, 43, 187, 44, 45, 0, 0, 46, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 328, + 15, 0, 16, 0, 17, 0, 0, 0, 18, 19, + 0, 0, 20, 0, 0, 0, 21, 22, 23, 24, + 0, 0, 0, 0, 0, 0, 25, 26, 0, 122, + 27, 123, 124, 125, 126, 127, 128, 129, 130, 131, + 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, + 142, 143, 144, 145, 146, 0, 0, 0, 0, 0, + 0, 0, 0, 28, 29, 0, 0, 0, 0, 30, + 0, 31, 32, 33, 34, 35, 36, 0, 0, 37, + 38, 39, 0, 0, 0, 0, 237, 0, 40, 0, + 0, 0, 0, 0, 41, 0, 43, 0, 44, 45, + 0, 0, 46, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 0, 15, 0, 16, 0, 17, 336, + 0, 0, 18, 19, 0, 0, 20, 0, 0, 0, + 21, 22, 23, 24, 0, 0, 0, 0, 0, 0, + 25, 26, 0, 122, 27, 123, 124, 125, 126, 127, + 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, + 138, 139, 140, 141, 142, 143, 144, 145, 146, 0, + 0, 0, 0, 0, 0, 0, 0, 28, 29, 0, + 0, 0, 0, 30, 0, 31, 32, 33, 34, 35, + 36, 0, 0, 37, 38, 39, 0, 0, 0, 0, + 238, 0, 40, 0, 0, 0, 0, 0, 41, 0, + 43, 0, 44, 45, 0, 0, 46, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 0, 15, 0, + 16, 372, 17, 0, 0, 0, 18, 19, 0, 0, + 20, 0, 0, 0, 21, 22, 23, 24, 0, 0, + 0, 0, 0, 0, 25, 26, 0, 122, 27, 123, + 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, + 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, + 144, 145, 146, 0, 0, 0, 0, 0, 0, 0, + 0, 28, 29, 0, 0, 0, 0, 30, 0, 31, + 32, 33, 34, 35, 36, 0, 0, 37, 38, 39, + 0, 0, 0, 0, 240, 0, 40, 0, 0, 0, + 0, 0, 41, 0, 43, 0, 44, 45, 0, 0, + 46, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 0, 15, 0, 16, 0, 17, 0, 0, 0, + 18, 19, 0, 0, 20, 0, 0, 0, 21, 22, + 23, 24, 0, 0, 0, 0, 0, 0, 25, 26, + 0, 122, 27, 123, 124, 125, 126, 127, 128, 129, + 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + 140, 141, 142, 143, 144, 145, 146, 0, 0, 0, + 0, 0, 0, 0, 0, 28, 29, 0, 0, 0, + 0, 30, 0, 31, 32, 33, 34, 35, 36, 0, + 0, 37, 38, 39, 0, 0, 0, 0, 249, 0, + 40, 0, 0, 0, 0, 0, 41, 0, 43, 376, + 44, 45, 0, 0, 46, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 0, 15, 0, 16, 0, + 17, 0, 0, 0, 18, 19, 0, 0, 20, 0, + 0, 0, 21, 22, 23, 24, 0, 0, 0, 0, + 0, 0, 25, 26, 0, 122, 27, 123, 124, 125, + 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, + 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, + 146, 0, 0, 0, 0, 0, 0, 0, 0, 28, + 29, 0, 0, 0, 0, 30, 0, 31, 32, 33, + 34, 35, 36, 0, 0, 37, 38, 39, 0, 0, + 0, 0, 303, 0, 40, 0, 0, 0, 0, 0, + 41, 0, 43, 377, 44, 45, 0, 0, 46, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, + 15, 383, 16, 0, 17, 0, 0, 0, 18, 19, + 0, 0, 20, 0, 0, 0, 21, 22, 23, 24, + 0, 0, 0, 0, 0, 0, 25, 26, 0, 122, + 27, 123, 124, 125, 126, 127, 128, 129, 130, 131, + 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, + 142, 143, 144, 145, 146, 0, 0, 0, 0, 0, + 0, 0, 0, 28, 29, 0, 0, 0, 0, 30, + 0, 31, 32, 33, 34, 35, 36, 0, 0, 37, + 38, 39, 0, 0, 0, 0, 378, 0, 40, 0, + 0, 0, 0, 0, 41, 0, 43, 0, 44, 45, + 0, 0, 46, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 0, 15, 0, 16, 0, 17, 0, + 0, 0, 18, 19, 0, 0, 20, 0, 0, 0, + 21, 22, 23, 24, 0, 0, 0, 0, 0, 0, + 25, 26, 0, 122, 27, 123, 124, 125, 126, 127, + 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, + 138, 139, 140, 141, 142, 143, 144, 145, 146, 0, + 0, 0, 0, 0, 0, 0, 0, 28, 29, 0, + 0, 0, 0, 30, 0, 31, 32, 33, 34, 35, + 36, 0, 0, 37, 38, 39, 0, 0, 147, 0, + 0, 0, 40, 0, 0, 0, 0, 0, 41, 0, + 43, 0, 44, 45, 0, 0, 46, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 0, 15, 0, + 16, 0, 17, 0, 0, 0, 18, 19, 0, 0, + 20, 0, 0, 0, 21, 22, 0, 24, 0, 0, + 0, 0, 0, 0, 25, 26, 0, 0, 27, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 274, 129, 130, 131, 132, 133, 134, 135, + 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, + 146, 28, 29, 0, 0, 0, 0, 30, 0, 31, + 32, 33, 34, 35, 36, 0, 0, 37, 38, 39, + 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, + 0, 0, 0, 0, 43, 0, 44, 45, 0, 0, + 46, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 0, 15, 0, 16, 0, 17, 0, 0, 0, + 18, 19, 0, 0, 20, 0, 0, 0, 21, 22, + 0, 24, 0, 0, 0, 0, 0, 0, 25, 26, + 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 281, 130, 131, 132, + 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, + 143, 144, 145, 146, 0, 28, 29, 0, 0, 0, + 0, 30, 0, 31, 32, 33, 34, 35, 36, 0, + 0, 37, 38, 39, 0, 0, 0, 0, 0, 0, + 40, 0, 0, 0, 0, 0, 0, 0, 43, 0, + 44, 45, 0, 0, 46, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 0, 15, 0, 16, 0, + 17, 0, 0, 0, 18, 19, 0, 0, 20, 0, + 0, 0, 21, 22, 0, 24, 0, 0, 0, 0, + 0, 0, 25, 26, 0, 0, 27, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 332, 131, 132, 133, 134, 135, 136, 137, 138, 139, + 140, 141, 142, 143, 144, 145, 146, 0, 0, 28, + 29, 0, 0, 0, 0, 30, 0, 31, 32, 33, + 34, 35, 36, 0, 0, 37, 38, 39, 0, 0, + 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, + 0, 0, 43, 0, 44, 45, 0, 0, 46, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, + 15, 0, 16, 0, 17, 0, 0, 0, 18, 19, + 0, 0, 20, 0, 0, 0, 21, 22, 0, 24, + 0, 0, 0, 0, 0, 0, 25, 26, 0, 0, + 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 367, -53, -53, -53, -53, 135, + 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, + 146, 0, 0, 28, 29, 0, 0, 0, 0, 30, + 0, 31, 32, 33, 34, 35, 36, 0, 0, 37, + 38, 39, 0, 0, 0, 0, 0, 0, 40, 0, + 0, 0, 0, 0, 0, 0, 43, 0, 44, 45, + 0, 0, 46, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 0, 15, 0, 16, 0, 17, 0, + 0, 0, 18, 19, 0, 0, 20, 0, 0, 0, + 21, 22, 0, 24, 0, 0, 0, 0, 0, 0, + 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, + 6, 7, 8, 9, 0, 11, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 28, 29, 0, + 0, 0, 0, 30, 0, 31, 32, 33, 34, 35, + 36, 0, 0, 37, 38, 39, 25, 26, 0, 0, + 27, 0, 40, 0, 0, 0, 0, 0, 0, 0, + 43, 0, 44, 45, 0, 0, 46, 5, 6, 7, + 8, 9, 0, 11, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 28, 29, 0, 0, 0, 0, 30, + 0, 31, 32, 33, 34, 35, 36, 0, 0, 37, + 38, 39, 0, 0, 25, 26, 0, 0, 27, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 72, 45, + 0, 0, 46, 5, 6, 7, 8, 9, 0, 11, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 28, 29, 0, 0, 0, 0, 30, 0, 31, + 32, 33, 34, 35, 36, 0, 0, 37, 38, 39, + 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 74, 45, 0, 0, + 46, 5, 6, 7, 8, 9, 0, 11, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 28, 29, 0, + 0, 0, 0, 30, 0, 31, 32, 33, 34, 35, + 36, 0, 0, 37, 38, 39, 0, 0, 25, 26, + 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 78, 45, 0, 0, 46, 5, 6, 7, + 8, 9, 0, 11, 149, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 28, 29, 0, 0, 0, + 0, 30, 0, 31, 32, 33, 34, 35, 36, 0, + 0, 37, 38, 39, 25, 26, 0, 0, 27, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 45, 0, 0, 46, 5, 6, 7, 8, 9, + 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 28, 29, 0, 0, 0, 0, 30, 0, 31, + 32, 33, 34, 35, 36, 0, 0, 37, 38, 39, + 0, 0, 25, 26, 0, 0, 27, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 45, 154, 0, + 46, 5, 6, 7, 8, 9, 0, 11, 178, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, + 29, 0, 0, 0, 0, 30, 0, 31, 32, 33, + 34, 35, 36, 0, 0, 37, 38, 39, 25, 26, + 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 45, 0, 0, 46, 5, + 6, 7, 8, 9, 190, 11, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 28, 29, 0, 0, 0, + 0, 30, 0, 31, 32, 33, 34, 35, 36, 0, + 0, 37, 38, 39, 0, 0, 25, 26, 0, 0, + 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 45, 0, 0, 46, 5, 6, 7, 8, 9, + 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 28, 29, 0, 0, 0, 0, 30, + 0, 31, 32, 33, 34, 35, 36, 0, 0, 37, + 38, 39, 25, 26, 0, 0, 27, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, + 0, 205, 46, 5, 6, 7, 8, 9, 270, 11, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, + 29, 0, 0, 0, 0, 30, 0, 31, 32, 33, + 34, 35, 36, 0, 0, 37, 38, 39, 0, 0, + 25, 26, 0, 0, 27, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 45, 0, 0, 46, 5, + 6, 7, 8, 9, 0, 11, 295, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 28, 29, 0, + 0, 0, 0, 30, 0, 31, 32, 33, 34, 35, + 36, 0, 0, 37, 38, 39, 25, 26, 0, 0, + 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 45, 0, 0, 46, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 28, 29, 0, 0, 0, 0, 30, + 0, 31, 32, 33, 34, 35, 36, 0, 0, 37, + 38, 39, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, + 0, 122, 46, 123, 124, 125, 126, 127, 128, 129, + 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + 140, 141, 142, 143, 144, 145, 146, 122, 0, 123, + 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, + 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, + 144, 145, 146, 0, 0, 122, 169, 123, 124, 125, + 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, + 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, + 146, 122, 170, 123, 124, 125, 126, 127, 128, 129, + 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + 140, 141, 142, 143, 144, 145, 146, 0, 0, 122, + 173, 123, 124, 125, 126, 127, 128, 129, 130, 131, + 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, + 142, 143, 144, 145, 146, 263, 0, 0, 0, 0, + 0, 0, 0, 0, 256, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 122, 268, 123, 124, 125, 126, 127, 128, + 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, + 139, 140, 141, 142, 143, 144, 145, 146, 122, 269, + 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, + 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, + 143, 144, 145, 146, 122, 0, 123, 124, 125, 126, + 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, + 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, + 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, + 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, + 143, 144, 145, 146, 124, 125, 126, 127, 128, 129, + 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + 140, 141, 142, 143, 144, 145, 146, 125, 126, 127, + 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, + 138, 139, 140, 141, 142, 143, 144, 145, 146, 126, + 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, + 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, + 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, + 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, + 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, + 138, 139, 140, 141, 142, 143, 144, 145, 146 +}; + +static const yytype_int16 yycheck[] = +{ + 13, 41, 38, 43, 10, 28, 29, 28, 29, 39, + 42, 58, 43, 58, 108, 21, 22, 183, 24, 353, + 6, 27, 28, 29, 30, 31, 99, 100, 34, 35, + 36, 37, 38, 39, 32, 33, 370, 6, 7, 45, + 6, 7, 43, 43, 27, 28, 29, 32, 33, 113, + 56, 6, 7, 59, 0, 61, 113, 63, 64, 65, + 96, 265, 266, 110, 113, 71, 7, 112, 7, 113, + 43, 40, 70, 43, 110, 81, 113, 243, 43, 43, + 66, 113, 80, 114, 114, 70, 43, 38, 111, 43, + 111, 42, 241, 43, 43, 80, 43, 103, 104, 105, + 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, + 43, 66, 112, 114, 120, 121, 122, 123, 124, 125, + 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, + 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, + 146, 114, 308, 7, 114, 96, 152, 116, 112, 114, + 116, 149, 6, 7, 7, 113, 305, 114, 286, 110, + 114, 116, 112, 6, 149, 114, 110, 114, 45, 46, + 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, + 178, 114, 310, 113, 312, 77, 78, 79, 80, 81, + 82, 113, 190, 178, 3, 4, 5, 6, 80, 81, + 82, 113, 66, 113, 12, 190, 27, 28, 29, 86, + 87, 6, 66, 66, 6, 42, 45, 6, 6, 113, + 43, 112, 6, 45, 113, 238, 113, 240, 234, 113, + 113, 6, 245, 239, 274, 241, 6, 113, 112, 45, + 112, 281, 45, 112, 242, 112, 112, 110, 7, 247, + 256, 257, 110, 113, 252, 253, 112, 242, 7, 265, + 266, 112, 247, 269, 114, 114, 114, 252, 253, 10, + 112, 112, 270, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, 270, 112, 184, 294, 164, + 251, 253, 332, 252, 307, 314, -1, 295, -1, 305, + -1, 257, -1, -1, -1, 345, -1, 347, 306, -1, + 295, -1, 325, -1, -1, -1, -1, -1, -1, -1, + 360, 306, -1, -1, -1, -1, -1, 367, -1, -1, + -1, -1, 330, 339, -1, -1, -1, -1, 351, -1, + 353, -1, 348, -1, -1, 330, -1, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 370, 14, -1, + 16, -1, 18, -1, -1, 378, 22, 23, -1, -1, + 26, -1, -1, -1, 30, 31, 32, 33, -1, -1, + -1, -1, -1, -1, 40, 41, -1, 57, 44, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, + 80, 81, 82, -1, -1, -1, -1, -1, -1, -1, + -1, 77, 78, -1, -1, -1, -1, 83, -1, 85, + 86, 87, 88, 89, 90, -1, -1, 93, 94, 95, + -1, -1, -1, -1, -1, 115, 102, -1, -1, -1, + -1, -1, 108, 109, 110, -1, 112, 113, -1, -1, + 116, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 20, 14, -1, 16, -1, 18, -1, -1, -1, + 22, 23, -1, -1, 26, -1, -1, -1, 30, 31, + 32, 33, -1, -1, -1, -1, -1, -1, 40, 41, + -1, -1, 44, -1, -1, -1, -1, -1, 57, -1, + 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, -1, 77, 78, -1, -1, -1, + -1, 83, -1, 85, 86, 87, 88, 89, 90, -1, + -1, 93, 94, 95, -1, -1, -1, -1, -1, -1, + 102, -1, -1, -1, -1, -1, 108, 109, 110, -1, + 112, 113, -1, -1, 116, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, -1, 14, -1, 16, -1, + 18, -1, -1, -1, 22, 23, -1, -1, 26, -1, + -1, -1, 30, 31, 32, 33, -1, -1, -1, -1, + -1, -1, 40, 41, -1, 57, 44, 59, 60, 61, + 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, + 82, -1, -1, -1, -1, -1, -1, -1, -1, 77, + 78, -1, -1, -1, -1, 83, -1, 85, 86, 87, + 88, 89, 90, -1, -1, 93, 94, 95, -1, -1, + -1, -1, 114, -1, 102, -1, -1, -1, -1, -1, + 108, -1, 110, 111, 112, 113, -1, -1, 116, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, -1, 16, -1, 18, -1, -1, -1, 22, 23, + -1, -1, 26, -1, -1, -1, 30, 31, 32, 33, + -1, -1, -1, -1, -1, -1, 40, 41, -1, 57, + 44, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, -1, -1, -1, -1, -1, + -1, -1, -1, 77, 78, -1, -1, -1, -1, 83, + -1, 85, 86, 87, 88, 89, 90, -1, -1, 93, + 94, 95, -1, -1, -1, -1, 114, -1, 102, -1, + -1, -1, -1, -1, 108, -1, 110, -1, 112, 113, + -1, -1, 116, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, -1, 14, -1, 16, -1, 18, 19, + -1, -1, 22, 23, -1, -1, 26, -1, -1, -1, + 30, 31, 32, 33, -1, -1, -1, -1, -1, -1, + 40, 41, -1, 57, 44, 59, 60, 61, 62, 63, + 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 75, 76, 77, 78, 79, 80, 81, 82, -1, + -1, -1, -1, -1, -1, -1, -1, 77, 78, -1, + -1, -1, -1, 83, -1, 85, 86, 87, 88, 89, + 90, -1, -1, 93, 94, 95, -1, -1, -1, -1, + 114, -1, 102, -1, -1, -1, -1, -1, 108, -1, + 110, -1, 112, 113, -1, -1, 116, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, -1, 14, -1, + 16, 17, 18, -1, -1, -1, 22, 23, -1, -1, + 26, -1, -1, -1, 30, 31, 32, 33, -1, -1, + -1, -1, -1, -1, 40, 41, -1, 57, 44, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, + 80, 81, 82, -1, -1, -1, -1, -1, -1, -1, + -1, 77, 78, -1, -1, -1, -1, 83, -1, 85, + 86, 87, 88, 89, 90, -1, -1, 93, 94, 95, + -1, -1, -1, -1, 114, -1, 102, -1, -1, -1, + -1, -1, 108, -1, 110, -1, 112, 113, -1, -1, + 116, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, -1, 14, -1, 16, -1, 18, -1, -1, -1, + 22, 23, -1, -1, 26, -1, -1, -1, 30, 31, + 32, 33, -1, -1, -1, -1, -1, -1, 40, 41, + -1, 57, 44, 59, 60, 61, 62, 63, 64, 65, + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, -1, -1, -1, + -1, -1, -1, -1, -1, 77, 78, -1, -1, -1, + -1, 83, -1, 85, 86, 87, 88, 89, 90, -1, + -1, 93, 94, 95, -1, -1, -1, -1, 114, -1, + 102, -1, -1, -1, -1, -1, 108, -1, 110, 111, + 112, 113, -1, -1, 116, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, -1, 14, -1, 16, -1, + 18, -1, -1, -1, 22, 23, -1, -1, 26, -1, + -1, -1, 30, 31, 32, 33, -1, -1, -1, -1, + -1, -1, 40, 41, -1, 57, 44, 59, 60, 61, + 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, + 82, -1, -1, -1, -1, -1, -1, -1, -1, 77, + 78, -1, -1, -1, -1, 83, -1, 85, 86, 87, + 88, 89, 90, -1, -1, 93, 94, 95, -1, -1, + -1, -1, 114, -1, 102, -1, -1, -1, -1, -1, + 108, -1, 110, 111, 112, 113, -1, -1, 116, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, -1, + 14, 15, 16, -1, 18, -1, -1, -1, 22, 23, + -1, -1, 26, -1, -1, -1, 30, 31, 32, 33, + -1, -1, -1, -1, -1, -1, 40, 41, -1, 57, + 44, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, -1, -1, -1, -1, -1, + -1, -1, -1, 77, 78, -1, -1, -1, -1, 83, + -1, 85, 86, 87, 88, 89, 90, -1, -1, 93, + 94, 95, -1, -1, -1, -1, 114, -1, 102, -1, + -1, -1, -1, -1, 108, -1, 110, -1, 112, 113, + -1, -1, 116, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, -1, 14, -1, 16, -1, 18, -1, + -1, -1, 22, 23, -1, -1, 26, -1, -1, -1, + 30, 31, 32, 33, -1, -1, -1, -1, -1, -1, + 40, 41, -1, 57, 44, 59, 60, 61, 62, 63, + 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 75, 76, 77, 78, 79, 80, 81, 82, -1, + -1, -1, -1, -1, -1, -1, -1, 77, 78, -1, + -1, -1, -1, 83, -1, 85, 86, 87, 88, 89, + 90, -1, -1, 93, 94, 95, -1, -1, 112, -1, + -1, -1, 102, -1, -1, -1, -1, -1, 108, -1, + 110, -1, 112, 113, -1, -1, 116, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, -1, 14, -1, + 16, -1, 18, -1, -1, -1, 22, 23, -1, -1, + 26, -1, -1, -1, 30, 31, -1, 33, -1, -1, + -1, -1, -1, -1, 40, 41, -1, -1, 44, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 58, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, + 82, 77, 78, -1, -1, -1, -1, 83, -1, 85, + 86, 87, 88, 89, 90, -1, -1, 93, 94, 95, + -1, -1, -1, -1, -1, -1, 102, -1, -1, -1, + -1, -1, -1, -1, 110, -1, 112, 113, -1, -1, + 116, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, -1, 14, -1, 16, -1, 18, -1, -1, -1, + 22, 23, -1, -1, 26, -1, -1, -1, 30, 31, + -1, 33, -1, -1, -1, -1, -1, -1, 40, 41, + -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 58, 66, 67, 68, + 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, -1, 77, 78, -1, -1, -1, + -1, 83, -1, 85, 86, 87, 88, 89, 90, -1, + -1, 93, 94, 95, -1, -1, -1, -1, -1, -1, + 102, -1, -1, -1, -1, -1, -1, -1, 110, -1, + 112, 113, -1, -1, 116, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, -1, 14, -1, 16, -1, + 18, -1, -1, -1, 22, 23, -1, -1, 26, -1, + -1, -1, 30, 31, -1, 33, -1, -1, -1, -1, + -1, -1, 40, 41, -1, -1, 44, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 58, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, -1, -1, 77, + 78, -1, -1, -1, -1, 83, -1, 85, 86, 87, + 88, 89, 90, -1, -1, 93, 94, 95, -1, -1, + -1, -1, -1, -1, 102, -1, -1, -1, -1, -1, + -1, -1, 110, -1, 112, 113, -1, -1, 116, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, -1, + 14, -1, 16, -1, 18, -1, -1, -1, 22, 23, + -1, -1, 26, -1, -1, -1, 30, 31, -1, 33, + -1, -1, -1, -1, -1, -1, 40, 41, -1, -1, + 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 58, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, + 82, -1, -1, 77, 78, -1, -1, -1, -1, 83, + -1, 85, 86, 87, 88, 89, 90, -1, -1, 93, + 94, 95, -1, -1, -1, -1, -1, -1, 102, -1, + -1, -1, -1, -1, -1, -1, 110, -1, 112, 113, + -1, -1, 116, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, -1, 14, -1, 16, -1, 18, -1, + -1, -1, 22, 23, -1, -1, 26, -1, -1, -1, + 30, 31, -1, 33, -1, -1, -1, -1, -1, -1, + 40, 41, -1, -1, 44, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, + 4, 5, 6, 7, -1, 9, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 77, 78, -1, + -1, -1, -1, 83, -1, 85, 86, 87, 88, 89, + 90, -1, -1, 93, 94, 95, 40, 41, -1, -1, + 44, -1, 102, -1, -1, -1, -1, -1, -1, -1, + 110, -1, 112, 113, -1, -1, 116, 3, 4, 5, + 6, 7, -1, 9, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 77, 78, -1, -1, -1, -1, 83, + -1, 85, 86, 87, 88, 89, 90, -1, -1, 93, + 94, 95, -1, -1, 40, 41, -1, -1, 44, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 112, 113, + -1, -1, 116, 3, 4, 5, 6, 7, -1, 9, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 77, 78, -1, -1, -1, -1, 83, -1, 85, + 86, 87, 88, 89, 90, -1, -1, 93, 94, 95, + 40, 41, -1, -1, 44, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 112, 113, -1, -1, + 116, 3, 4, 5, 6, 7, -1, 9, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 77, 78, -1, + -1, -1, -1, 83, -1, 85, 86, 87, 88, 89, + 90, -1, -1, 93, 94, 95, -1, -1, 40, 41, + -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 112, 113, -1, -1, 116, 3, 4, 5, + 6, 7, -1, 9, 66, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 77, 78, -1, -1, -1, + -1, 83, -1, 85, 86, 87, 88, 89, 90, -1, + -1, 93, 94, 95, 40, 41, -1, -1, 44, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 113, -1, -1, 116, 3, 4, 5, 6, 7, + -1, 9, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 77, 78, -1, -1, -1, -1, 83, -1, 85, + 86, 87, 88, 89, 90, -1, -1, 93, 94, 95, + -1, -1, 40, 41, -1, -1, 44, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 113, 114, -1, + 116, 3, 4, 5, 6, 7, -1, 9, 66, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 77, + 78, -1, -1, -1, -1, 83, -1, 85, 86, 87, + 88, 89, 90, -1, -1, 93, 94, 95, 40, 41, + -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 113, -1, -1, 116, 3, + 4, 5, 6, 7, 66, 9, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 77, 78, -1, -1, -1, + -1, 83, -1, 85, 86, 87, 88, 89, 90, -1, + -1, 93, 94, 95, -1, -1, 40, 41, -1, -1, + 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 113, -1, -1, 116, 3, 4, 5, 6, 7, + -1, 9, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 77, 78, -1, -1, -1, -1, 83, + -1, 85, 86, 87, 88, 89, 90, -1, -1, 93, + 94, 95, 40, 41, -1, -1, 44, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 113, + -1, 115, 116, 3, 4, 5, 6, 7, 66, 9, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 77, + 78, -1, -1, -1, -1, 83, -1, 85, 86, 87, + 88, 89, 90, -1, -1, 93, 94, 95, -1, -1, + 40, 41, -1, -1, 44, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 113, -1, -1, 116, 3, + 4, 5, 6, 7, -1, 9, 66, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 77, 78, -1, + -1, -1, -1, 83, -1, 85, 86, 87, 88, 89, + 90, -1, -1, 93, 94, 95, 40, 41, -1, -1, + 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 113, -1, -1, 116, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 77, 78, -1, -1, -1, -1, 83, + -1, 85, 86, 87, 88, 89, 90, -1, -1, 93, + 94, 95, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 113, + -1, 57, 116, 59, 60, 61, 62, 63, 64, 65, + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 57, -1, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, + 80, 81, 82, -1, -1, 57, 112, 59, 60, 61, + 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, + 82, 57, 112, 59, 60, 61, 62, 63, 64, 65, + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, -1, -1, 57, + 112, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, 111, -1, -1, -1, -1, + -1, -1, -1, -1, 39, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 57, 111, 59, 60, 61, 62, 63, 64, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 57, 58, + 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 57, -1, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, + 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 60, 61, 62, 63, 64, 65, + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 61, 62, 63, + 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 75, 76, 77, 78, 79, 80, 81, 82, 62, + 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, + 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, + 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 75, 76, 77, 78, 79, 80, 81, 82 +}; + + /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing + symbol of state STATE-NUM. */ +static const yytype_uint8 yystos[] = +{ + 0, 108, 118, 119, 0, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, 14, 16, 18, 22, 23, + 26, 30, 31, 32, 33, 40, 41, 44, 77, 78, + 83, 85, 86, 87, 88, 89, 90, 93, 94, 95, + 102, 108, 109, 110, 112, 113, 116, 120, 121, 129, + 143, 144, 145, 146, 148, 42, 113, 123, 148, 113, + 149, 113, 121, 113, 113, 113, 113, 7, 125, 126, + 113, 113, 112, 148, 112, 148, 6, 66, 112, 148, + 113, 113, 148, 148, 148, 148, 148, 6, 144, 145, + 144, 148, 148, 148, 148, 148, 148, 7, 127, 128, + 119, 119, 148, 110, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 86, 87, 38, 42, + 96, 110, 57, 59, 60, 61, 62, 63, 64, 65, + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 112, 6, 66, + 147, 148, 43, 112, 114, 148, 148, 12, 148, 123, + 135, 148, 6, 122, 43, 112, 124, 144, 148, 112, + 112, 130, 6, 112, 40, 144, 150, 151, 66, 148, + 152, 153, 38, 45, 43, 112, 109, 111, 114, 148, + 66, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 6, 6, 115, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 144, 43, 114, 148, 114, 114, 113, + 114, 112, 20, 45, 43, 114, 126, 43, 114, 114, + 113, 113, 113, 43, 114, 144, 39, 43, 114, 6, + 6, 143, 128, 111, 144, 113, 113, 115, 111, 58, + 66, 148, 121, 148, 58, 121, 138, 135, 144, 143, + 6, 58, 121, 144, 112, 58, 110, 139, 6, 131, + 132, 131, 150, 151, 45, 66, 148, 153, 147, 147, + 148, 144, 136, 114, 119, 112, 39, 114, 45, 119, + 112, 140, 112, 140, 43, 114, 7, 66, 114, 114, + 148, 144, 114, 114, 99, 100, 137, 112, 13, 135, + 66, 144, 58, 121, 134, 143, 19, 140, 27, 28, + 29, 141, 140, 111, 132, 110, 7, 110, 113, 121, + 112, 114, 144, 114, 119, 27, 112, 148, 58, 112, + 142, 111, 7, 66, 119, 119, 148, 58, 121, 133, + 114, 134, 17, 112, 119, 7, 111, 111, 114, 119, + 134, 112, 121, 15, 112 +}; + + /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const yytype_uint8 yyr1[] = +{ + 0, 117, 118, 119, 119, 120, 120, 120, 121, 121, + 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, + 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, + 121, 122, 122, 123, 123, 124, 124, 125, 125, 126, + 127, 127, 128, 128, 130, 129, 129, 131, 131, 131, + 131, 131, 132, 132, 133, 133, 134, 134, 135, 135, + 136, 136, 137, 137, 138, 138, 139, 139, 139, 139, + 140, 140, 141, 141, 142, 142, 143, 143, 143, 143, + 144, 144, 144, 145, 145, 145, 145, 145, 146, 146, + 146, 147, 147, 147, 147, 147, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 148, 149, 149, 149, 150, + 150, 151, 151, 151, 152, 152, 153, 153, 153, 153 +}; + + /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +static const yytype_uint8 yyr2[] = +{ + 0, 2, 3, 2, 0, 1, 3, 1, 3, 2, + 3, 3, 7, 5, 7, 9, 5, 2, 3, 2, + 3, 2, 3, 3, 5, 7, 9, 10, 5, 7, + 1, 3, 5, 1, 3, 1, 3, 1, 3, 1, + 1, 3, 1, 3, 0, 9, 9, 2, 3, 4, + 5, 0, 0, 1, 1, 4, 1, 4, 1, 0, + 6, 0, 0, 2, 1, 4, 3, 4, 4, 5, + 0, 4, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 3, 3, 1, 3, 4, 4, 4, 4, 6, + 6, 1, 2, 3, 4, 0, 6, 1, 3, 1, + 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 5, 2, 2, 2, 2, + 2, 2, 2, 1, 4, 2, 3, 2, 0, 1, + 3, 1, 4, 0, 1, 3, 1, 3, 4, 2 +}; + + +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY (-2) +#define YYEOF 0 + +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab + + +#define YYRECOVERING() (!!yyerrstatus) + +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror (YY_("syntax error: cannot back up")); \ + YYERROR; \ + } \ +while (0) + +/* Error token number */ +#define YYTERROR 1 +#define YYERRCODE 256 + + + +/* Enable debugging if requested. */ +#if YYDEBUG + +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif + +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) + +/* This macro is provided for backward compatibility. */ +#ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +#endif + + +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Type, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (0) + + +/*----------------------------------------. +| Print this symbol's value on YYOUTPUT. | +`----------------------------------------*/ + +static void +yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +{ + FILE *yyo = yyoutput; + YYUSE (yyo); + if (!yyvaluep) + return; +# ifdef YYPRINT + if (yytype < YYNTOKENS) + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); +# endif + YYUSE (yytype); +} + + +/*--------------------------------. +| Print this symbol on YYOUTPUT. | +`--------------------------------*/ + +static void +yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +{ + YYFPRINTF (yyoutput, "%s %s (", + yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + + yy_symbol_value_print (yyoutput, yytype, yyvaluep); + YYFPRINTF (yyoutput, ")"); +} + +/*------------------------------------------------------------------. +| yy_stack_print -- Print the state stack from its BOTTOM up to its | +| TOP (included). | +`------------------------------------------------------------------*/ + +static void +yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +{ + YYFPRINTF (stderr, "Stack now"); + for (; yybottom <= yytop; yybottom++) + { + int yybot = *yybottom; + YYFPRINTF (stderr, " %d", yybot); + } + YYFPRINTF (stderr, "\n"); +} + +# define YY_STACK_PRINT(Bottom, Top) \ +do { \ + if (yydebug) \ + yy_stack_print ((Bottom), (Top)); \ +} while (0) + + +/*------------------------------------------------. +| Report that the YYRULE is going to be reduced. | +`------------------------------------------------*/ + +static void +yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) +{ + unsigned long int yylno = yyrline[yyrule]; + int yynrhs = yyr2[yyrule]; + int yyi; + YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", + yyrule - 1, yylno); + /* The symbols being reduced. */ + for (yyi = 0; yyi < yynrhs; yyi++) + { + YYFPRINTF (stderr, " $%d = ", yyi + 1); + yy_symbol_print (stderr, + yystos[yyssp[yyi + 1 - yynrhs]], + &(yyvsp[(yyi + 1) - (yynrhs)]) + ); + YYFPRINTF (stderr, "\n"); + } +} + +# define YY_REDUCE_PRINT(Rule) \ +do { \ + if (yydebug) \ + yy_reduce_print (yyssp, yyvsp, Rule); \ +} while (0) + +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +int yydebug; +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YY_STACK_PRINT(Bottom, Top) +# define YY_REDUCE_PRINT(Rule) +#endif /* !YYDEBUG */ + + +/* YYINITDEPTH -- initial size of the parser's stacks. */ +#ifndef YYINITDEPTH +# define YYINITDEPTH 200 +#endif + +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only + if the built-in stack extension method is used). + + Do not make this value too large; the results are undefined if + YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ + +#ifndef YYMAXDEPTH +# define YYMAXDEPTH 10000 +#endif + + +#if YYERROR_VERBOSE + +# ifndef yystrlen +# if defined __GLIBC__ && defined _STRING_H +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +yystrlen (const char *yystr) +{ + YYSIZE_T yylen; + for (yylen = 0; yystr[yylen]; yylen++) + continue; + return yylen; +} +# endif +# endif + +# ifndef yystpcpy +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE +# define yystpcpy stpcpy +# else +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in + YYDEST. */ +static char * +yystpcpy (char *yydest, const char *yysrc) +{ + char *yyd = yydest; + const char *yys = yysrc; + + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; +} +# endif +# endif + +# ifndef yytnamerr +/* Copy to YYRES the contents of YYSTR after stripping away unnecessary + quotes and backslashes, so that it's suitable for yyerror. The + heuristic is that double-quoting is unnecessary unless the string + contains an apostrophe, a comma, or backslash (other than + backslash-backslash). YYSTR is taken from yytname. If YYRES is + null, do not copy; instead, return the length of what the result + would have been. */ +static YYSIZE_T +yytnamerr (char *yyres, const char *yystr) +{ + if (*yystr == '"') + { + YYSIZE_T yyn = 0; + char const *yyp = yystr; + + for (;;) + switch (*++yyp) + { + case '\'': + case ',': + goto do_not_strip_quotes; + + case '\\': + if (*++yyp != '\\') + goto do_not_strip_quotes; + /* Fall through. */ + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; + + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } + do_not_strip_quotes: ; + } + + if (! yyres) + return yystrlen (yystr); + + return yystpcpy (yyres, yystr) - yyres; +} +# endif + +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return 2 if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, + yytype_int16 *yyssp, int yytoken) +{ + YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); + YYSIZE_T yysize = yysize0; + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat. */ + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + /* Number of reported tokens (one for the "unexpected", one per + "expected"). */ + int yycount = 0; + + /* There are many possibilities here to consider: + - If this state is a consistent state with a default action, then + the only way this function was invoked is if the default action + is an error action. In that case, don't check for expected + tokens because there are none. + - The only way there can be no lookahead present (in yychar) is if + this state is a consistent state with a default action. Thus, + detecting the absence of a lookahead is sufficient to determine + that there is no unexpected or expected token to report. In that + case, just report a simple "syntax error". + - Don't assume there isn't a lookahead just because this state is a + consistent state with a default action. There might have been a + previous inconsistent state, consistent state with a non-default + action, or user semantic action that manipulated yychar. + - Of course, the expected token list depends on states to have + correct lookahead information, and it depends on the parser not + to perform extra reductions after fetching a lookahead from the + scanner and before detecting a syntax error. Thus, state merging + (from LALR or IELR) and default reductions corrupt the expected + token list. However, the list is correct for canonical LR with + one exception: it will still contain any token that will not be + accepted due to an error action in a later state. + */ + if (yytoken != YYEMPTY) + { + int yyn = yypact[*yyssp]; + yyarg[yycount++] = yytname[yytoken]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + break; + } + yyarg[yycount++] = yytname[yyx]; + { + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); + if (! (yysize <= yysize1 + && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } + } + } + } + + switch (yycount) + { +# define YYCASE_(N, S) \ + case N: \ + yyformat = S; \ + break + YYCASE_(0, YY_("syntax error")); + YYCASE_(1, YY_("syntax error, unexpected %s")); + YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); + YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); + YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); + YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); +# undef YYCASE_ + } + + { + YYSIZE_T yysize1 = yysize + yystrlen (yyformat); + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } + + if (*yymsg_alloc < yysize) + { + *yymsg_alloc = 2 * yysize; + if (! (yysize <= *yymsg_alloc + && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) + *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; + return 1; + } + + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + { + char *yyp = *yymsg; + int yyi = 0; + while ((*yyp = *yyformat) != '\0') + if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyformat += 2; + } + else + { + yyp++; + yyformat++; + } + } + return 0; +} +#endif /* YYERROR_VERBOSE */ + +/*-----------------------------------------------. +| Release the memory associated to this symbol. | +`-----------------------------------------------*/ + +static void +yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) +{ + YYUSE (yyvaluep); + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YYUSE (yytype); + YY_IGNORE_MAYBE_UNINITIALIZED_END +} + + + + +/* The lookahead symbol. */ +int yychar; + +/* The semantic value of the lookahead symbol. */ +YYSTYPE yylval; +/* Number of syntax errors so far. */ +int yynerrs; + + +/*----------. +| yyparse. | +`----------*/ + +int +yyparse (void) +{ + int yystate; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + + /* The stacks and their tools: + 'yyss': related to states. + 'yyvs': related to semantic values. + + Refer to the stacks through separate pointers, to allow yyoverflow + to reallocate them elsewhere. */ + + /* The state stack. */ + yytype_int16 yyssa[YYINITDEPTH]; + yytype_int16 *yyss; + yytype_int16 *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs; + YYSTYPE *yyvsp; + + YYSIZE_T yystacksize; + + int yyn; + int yyresult; + /* Lookahead token as an internal (translated) token number. */ + int yytoken = 0; + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; + +#if YYERROR_VERBOSE + /* Buffer for error messages, and its allocated size. */ + char yymsgbuf[128]; + char *yymsg = yymsgbuf; + YYSIZE_T yymsg_alloc = sizeof yymsgbuf; +#endif + +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) + + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; + + yyssp = yyss = yyssa; + yyvsp = yyvs = yyvsa; + yystacksize = YYINITDEPTH; + + YYDPRINTF ((stderr, "Starting parse\n")); + + yystate = 0; + yyerrstatus = 0; + yynerrs = 0; + yychar = YYEMPTY; /* Cause a token to be read. */ + goto yysetstate; + +/*------------------------------------------------------------. +| yynewstate -- Push a new state, which is found in yystate. | +`------------------------------------------------------------*/ + yynewstate: + /* In all cases, when you get here, the value and location stacks + have just been pushed. So pushing a state here evens the stacks. */ + yyssp++; + + yysetstate: + *yyssp = yystate; + + if (yyss + yystacksize - 1 <= yyssp) + { + /* Get the current used size of the three stacks, in elements. */ + YYSIZE_T yysize = yyssp - yyss + 1; + +#ifdef yyoverflow + { + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + YYSTYPE *yyvs1 = yyvs; + yytype_int16 *yyss1 = yyss; + + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. This used to be a + conditional around just the two extra args, but that might + be undefined if yyoverflow is a macro. */ + yyoverflow (YY_("memory exhausted"), + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); + + yyss = yyss1; + yyvs = yyvs1; + } +#else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyexhaustedlab; +# else + /* Extend the stack our own way. */ + if (YYMAXDEPTH <= yystacksize) + goto yyexhaustedlab; + yystacksize *= 2; + if (YYMAXDEPTH < yystacksize) + yystacksize = YYMAXDEPTH; + + { + yytype_int16 *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyexhaustedlab; + YYSTACK_RELOCATE (yyss_alloc, yyss); + YYSTACK_RELOCATE (yyvs_alloc, yyvs); +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif +#endif /* no yyoverflow */ + + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; + + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); + + if (yyss + yystacksize - 1 <= yyssp) + YYABORT; + } + + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + + if (yystate == YYFINAL) + YYACCEPT; + + goto yybackup; + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: + + /* Do appropriate processing given the current state. Read a + lookahead token if we need one and don't already have one. */ + + /* First try to decide what to do without reference to lookahead token. */ + yyn = yypact[yystate]; + if (yypact_value_is_default (yyn)) + goto yydefault; + + /* Not known => get a lookahead token if don't already have one. */ + + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + if (yychar == YYEMPTY) + { + YYDPRINTF ((stderr, "Reading a token: ")); + yychar = yylex (); + } + + if (yychar <= YYEOF) + { + yychar = yytoken = YYEOF; + YYDPRINTF ((stderr, "Now at end of input.\n")); + } + else + { + yytoken = YYTRANSLATE (yychar); + YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); + } + + /* If the proper action on seeing token YYTOKEN is to reduce or to + detect an error, take that action. */ + yyn += yytoken; + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) + goto yydefault; + yyn = yytable[yyn]; + if (yyn <= 0) + { + if (yytable_value_is_error (yyn)) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; + } + + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; + + /* Shift the lookahead token. */ + YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); + + /* Discard the shifted token. */ + yychar = YYEMPTY; + + yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END + + goto yynewstate; + + +/*-----------------------------------------------------------. +| yydefault -- do the default action for the current state. | +`-----------------------------------------------------------*/ +yydefault: + yyn = yydefact[yystate]; + if (yyn == 0) + goto yyerrlab; + goto yyreduce; + + +/*-----------------------------. +| yyreduce -- Do a reduction. | +`-----------------------------*/ +yyreduce: + /* yyn is the number of a rule to reduce with. */ + yylen = yyr2[yyn]; + + /* If YYLEN is nonzero, implement the default value of the action: + '$$ = $1'. + + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1-yylen]; + + + YY_REDUCE_PRINT (yyn); + switch (yyn) + { + case 2: +#line 142 "php_parser.y" /* yacc.c:1646 */ + { g_syn_tree_top = (yyvsp[-1].syn_node); } +#line 2181 "php_parser.c" /* yacc.c:1646 */ + break; + + case 3: +#line 146 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = add_statement_2_list((yyvsp[-1].syn_node), (yyvsp[0].syn_node)); } +#line 2187 "php_parser.c" /* yacc.c:1646 */ + break; + + case 4: +#line 147 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = 0; } +#line 2193 "php_parser.c" /* yacc.c:1646 */ + break; + + case 6: +#line 153 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = (yyvsp[-1].syn_node); } +#line 2199 "php_parser.c" /* yacc.c:1646 */ + break; + + case 8: +#line 159 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = (yyvsp[-1].syn_node); } +#line 2205 "php_parser.c" /* yacc.c:1646 */ + break; + + case 9: +#line 160 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_EXPR, (yyvsp[-1].exp_node)); } +#line 2211 "php_parser.c" /* yacc.c:1646 */ + break; + + case 10: +#line 161 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = 0; } +#line 2217 "php_parser.c" /* yacc.c:1646 */ + break; + + case 11: +#line 162 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = (yyvsp[-1].syn_node); } +#line 2223 "php_parser.c" /* yacc.c:1646 */ + break; + + case 12: +#line 163 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_ifelse_syn_node((yyvsp[-4].exp_node), (yyvsp[-2].syn_node), (yyvsp[-1].syn_node), (yyvsp[0].syn_node)); } +#line 2229 "php_parser.c" /* yacc.c:1646 */ + break; + + case 13: +#line 164 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_while_loop_syn_node((yyvsp[-2].exp_node), (yyvsp[0].syn_node), 1); } +#line 2235 "php_parser.c" /* yacc.c:1646 */ + break; + + case 14: +#line 165 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_while_loop_syn_node((yyvsp[-2].exp_node), (yyvsp[-5].syn_node), 0); } +#line 2241 "php_parser.c" /* yacc.c:1646 */ + break; + + case 15: +#line 166 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_for_syn_node((yyvsp[-6].exp_node), (yyvsp[-4].exp_node), (yyvsp[-2].exp_node), (yyvsp[0].syn_node)); } +#line 2247 "php_parser.c" /* yacc.c:1646 */ + break; + + case 16: +#line 167 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_switch_syn_node((yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2253 "php_parser.c" /* yacc.c:1646 */ + break; + + case 17: +#line 168 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_CONTINUE, 0); } +#line 2259 "php_parser.c" /* yacc.c:1646 */ + break; + + case 18: +#line 169 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_CONTINUE, (yyvsp[-1].exp_node)); } +#line 2265 "php_parser.c" /* yacc.c:1646 */ + break; + + case 19: +#line 170 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_BREAK, 0); } +#line 2271 "php_parser.c" /* yacc.c:1646 */ + break; + + case 20: +#line 171 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_BREAK, (yyvsp[-1].exp_node)); } +#line 2277 "php_parser.c" /* yacc.c:1646 */ + break; + + case 21: +#line 172 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_RET, 0); } +#line 2283 "php_parser.c" /* yacc.c:1646 */ + break; + + case 22: +#line 173 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_RET, (yyvsp[-1].exp_node)); } +#line 2289 "php_parser.c" /* yacc.c:1646 */ + break; + + case 23: +#line 174 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = make_expr_syn_node(PHP_ST_ECHO, (yyvsp[-1].exp_node)); } +#line 2295 "php_parser.c" /* yacc.c:1646 */ + break; + + case 24: +#line 175 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2301 "php_parser.c" /* yacc.c:1646 */ + break; + + case 25: +#line 176 "php_parser.y" /* yacc.c:1646 */ + { + (yyval.syn_node) = make_foreach_loop_syn_node((yyvsp[-4].exp_node), 0, (yyvsp[-2].exp_node), (yyvsp[0].syn_node), 0); + } +#line 2309 "php_parser.c" /* yacc.c:1646 */ + break; + + case 26: +#line 179 "php_parser.y" /* yacc.c:1646 */ + { + (yyval.syn_node) = make_foreach_loop_syn_node((yyvsp[-6].exp_node), (yyvsp[-4].exp_node), (yyvsp[-2].exp_node), (yyvsp[0].syn_node), 0); + } +#line 2317 "php_parser.c" /* yacc.c:1646 */ + break; + + case 27: +#line 182 "php_parser.y" /* yacc.c:1646 */ + { + (yyval.syn_node) = make_foreach_loop_syn_node((yyvsp[-7].exp_node), (yyvsp[-5].exp_node), (yyvsp[-2].exp_node), (yyvsp[0].syn_node), 1); + } +#line 2325 "php_parser.c" /* yacc.c:1646 */ + break; + + case 28: +#line 185 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2331 "php_parser.c" /* yacc.c:1646 */ + break; + + case 29: +#line 186 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2337 "php_parser.c" /* yacc.c:1646 */ + break; + + case 30: +#line 187 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = 0; } +#line 2343 "php_parser.c" /* yacc.c:1646 */ + break; + + case 31: +#line 190 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2349 "php_parser.c" /* yacc.c:1646 */ + break; + + case 32: +#line 191 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2355 "php_parser.c" /* yacc.c:1646 */ + break; + + case 33: +#line 194 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_LIST, 0); (yyval.exp_node)->exp_node = (yyvsp[0].exp_node); } +#line 2361 "php_parser.c" /* yacc.c:1646 */ + break; + + case 34: +#line 195 "php_parser.y" /* yacc.c:1646 */ + { + PHP_EXP_NODE *last = (yyvsp[-2].exp_node); + while ( last->next) last = last->next; + last->next = make_exp_1(PHP_OP_LIST, 0); + last->next->exp_node = (yyvsp[0].exp_node); + (yyval.exp_node) = (yyvsp[-2].exp_node); + } +#line 2373 "php_parser.c" /* yacc.c:1646 */ + break; + + case 37: +#line 211 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = 0; } +#line 2379 "php_parser.c" /* yacc.c:1646 */ + break; + + case 38: +#line 212 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2385 "php_parser.c" /* yacc.c:1646 */ + break; + + case 39: +#line 216 "php_parser.y" /* yacc.c:1646 */ + { + const char *varname = get_scope_var_name(g_current_scope, (yyvsp[0].exp_node)->var_si_node->var); + PHP_SCOPE_ITEM *si = get_scope_item(g_current_scope, varname); + PHP_SCOPE_ITEM *gsi = get_scope_item(g_global_scope, varname); + if ( gsi && (gsi->type == PHP_SCOPE_VAR) ) { + free_var_node(si->var); + php_exp_tree_free((yyvsp[0].exp_node)); + gsi->var->ref_count++; + si->var = gsi->var; + } else { + php_report_error(PHP_ERROR, "There is no such global var"); + } + } +#line 2403 "php_parser.c" /* yacc.c:1646 */ + break; + + case 40: +#line 231 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = 0; } +#line 2409 "php_parser.c" /* yacc.c:1646 */ + break; + + case 41: +#line 232 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2415 "php_parser.c" /* yacc.c:1646 */ + break; + + case 42: +#line 235 "php_parser.y" /* yacc.c:1646 */ + { (yyvsp[0].exp_node)->var_node->flags |= PHP_VARFLAG_STATIC; (yyval.exp_node) = (yyvsp[0].exp_node); } +#line 2421 "php_parser.c" /* yacc.c:1646 */ + break; + + case 43: +#line 236 "php_parser.y" /* yacc.c:1646 */ + { + (yyvsp[-2].exp_node)->var_node->flags |= PHP_VARFLAG_STATIC; (yyval.exp_node) = (yyvsp[-2].exp_node); + value_value_assign(&(yyvsp[-2].exp_node)->var_node->value, &(yyvsp[0].exp_node)->val_node); + } +#line 2430 "php_parser.c" /* yacc.c:1646 */ + break; + + case 44: +#line 244 "php_parser.y" /* yacc.c:1646 */ + { + switch_push_scope_table(make_scope_table()); + } +#line 2438 "php_parser.c" /* yacc.c:1646 */ + break; + + case 45: +#line 246 "php_parser.y" /* yacc.c:1646 */ + { + (yyval.syn_node) = make_func_decl_syn_node((yyvsp[-7].str_val), (yyvsp[-4].exp_node)); + (yyval.syn_node)->func_decl->scope = g_current_scope; + (yyval.syn_node)->func_decl->is_native = 0; + (yyval.syn_node)->func_decl->code = (yyvsp[-1].syn_node); + switch_pop_scope_table(0); + add_func_2_scope(g_current_scope, (yyval.syn_node)); + (yyval.syn_node) = 0; + } +#line 2452 "php_parser.c" /* yacc.c:1646 */ + break; + + case 46: +#line 255 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2458 "php_parser.c" /* yacc.c:1646 */ + break; + + case 47: +#line 259 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_param(0, (yyvsp[0].exp_node), (yyvsp[-1].str_val), 0); } +#line 2464 "php_parser.c" /* yacc.c:1646 */ + break; + + case 48: +#line 260 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_param(0, (yyvsp[0].exp_node), (yyvsp[-2].str_val), 1); } +#line 2470 "php_parser.c" /* yacc.c:1646 */ + break; + + case 49: +#line 261 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_param((yyvsp[-3].exp_node), (yyvsp[0].exp_node), (yyvsp[-1].str_val), 0); } +#line 2476 "php_parser.c" /* yacc.c:1646 */ + break; + + case 50: +#line 262 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_param((yyvsp[-4].exp_node), (yyvsp[0].exp_node), (yyvsp[-2].str_val), 1); } +#line 2482 "php_parser.c" /* yacc.c:1646 */ + break; + + case 51: +#line 263 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = 0; } +#line 2488 "php_parser.c" /* yacc.c:1646 */ + break; + + case 52: +#line 267 "php_parser.y" /* yacc.c:1646 */ + { (yyval.str_val)[0] = 0; } +#line 2494 "php_parser.c" /* yacc.c:1646 */ + break; + + case 55: +#line 273 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = (yyvsp[-2].syn_node); } +#line 2500 "php_parser.c" /* yacc.c:1646 */ + break; + + case 57: +#line 278 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = (yyvsp[-2].syn_node); } +#line 2506 "php_parser.c" /* yacc.c:1646 */ + break; + + case 59: +#line 282 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = 0; } +#line 2512 "php_parser.c" /* yacc.c:1646 */ + break; + + case 60: +#line 286 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = add_branch_2_elseif((yyvsp[-5].syn_node), make_ifelse_syn_node((yyvsp[-2].exp_node), (yyvsp[0].syn_node), 0, 0)); } +#line 2518 "php_parser.c" /* yacc.c:1646 */ + break; + + case 61: +#line 287 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = 0; } +#line 2524 "php_parser.c" /* yacc.c:1646 */ + break; + + case 62: +#line 291 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = 0; } +#line 2530 "php_parser.c" /* yacc.c:1646 */ + break; + + case 63: +#line 292 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = (yyvsp[0].syn_node); } +#line 2536 "php_parser.c" /* yacc.c:1646 */ + break; + + case 65: +#line 296 "php_parser.y" /* yacc.c:1646 */ + { (yyval.syn_node) = (yyvsp[-2].syn_node); } +#line 2542 "php_parser.c" /* yacc.c:1646 */ + break; + + case 66: +#line 300 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-1].exp_node); } +#line 2548 "php_parser.c" /* yacc.c:1646 */ + break; + + case 67: +#line 301 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-1].exp_node); } +#line 2554 "php_parser.c" /* yacc.c:1646 */ + break; + + case 68: +#line 302 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-2].exp_node); } +#line 2560 "php_parser.c" /* yacc.c:1646 */ + break; + + case 69: +#line 303 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-2].exp_node); } +#line 2566 "php_parser.c" /* yacc.c:1646 */ + break; + + case 70: +#line 307 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = 0; } +#line 2572 "php_parser.c" /* yacc.c:1646 */ + break; + + case 71: +#line 308 "php_parser.y" /* yacc.c:1646 */ + { + (yyvsp[-2].exp_node)->tree_node.syn_right = (yyvsp[0].syn_node); + if ( (yyvsp[-3].exp_node) ) { + PHP_EXP_NODE *last = (yyvsp[-3].exp_node); + while ( last->next) last = last->next; + last->next = make_exp_1(PHP_OP_LIST, 0); + last->next->exp_node = (yyvsp[-2].exp_node); + (yyval.exp_node) = (yyvsp[-3].exp_node); + } else { + (yyval.exp_node) = make_exp_1(PHP_OP_LIST, 0); + (yyval.exp_node)->exp_node = (yyvsp[-2].exp_node); + } + } +#line 2590 "php_parser.c" /* yacc.c:1646 */ + break; + + case 72: +#line 323 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LIST, (yyvsp[0].exp_node), 0); } +#line 2596 "php_parser.c" /* yacc.c:1646 */ + break; + + case 73: +#line 324 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LIST, 0, 0); } +#line 2602 "php_parser.c" /* yacc.c:1646 */ + break; + + case 79: +#line 335 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_known_const((yyvsp[0].str_val)); } +#line 2608 "php_parser.c" /* yacc.c:1646 */ + break; + + case 81: +#line 339 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_CLASS_DEREF, make_const_exp_str((yyvsp[-2].str_val), 0), make_const_exp_str((yyvsp[0].str_val), 0)); } +#line 2614 "php_parser.c" /* yacc.c:1646 */ + break; + + case 82: +#line 340 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_OBJECT_DEREF, (yyvsp[-2].exp_node), make_const_exp_str((yyvsp[0].str_val), 0)); } +#line 2620 "php_parser.c" /* yacc.c:1646 */ + break; + + case 84: +#line 345 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_BY_KEY, (yyvsp[-2].exp_node), 0); } +#line 2626 "php_parser.c" /* yacc.c:1646 */ + break; + + case 85: +#line 346 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_BY_KEY, (yyvsp[-3].exp_node), (yyvsp[-1].exp_node));} +#line 2632 "php_parser.c" /* yacc.c:1646 */ + break; + + case 86: +#line 347 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_BY_KEY, (yyvsp[-3].exp_node), (yyvsp[-1].exp_node));} +#line 2638 "php_parser.c" /* yacc.c:1646 */ + break; + + case 87: +#line 348 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_VAR_BY_EXP, (yyvsp[-1].exp_node)); } +#line 2644 "php_parser.c" /* yacc.c:1646 */ + break; + + case 88: +#line 352 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_call_exp((yyvsp[-3].str_val), (yyvsp[-1].exp_node)); } +#line 2650 "php_parser.c" /* yacc.c:1646 */ + break; + + case 89: +#line 353 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2656 "php_parser.c" /* yacc.c:1646 */ + break; + + case 90: +#line 354 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2662 "php_parser.c" /* yacc.c:1646 */ + break; + + case 91: +#line 357 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_call_param_list(); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[0].exp_node), 0); } +#line 2668 "php_parser.c" /* yacc.c:1646 */ + break; + + case 92: +#line 358 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_call_param_list(); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[0].exp_node), 1); } +#line 2674 "php_parser.c" /* yacc.c:1646 */ + break; + + case 93: +#line 359 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-2].exp_node); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[0].exp_node), 0); } +#line 2680 "php_parser.c" /* yacc.c:1646 */ + break; + + case 94: +#line 360 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-3].exp_node); func_call_add_expr((yyval.exp_node)->var_node, (yyvsp[0].exp_node), 1); } +#line 2686 "php_parser.c" /* yacc.c:1646 */ + break; + + case 95: +#line 361 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_func_call_param_list(); } +#line 2692 "php_parser.c" /* yacc.c:1646 */ + break; + + case 96: +#line 366 "php_parser.y" /* yacc.c:1646 */ + { } +#line 2698 "php_parser.c" /* yacc.c:1646 */ + break; + + case 98: +#line 368 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_ASS, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2704 "php_parser.c" /* yacc.c:1646 */ + break; + + case 99: +#line 369 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[0].exp_node); } +#line 2710 "php_parser.c" /* yacc.c:1646 */ + break; + + case 100: +#line 370 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_MAKE_REF, (yyvsp[-3].exp_node), (yyvsp[0].exp_node)); } +#line 2716 "php_parser.c" /* yacc.c:1646 */ + break; + + case 101: +#line 375 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_ADD, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2722 "php_parser.c" /* yacc.c:1646 */ + break; + + case 102: +#line 376 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_SUB, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2728 "php_parser.c" /* yacc.c:1646 */ + break; + + case 103: +#line 377 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_MUL, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2734 "php_parser.c" /* yacc.c:1646 */ + break; + + case 104: +#line 378 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_DIV, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2740 "php_parser.c" /* yacc.c:1646 */ + break; + + case 105: +#line 379 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_CAT, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2746 "php_parser.c" /* yacc.c:1646 */ + break; + + case 106: +#line 380 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_REM, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2752 "php_parser.c" /* yacc.c:1646 */ + break; + + case 107: +#line 381 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_AND, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2758 "php_parser.c" /* yacc.c:1646 */ + break; + + case 108: +#line 382 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_OR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2764 "php_parser.c" /* yacc.c:1646 */ + break; + + case 109: +#line 383 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_XOR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2770 "php_parser.c" /* yacc.c:1646 */ + break; + + case 110: +#line 384 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_SHL, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2776 "php_parser.c" /* yacc.c:1646 */ + break; + + case 111: +#line 385 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-2].exp_node), make_exp_2(PHP_OP_SHR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node))); } +#line 2782 "php_parser.c" /* yacc.c:1646 */ + break; + + case 112: +#line 387 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-1].exp_node), make_exp_2(PHP_OP_ADD, (yyvsp[-1].exp_node), make_const_exp_dnum(1))); } +#line 2788 "php_parser.c" /* yacc.c:1646 */ + break; + + case 113: +#line 388 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[0].exp_node), make_exp_2(PHP_OP_ADD, (yyvsp[0].exp_node), make_const_exp_dnum(1))); } +#line 2794 "php_parser.c" /* yacc.c:1646 */ + break; + + case 114: +#line 389 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[-1].exp_node), make_exp_2(PHP_OP_SUB, (yyvsp[-1].exp_node), make_const_exp_dnum(1))); } +#line 2800 "php_parser.c" /* yacc.c:1646 */ + break; + + case 115: +#line 390 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2_self(PHP_OP_ASS, (yyvsp[0].exp_node), make_exp_2(PHP_OP_SUB, (yyvsp[0].exp_node), make_const_exp_dnum(1))); } +#line 2806 "php_parser.c" /* yacc.c:1646 */ + break; + + case 116: +#line 392 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_OR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2812 "php_parser.c" /* yacc.c:1646 */ + break; + + case 117: +#line 393 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_AND, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2818 "php_parser.c" /* yacc.c:1646 */ + break; + + case 118: +#line 394 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_OR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2824 "php_parser.c" /* yacc.c:1646 */ + break; + + case 119: +#line 395 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_AND, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2830 "php_parser.c" /* yacc.c:1646 */ + break; + + case 120: +#line 396 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LOG_XOR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2836 "php_parser.c" /* yacc.c:1646 */ + break; + + case 121: +#line 397 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_OR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2842 "php_parser.c" /* yacc.c:1646 */ + break; + + case 122: +#line 398 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_AND, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2848 "php_parser.c" /* yacc.c:1646 */ + break; + + case 123: +#line 399 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_XOR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2854 "php_parser.c" /* yacc.c:1646 */ + break; + + case 124: +#line 400 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_CAT, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2860 "php_parser.c" /* yacc.c:1646 */ + break; + + case 125: +#line 401 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_ADD, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2866 "php_parser.c" /* yacc.c:1646 */ + break; + + case 126: +#line 402 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_SUB, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2872 "php_parser.c" /* yacc.c:1646 */ + break; + + case 127: +#line 403 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_MUL, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2878 "php_parser.c" /* yacc.c:1646 */ + break; + + case 128: +#line 404 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_DIV, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2884 "php_parser.c" /* yacc.c:1646 */ + break; + + case 129: +#line 405 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_REM, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2890 "php_parser.c" /* yacc.c:1646 */ + break; + + case 130: +#line 406 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_SHL, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2896 "php_parser.c" /* yacc.c:1646 */ + break; + + case 131: +#line 407 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_SHR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2902 "php_parser.c" /* yacc.c:1646 */ + break; + + case 132: +#line 408 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[0].exp_node); } +#line 2908 "php_parser.c" /* yacc.c:1646 */ + break; + + case 133: +#line 409 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_SUB, make_const_exp_dnum(0), (yyvsp[0].exp_node)); } +#line 2914 "php_parser.c" /* yacc.c:1646 */ + break; + + case 134: +#line 410 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_LOG_NOT, (yyvsp[0].exp_node)); } +#line 2920 "php_parser.c" /* yacc.c:1646 */ + break; + + case 135: +#line 411 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_NOT, (yyvsp[0].exp_node)); } +#line 2926 "php_parser.c" /* yacc.c:1646 */ + break; + + case 136: +#line 412 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_SAME, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2932 "php_parser.c" /* yacc.c:1646 */ + break; + + case 137: +#line 413 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_NOT_SAME, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2938 "php_parser.c" /* yacc.c:1646 */ + break; + + case 138: +#line 414 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_EQ, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2944 "php_parser.c" /* yacc.c:1646 */ + break; + + case 139: +#line 415 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_NEQ, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2950 "php_parser.c" /* yacc.c:1646 */ + break; + + case 140: +#line 416 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LWR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2956 "php_parser.c" /* yacc.c:1646 */ + break; + + case 141: +#line 417 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_LWR_EQ, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2962 "php_parser.c" /* yacc.c:1646 */ + break; + + case 142: +#line 418 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_GRT, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2968 "php_parser.c" /* yacc.c:1646 */ + break; + + case 143: +#line 419 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_GRT_EQ, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 2974 "php_parser.c" /* yacc.c:1646 */ + break; + + case 144: +#line 420 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-1].exp_node); } +#line 2980 "php_parser.c" /* yacc.c:1646 */ + break; + + case 145: +#line 421 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_MUX, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); (yyval.exp_node)->exp_node = (yyvsp[-4].exp_node); } +#line 2986 "php_parser.c" /* yacc.c:1646 */ + break; + + case 146: +#line 422 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_INT, (yyvsp[0].exp_node)); } +#line 2992 "php_parser.c" /* yacc.c:1646 */ + break; + + case 147: +#line 423 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_FLOAT, (yyvsp[0].exp_node)); } +#line 2998 "php_parser.c" /* yacc.c:1646 */ + break; + + case 148: +#line 424 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_STR, (yyvsp[0].exp_node)); } +#line 3004 "php_parser.c" /* yacc.c:1646 */ + break; + + case 149: +#line 425 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_CAST_BOOL, (yyvsp[0].exp_node)); } +#line 3010 "php_parser.c" /* yacc.c:1646 */ + break; + + case 150: +#line 428 "php_parser.y" /* yacc.c:1646 */ + { } +#line 3016 "php_parser.c" /* yacc.c:1646 */ + break; + + case 151: +#line 429 "php_parser.y" /* yacc.c:1646 */ + { } +#line 3022 "php_parser.c" /* yacc.c:1646 */ + break; + + case 152: +#line 430 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[0].exp_node); } +#line 3028 "php_parser.c" /* yacc.c:1646 */ + break; + + case 153: +#line 432 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[0].exp_node); } +#line 3034 "php_parser.c" /* yacc.c:1646 */ + break; + + case 154: +#line 433 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_ARRAY, (yyvsp[-1].exp_node)); } +#line 3040 "php_parser.c" /* yacc.c:1646 */ + break; + + case 155: +#line 434 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_PRINT, (yyvsp[0].exp_node)); } +#line 3046 "php_parser.c" /* yacc.c:1646 */ + break; + + case 156: +#line 437 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-1].exp_node); } +#line 3052 "php_parser.c" /* yacc.c:1646 */ + break; + + case 157: +#line 438 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = 0; } +#line 3058 "php_parser.c" /* yacc.c:1646 */ + break; + + case 158: +#line 439 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = 0; } +#line 3064 "php_parser.c" /* yacc.c:1646 */ + break; + + case 161: +#line 447 "php_parser.y" /* yacc.c:1646 */ + { /*$$ = make_assign_node($1);*/ } +#line 3070 "php_parser.c" /* yacc.c:1646 */ + break; + + case 162: +#line 448 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = (yyvsp[-1].exp_node); } +#line 3076 "php_parser.c" /* yacc.c:1646 */ + break; + + case 163: +#line 449 "php_parser.y" /* yacc.c:1646 */ + { /*$$ = make_assign_node(0);*/ } +#line 3082 "php_parser.c" /* yacc.c:1646 */ + break; + + case 164: +#line 452 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_LIST, 0); (yyval.exp_node)->exp_node = (yyvsp[0].exp_node); } +#line 3088 "php_parser.c" /* yacc.c:1646 */ + break; + + case 165: +#line 453 "php_parser.y" /* yacc.c:1646 */ + { + PHP_EXP_NODE *last = (yyvsp[-2].exp_node); + while ( last->next) last = last->next; + last->next = make_exp_1(PHP_OP_LIST, 0); + last->next->exp_node = (yyvsp[0].exp_node); + (yyval.exp_node) = (yyvsp[-2].exp_node); + } +#line 3100 "php_parser.c" /* yacc.c:1646 */ + break; + + case 166: +#line 462 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_ARRAY_PAIR, (yyvsp[0].exp_node)); } +#line 3106 "php_parser.c" /* yacc.c:1646 */ + break; + + case 167: +#line 463 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_PAIR, (yyvsp[-2].exp_node), (yyvsp[0].exp_node)); } +#line 3112 "php_parser.c" /* yacc.c:1646 */ + break; + + case 168: +#line 464 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_2(PHP_OP_ARRAY_REF_PAIR, (yyvsp[-3].exp_node), (yyvsp[0].exp_node)); } +#line 3118 "php_parser.c" /* yacc.c:1646 */ + break; + + case 169: +#line 465 "php_parser.y" /* yacc.c:1646 */ + { (yyval.exp_node) = make_exp_1(PHP_OP_ARRAY_REF_PAIR, (yyvsp[0].exp_node)); } +#line 3124 "php_parser.c" /* yacc.c:1646 */ + break; + + +#line 3128 "php_parser.c" /* yacc.c:1646 */ + default: break; + } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ + YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); + + YYPOPSTACK (yylen); + yylen = 0; + YY_STACK_PRINT (yyss, yyssp); + + *++yyvsp = yyval; + + /* Now 'shift' the result of the reduction. Determine what state + that goes to, based on the state we popped back to and the rule + number reduced by. */ + + yyn = yyr1[yyn]; + + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) + yystate = yytable[yystate]; + else + yystate = yydefgoto[yyn - YYNTOKENS]; + + goto yynewstate; + + +/*--------------------------------------. +| yyerrlab -- here on detecting error. | +`--------------------------------------*/ +yyerrlab: + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); + + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) + { + ++yynerrs; +#if ! YYERROR_VERBOSE + yyerror (YY_("syntax error")); +#else +# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ + yyssp, yytoken) + { + char const *yymsgp = YY_("syntax error"); + int yysyntax_error_status; + yysyntax_error_status = YYSYNTAX_ERROR; + if (yysyntax_error_status == 0) + yymsgp = yymsg; + else if (yysyntax_error_status == 1) + { + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); + yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); + if (!yymsg) + { + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = 2; + } + else + { + yysyntax_error_status = YYSYNTAX_ERROR; + yymsgp = yymsg; + } + } + yyerror (yymsgp); + if (yysyntax_error_status == 2) + goto yyexhaustedlab; + } +# undef YYSYNTAX_ERROR +#endif + } + + + + if (yyerrstatus == 3) + { + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ + + if (yychar <= YYEOF) + { + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; + } + else + { + yydestruct ("Error: discarding", + yytoken, &yylval); + yychar = YYEMPTY; + } + } + + /* Else will try to reuse lookahead token after shifting the error + token. */ + goto yyerrlab1; + + +/*---------------------------------------------------. +| yyerrorlab -- error raised explicitly by YYERROR. | +`---------------------------------------------------*/ +yyerrorlab: + + /* Pacify compilers like GCC when the user code never invokes + YYERROR and the label yyerrorlab therefore never appears in user + code. */ + if (/*CONSTCOND*/ 0) + goto yyerrorlab; + + /* Do not reclaim the symbols of the rule whose action triggered + this YYERROR. */ + YYPOPSTACK (yylen); + yylen = 0; + YY_STACK_PRINT (yyss, yyssp); + yystate = *yyssp; + goto yyerrlab1; + + +/*-------------------------------------------------------------. +| yyerrlab1 -- common code for both syntax error and YYERROR. | +`-------------------------------------------------------------*/ +yyerrlab1: + yyerrstatus = 3; /* Each real token shifted decrements this. */ + + for (;;) + { + yyn = yypact[yystate]; + if (!yypact_value_is_default (yyn)) + { + yyn += YYTERROR; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + { + yyn = yytable[yyn]; + if (0 < yyn) + break; + } + } + + /* Pop the current state because it cannot handle the error token. */ + if (yyssp == yyss) + YYABORT; + + + yydestruct ("Error: popping", + yystos[yystate], yyvsp); + YYPOPSTACK (1); + yystate = *yyssp; + YY_STACK_PRINT (yyss, yyssp); + } + + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END + + + /* Shift the error token. */ + YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); + + yystate = yyn; + goto yynewstate; + + +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +#if !defined yyoverflow || YYERROR_VERBOSE +/*-------------------------------------------------. +| yyexhaustedlab -- memory exhaustion comes here. | +`-------------------------------------------------*/ +yyexhaustedlab: + yyerror (YY_("memory exhausted")); + yyresult = 2; + /* Fall through. */ +#endif + +yyreturn: + if (yychar != YYEMPTY) + { + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE (yychar); + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + } + /* Do not reclaim the symbols of the rule whose action triggered + this YYABORT or YYACCEPT. */ + YYPOPSTACK (yylen); + YY_STACK_PRINT (yyss, yyssp); + while (yyssp != yyss) + { + yydestruct ("Cleanup: popping", + yystos[*yyssp], yyvsp); + YYPOPSTACK (1); + } +#ifndef yyoverflow + if (yyss != yyssa) + YYSTACK_FREE (yyss); +#endif +#if YYERROR_VERBOSE + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); +#endif + return yyresult; +} diff --git a/src/webserver/src/php_parser.h b/src/webserver/src/php_parser.h index 5236cf73..a9863e1d 100644 --- a/src/webserver/src/php_parser.h +++ b/src/webserver/src/php_parser.h @@ -1,9 +1,8 @@ -/* A Bison parser, made by GNU Bison 2.4.2. */ +/* A Bison parser, made by GNU Bison 3.0.4. */ -/* Skeleton interface for Bison's Yacc-like parsers in C +/* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software - Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,128 +30,135 @@ This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ +#ifndef YY_PHP_PHP_PARSER_H_INCLUDED +# define YY_PHP_PHP_PARSER_H_INCLUDED +/* Debug traces. */ +#ifndef YYDEBUG +# define YYDEBUG 1 +#endif +#if YYDEBUG +extern int phpdebug; +#endif -/* Tokens. */ +/* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - FNUMBER = 258, - DNUMBER = 259, - STRING = 260, - IDENT = 261, - VARIABLE = 262, - T_ECHO = 263, - EXIT = 264, - IF = 265, - DO = 266, - WHILE = 267, - ENDWHILE = 268, - FOR = 269, - ENDFOR = 270, - FOREACH = 271, - ENDFOREACH = 272, - DECLARE = 273, - ENDDECLARE = 274, - AS = 275, - CONST = 276, - GLOBAL = 277, - UNSET = 278, - ISSET = 279, - EMPTY = 280, - SWITCH = 281, - ENDSWITCH = 282, - CASE = 283, - DEFAULT = 284, - BREAK = 285, - CONTINUE = 286, - FUNCTION = 287, - RETURN = 288, - CLASS = 289, - INTERFACE = 290, - EXTENDS = 291, - IMPLEMENTS = 292, - OBJECT_OPERATOR = 293, - HASH_ASSIGN = 294, - LIST = 295, - ARRAY = 296, - CLASS_SCOPE = 297, - PRINT = 298, - SR_EQ = 299, - SL_EQ = 300, - XOR_EQ = 301, - OR_EQ = 302, - AND_EQ = 303, - MOD_EQ = 304, - CONCAT_EQ = 305, - DIV_EQ = 306, - MUL_EQ = 307, - MINUS_EQ = 308, - PLUS_EQ = 309, - LOG_OR = 310, - LOG_XOR = 311, - LOG_AND = 312, - BOOLEAN_OR = 313, - BOOLEAN_AND = 314, - IS_NOIDENTICAL = 315, - IS_IDENTICAL = 316, - IS_NOEQUAL = 317, - IS_EQ = 318, - IS_GREATER_OR_EQ = 319, - IS_SMALLER_OR_EQ = 320, - SR = 321, - SL = 322, - INSTANCEOF = 323, - UNSET_CAST = 324, - BOOL_CAST = 325, - OBJECT_CAST = 326, - ARRAY_CAST = 327, - STRING_CAST = 328, - DOUBLE_CAST = 329, - INT_CAST = 330, - DEC = 331, - INC = 332, - CLONE = 333, - NEW = 334, - ELSEIF = 335, - ELSE = 336, - ENDIF = 337, - PUBLIC = 338, - PROTECTED = 339, - PRIVATE = 340, - FINAL = 341, - ABSTRACT = 342, - STATIC = 343, - START_SCRIPT = 344, - END_SCRIPT = 345 - }; + enum yytokentype + { + FNUMBER = 258, + DNUMBER = 259, + STRING = 260, + IDENT = 261, + VARIABLE = 262, + T_ECHO = 263, + EXIT = 264, + IF = 265, + DO = 266, + WHILE = 267, + ENDWHILE = 268, + FOR = 269, + ENDFOR = 270, + FOREACH = 271, + ENDFOREACH = 272, + DECLARE = 273, + ENDDECLARE = 274, + AS = 275, + CONST = 276, + GLOBAL = 277, + UNSET = 278, + ISSET = 279, + EMPTY = 280, + SWITCH = 281, + ENDSWITCH = 282, + CASE = 283, + DEFAULT = 284, + BREAK = 285, + CONTINUE = 286, + FUNCTION = 287, + RETURN = 288, + CLASS = 289, + INTERFACE = 290, + EXTENDS = 291, + IMPLEMENTS = 292, + OBJECT_OPERATOR = 293, + HASH_ASSIGN = 294, + LIST = 295, + ARRAY = 296, + CLASS_SCOPE = 297, + PRINT = 298, + PLUS_EQ = 299, + MINUS_EQ = 300, + MUL_EQ = 301, + DIV_EQ = 302, + CONCAT_EQ = 303, + MOD_EQ = 304, + AND_EQ = 305, + OR_EQ = 306, + XOR_EQ = 307, + SL_EQ = 308, + SR_EQ = 309, + LOG_OR = 310, + LOG_XOR = 311, + LOG_AND = 312, + BOOLEAN_OR = 313, + BOOLEAN_AND = 314, + IS_EQ = 315, + IS_NOEQUAL = 316, + IS_IDENTICAL = 317, + IS_NOIDENTICAL = 318, + IS_SMALLER_OR_EQ = 319, + IS_GREATER_OR_EQ = 320, + SL = 321, + SR = 322, + INSTANCEOF = 323, + INC = 324, + DEC = 325, + INT_CAST = 326, + DOUBLE_CAST = 327, + STRING_CAST = 328, + ARRAY_CAST = 329, + OBJECT_CAST = 330, + BOOL_CAST = 331, + UNSET_CAST = 332, + NEW = 333, + CLONE = 334, + ELSEIF = 335, + ELSE = 336, + ENDIF = 337, + STATIC = 338, + ABSTRACT = 339, + FINAL = 340, + PRIVATE = 341, + PROTECTED = 342, + PUBLIC = 343, + START_SCRIPT = 344, + END_SCRIPT = 345 + }; #endif - - +/* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -{ -/* Line 1685 of yacc.c */ -#line 67 "php_parser.y" +union YYSTYPE +{ +#line 67 "php_parser.y" /* yacc.c:1909 */ PHP_SYN_NODE *syn_node; PHP_EXP_NODE *exp_node; char str_val[256]; +#line 152 "php_parser.h" /* yacc.c:1909 */ +}; - -/* Line 1685 of yacc.c */ -#line 150 "php_parser.h" -} YYSTYPE; +typedef union YYSTYPE YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif + extern YYSTYPE phplval; +int phpparse (void); +#endif /* !YY_PHP_PHP_PARSER_H_INCLUDED */ diff --git a/unittests/Makefile.in b/unittests/Makefile.in index 8b47555c..7c511b74 100644 --- a/unittests/Makefile.in +++ b/unittests/Makefile.in @@ -285,9 +285,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -368,8 +365,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/unittests/muleunit/Makefile.in b/unittests/muleunit/Makefile.in index 72bc5671..2fbd3d2f 100644 --- a/unittests/muleunit/Makefile.in +++ b/unittests/muleunit/Makefile.in @@ -292,9 +292,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -375,8 +372,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ diff --git a/unittests/tests/Makefile.in b/unittests/tests/Makefile.in index 0da39b38..ffff4a7b 100644 --- a/unittests/tests/Makefile.in +++ b/unittests/tests/Makefile.in @@ -563,9 +563,6 @@ KDE_MODULE_PATH = @KDE_MODULE_PATH@ KDE_SERVICE_PATH = @KDE_SERVICE_PATH@ LD = @LD@ LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ @@ -646,8 +643,6 @@ WX_VERSION_MAJOR = @WX_VERSION_MAJOR@ WX_VERSION_MICRO = @WX_VERSION_MICRO@ WX_VERSION_MINOR = @WX_VERSION_MINOR@ XGETTEXT = @XGETTEXT@ -YACC = @YACC@ -YFLAGS = @YFLAGS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LDFLAGS = @ZLIB_LDFLAGS@ ZLIB_LIBS = @ZLIB_LIBS@ -- 2.11.4.GIT