⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlparser.c

📁 将HTML转换为TXT文件的程序
💻 C
📖 第 1 页 / 共 5 页
字号:
#define YY_HTMLParser_h_included/*  A Bison parser, made from HTMLParser.y  */#line 1 "/usr/local/lib/bison.cc"/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  *//* Skeleton output parser for bison,   Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman   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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.  *//* HEADER SECTION */#ifndef _MSDOS#ifdef MSDOS#define _MSDOS#endif#endif/* turboc */#ifdef __MSDOS__#ifndef _MSDOS#define _MSDOS#endif#endif#ifndef alloca#ifdef __GNUC__#define alloca __builtin_alloca#else /* not GNU C.  */#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc)#include <alloca.h>#else /* not sparc */#if defined (_MSDOS)#include <malloc.h>#ifndef __TURBOC__/* MS C runtime lib */#define alloca _alloca#endif#else /* not MSDOS, or __TURBOC__ */#if defined(_AIX)#include <malloc.h> #pragma alloca#endif /* not _AIX */#endif /* not MSDOS, or __TURBOC__ */#endif /* not sparc.  */#endif /* not GNU C.  */#endif /* alloca not defined.  */#ifdef c_plusplus#ifndef __cplusplus#define __cplusplus#endif#endif#ifdef __cplusplus#ifndef YY_USE_CLASS#define YY_USE_CLASS#endif#else#ifndef __STDC__#define const#endif#endif#include <stdio.h>#define YYBISON 1  /* #line 70 "/usr/local/lib/bison.cc" */#define YY_HTMLParser_PURE #define YY_HTMLParser_DEBUG  1#line 45 "HTMLParser.y"/* ------------------------------------------------------------------------- */#ident "$Id: HTMLParser.y,v 1.14 1999/10/26 10:56:55 arno Exp $"#include "html.h"#include "HTMLParser.h"// MIPS machines don't have "alloca()", so disable stack realloc'ing.#ifdef mips#define yyoverflow yyerror("parser stack overflow"), (void)#endif/* ------------------------------------------------------------------------- */#define YY_HTMLParser_LEX_BODY  = 0#define YY_HTMLParser_ERROR_BODY  = 0#define YY_HTMLParser_MEMBERS \  virtual ~HTMLParser(); \  virtual void process(const Document &) = 0;\  virtual bool read_cdata(const char *terminal, string *) = 0;\  int list_nesting;#define YY_HTMLParser_CONSTRUCTOR_INIT  : list_nesting(0)#line 74 "HTMLParser.y"typedef union {  Document                   *document;  Element                    *element;  list<auto_ptr<Element> >   *element_list;  PCData                     *pcdata;  string                     *strinG;  list<TagAttribute>         *tag_attributes;  int                        inT;  list<auto_ptr<TableRow> >  *table_rows;  list<auto_ptr<TableCell> > *table_cells;  ListItem                   *list_item;  list<auto_ptr<ListItem> >  *list_items;  Caption                    *caption;  Heading                    *heading;  list<auto_ptr<Option> >    *option_list;  Option                     *option;  DefinitionList             *definition_list;  list<auto_ptr<DefinitionListItem> > *definition_list_item_list;  TermName                   *term_name;  TermDefinition             *term_definition;  Preformatted               *preformatted;  Address                    *address;  list<auto_ptr<list<TagAttribute> > > *tag_attributes_list;} yy_HTMLParser_stype;#define YY_HTMLParser_STYPE yy_HTMLParser_stype#line 70 "/usr/local/lib/bison.cc"/* %{ and %header{ and %union, during decl */#define YY_HTMLParser_BISON 1#ifndef YY_HTMLParser_COMPATIBILITY#ifndef YY_USE_CLASS#define  YY_HTMLParser_COMPATIBILITY 1#else#define  YY_HTMLParser_COMPATIBILITY 0#endif#endif#if YY_HTMLParser_COMPATIBILITY != 0/* backward compatibility */#ifdef YYLTYPE#ifndef YY_HTMLParser_LTYPE#define YY_HTMLParser_LTYPE YYLTYPE#endif#endif#ifdef YYSTYPE#ifndef YY_HTMLParser_STYPE #define YY_HTMLParser_STYPE YYSTYPE#endif#endif#ifdef YYDEBUG#ifndef YY_HTMLParser_DEBUG#define  YY_HTMLParser_DEBUG YYDEBUG#endif#endif#ifdef YY_HTMLParser_STYPE#ifndef yystype#define yystype YY_HTMLParser_STYPE#endif#endif#endif#ifndef YY_HTMLParser_PURE/* #line 105 "/usr/local/lib/bison.cc" */#line 105 "/usr/local/lib/bison.cc"/*  YY_HTMLParser_PURE */#endif/* section apres lecture def, avant lecture grammaire S2 *//* #line 109 "/usr/local/lib/bison.cc" */#line 109 "/usr/local/lib/bison.cc"/* prefix */#ifndef YY_HTMLParser_DEBUG/* #line 111 "/usr/local/lib/bison.cc" */#line 111 "/usr/local/lib/bison.cc"/* YY_HTMLParser_DEBUG */#endif#ifndef YY_HTMLParser_LSP_NEEDED/* #line 116 "/usr/local/lib/bison.cc" */#line 116 "/usr/local/lib/bison.cc" /* YY_HTMLParser_LSP_NEEDED*/#endif/* DEFAULT LTYPE*/#ifdef YY_HTMLParser_LSP_NEEDED#ifndef YY_HTMLParser_LTYPEtypedef  struct yyltype    {      int timestamp;      int first_line;      int first_column;      int last_line;      int last_column;      char *text;   }  yyltype;#define YY_HTMLParser_LTYPE yyltype#endif#endif/* DEFAULT STYPE*/      /* We used to use `unsigned long' as YY_HTMLParser_STYPE on MSDOS,	 but it seems better to be consistent.	 Most programs should declare their own type anyway.  */#ifndef YY_HTMLParser_STYPE#define YY_HTMLParser_STYPE int#endif/* DEFAULT MISCELANEOUS */#ifndef YY_HTMLParser_PARSE#define YY_HTMLParser_PARSE yyparse#endif#ifndef YY_HTMLParser_LEX#define YY_HTMLParser_LEX yylex#endif#ifndef YY_HTMLParser_LVAL#define YY_HTMLParser_LVAL yylval#endif#ifndef YY_HTMLParser_LLOC#define YY_HTMLParser_LLOC yylloc#endif#ifndef YY_HTMLParser_CHAR#define YY_HTMLParser_CHAR yychar#endif#ifndef YY_HTMLParser_NERRS#define YY_HTMLParser_NERRS yynerrs#endif#ifndef YY_HTMLParser_DEBUG_FLAG#define YY_HTMLParser_DEBUG_FLAG yydebug#endif#ifndef YY_HTMLParser_ERROR#define YY_HTMLParser_ERROR yyerror#endif#ifndef YY_HTMLParser_PARSE_PARAM#ifndef __STDC__#ifndef __cplusplus#ifndef YY_USE_CLASS#define YY_HTMLParser_PARSE_PARAM#ifndef YY_HTMLParser_PARSE_PARAM_DEF#define YY_HTMLParser_PARSE_PARAM_DEF#endif#endif#endif#endif#ifndef YY_HTMLParser_PARSE_PARAM#define YY_HTMLParser_PARSE_PARAM void#endif#endif/* TOKEN C */#if YY_HTMLParser_COMPATIBILITY != 0/* backward compatibility */#ifdef YY_HTMLParser_LTYPE#ifndef YYLTYPE#define YYLTYPE YY_HTMLParser_LTYPE#else/* WARNING obsolete !!! user defined YYLTYPE not reported into generated header */#endif#endif#ifndef YYSTYPE#define YYSTYPE YY_HTMLParser_STYPE#else/* WARNING obsolete !!! user defined YYSTYPE not reported into generated header */#endif#ifdef YY_HTMLParser_PURE#ifndef YYPURE#define YYPURE YY_HTMLParser_PURE#endif#endif#ifdef YY_HTMLParser_DEBUG#ifndef YYDEBUG#define YYDEBUG YY_HTMLParser_DEBUG #endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -