/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/htmlparse.c File Reference

#include "render.h"
#include "htmltable.h"
#include "htmllex.h"

Include dependency graph for htmlparse.c:

Go to the source code of this file.

Data Structures

struct  sfont_t
struct  fitem
struct  fpara
union  YYSTYPE
union  htmlalloc

Defines

#define YYBISON   1
#define YYBISON_VERSION   "2.3"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   0
#define YYLSP_NEEDED   0
#define T_end_br   258
#define T_end_img   259
#define T_row   260
#define T_end_row   261
#define T_html   262
#define T_end_html   263
#define T_end_table   264
#define T_end_cell   265
#define T_end_font   266
#define T_string   267
#define T_error   268
#define T_BR   269
#define T_br   270
#define T_IMG   271
#define T_img   272
#define T_table   273
#define T_cell   274
#define T_font   275
#define YYDEBUG   0
#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define htmlstype   YYSTYPE
#define YYSTYPE_IS_DECLARED   1
#define YYSTYPE_IS_TRIVIAL   1
#define YYSIZE_T   unsigned int
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YY_(msgid)   msgid
#define YYUSE(e)   ((void) (e))
#define YYID(n)   (n)
#define YYSTACK_ALLOC   YYMALLOC
#define YYSTACK_FREE   YYFREE
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
#define YYMALLOC   malloc
#define YYFREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union htmlalloc) - 1)
#define YYSTACK_BYTES(N)
#define YYCOPY(To, From, Count)
#define YYSTACK_RELOCATE(Stack)
#define YYFINAL   17
#define YYLAST   61
#define YYNTOKENS   21
#define YYNNTS   23
#define YYNRULES   38
#define YYNSTATES   59
#define YYUNDEFTOK   2
#define YYMAXUTOK   275
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? htmltranslate[YYX] : YYUNDEFTOK)
#define YYPACT_NINF   -9
#define YYTABLE_NINF   -36
#define htmlerrok   (htmlerrstatus = 0)
#define htmlclearin   (htmlchar = YYEMPTY)
#define YYEMPTY   (-2)
#define YYEOF   0
#define YYACCEPT   goto htmlacceptlab
#define YYABORT   goto htmlabortlab
#define YYERROR   goto htmlerrorlab
#define YYFAIL   goto htmlerrlab
#define YYRECOVERING()   (!!htmlerrstatus)
#define YYBACKUP(Token, Value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYRHSLOC(Rhs, K)   ((Rhs)[K])
#define YYLLOC_DEFAULT(Current, Rhs, N)
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
#define YYLEX   htmllex ()
#define YYDPRINTF(Args)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#define YYINITDEPTH   200
#define YYMAXDEPTH   10000
#define YYPOPSTACK(N)   (htmlvsp -= (N), htmlssp -= (N))

Typedefs

typedef unsigned char htmltype_uint8
typedef short int htmltype_int8
typedef unsigned short int htmltype_uint16
typedef short int htmltype_int16

Enumerations

enum  htmltokentype {
  T_end_br = 258, T_end_img = 259, T_row = 260, T_end_row = 261,
  T_html = 262, T_end_html = 263, T_end_table = 264, T_end_cell = 265,
  T_end_font = 266, T_string = 267, T_error = 268, T_BR = 269,
  T_br = 270, T_IMG = 271, T_img = 272, T_table = 273,
  T_cell = 274, T_font = 275, T_end_br = 258, T_end_img = 259,
  T_row = 260, T_end_row = 261, T_html = 262, T_end_html = 263,
  T_end_table = 264, T_end_cell = 265, T_end_font = 266, T_string = 267,
  T_error = 268, T_BR = 269, T_br = 270, T_IMG = 271,
  T_img = 272, T_table = 273, T_cell = 274, T_font = 275
}

Functions

int htmlparse (void)
htmllabel_tparseHTML (char *txt, int *warn, int charset)

Variables

int htmlchar
YYSTYPE htmllval
int htmlnerrs


Define Documentation

#define htmlclearin   (htmlchar = YYEMPTY)

Definition at line 1104 of file htmlparse.c.

#define htmlerrok   (htmlerrstatus = 0)

Definition at line 1103 of file htmlparse.c.

#define htmlstype   YYSTYPE

Definition at line 664 of file htmlparse.c.

#define T_br   270

Definition at line 102 of file htmlparse.c.

#define T_BR   269

Definition at line 101 of file htmlparse.c.

#define T_cell   274

Definition at line 106 of file htmlparse.c.

#define T_end_br   258

Definition at line 90 of file htmlparse.c.

#define T_end_cell   265

Definition at line 97 of file htmlparse.c.

#define T_end_font   266

Definition at line 98 of file htmlparse.c.

#define T_end_html   263

Definition at line 95 of file htmlparse.c.

#define T_end_img   259

Definition at line 91 of file htmlparse.c.

#define T_end_row   261

Definition at line 93 of file htmlparse.c.

#define T_end_table   264

Definition at line 96 of file htmlparse.c.

#define T_error   268

Definition at line 100 of file htmlparse.c.

Referenced by htmllex().

#define T_font   275

Definition at line 107 of file htmlparse.c.

#define T_html   262

Definition at line 94 of file htmlparse.c.

#define T_img   272

Definition at line 104 of file htmlparse.c.

#define T_IMG   271

Definition at line 103 of file htmlparse.c.

#define T_row   260

Definition at line 92 of file htmlparse.c.

#define T_string   267

Definition at line 99 of file htmlparse.c.

#define T_table   273

Definition at line 105 of file htmlparse.c.

#define YY_ ( msgid   )     msgid

Definition at line 732 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YY_LOCATION_PRINT ( File,
Loc   )     ((void) 0)

Definition at line 1180 of file htmlparse.c.

#define YY_REDUCE_PRINT ( Rule   ) 

Definition at line 1350 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YY_STACK_PRINT ( Bottom,
Top   ) 

Definition at line 1349 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YY_SYMBOL_PRINT ( Title,
Type,
Value,
Location   ) 

Definition at line 1348 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYABORT   goto htmlabortlab

Definition at line 1109 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYACCEPT   goto htmlacceptlab

Definition at line 1108 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYBACKUP ( Token,
Value   ) 

Value:

do                                                              \
  if (htmlchar == YYEMPTY && htmllen == 1)                              \
    {                                                           \
      htmlchar = (Token);                                               \
      htmllval = (Value);                                               \
      htmltoken = YYTRANSLATE (htmlchar);                               \
      YYPOPSTACK (1);                                           \
      goto htmlbackup;                                          \
    }                                                           \
  else                                                          \
    {                                                           \
      htmlerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
    }                                                           \
while (YYID (0))

Definition at line 1121 of file htmlparse.c.

#define YYBISON   1

Definition at line 47 of file htmlparse.c.

#define YYBISON_VERSION   "2.3"

Definition at line 50 of file htmlparse.c.

#define YYCOPY ( To,
From,
Count   ) 

Value:

do                                      \
        {                                       \
          YYSIZE_T htmli;                               \
          for (htmli = 0; htmli < (Count); htmli++)     \
            (To)[htmli] = (From)[htmli];                \
        }                                       \
      while (YYID (0))

Definition at line 858 of file htmlparse.c.

#define YYDEBUG   0

Definition at line 634 of file htmlparse.c.

#define YYDPRINTF ( Args   ) 

Definition at line 1347 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYEMPTY   (-2)

Definition at line 1105 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYEOF   0

Definition at line 1106 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYERRCODE   256

Definition at line 1140 of file htmlparse.c.

#define YYERROR   goto htmlerrorlab

Definition at line 1110 of file htmlparse.c.

#define YYERROR_VERBOSE   0

Definition at line 642 of file htmlparse.c.

#define YYFAIL   goto htmlerrlab

Definition at line 1117 of file htmlparse.c.

#define YYFINAL   17

Definition at line 888 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYFREE   free

Definition at line 821 of file htmlparse.c.

#define YYID (  )     (n)

Definition at line 745 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYINITDEPTH   200

Definition at line 1356 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYLAST   61

Definition at line 890 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYLEX   htmllex ()

Definition at line 1190 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYLLOC_DEFAULT ( Current,
Rhs,
 ) 

Value:

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))

Definition at line 1149 of file htmlparse.c.

#define YYLSP_NEEDED   0

Definition at line 59 of file htmlparse.c.

#define YYMALLOC   malloc

Definition at line 814 of file htmlparse.c.

#define YYMAXDEPTH   10000

Definition at line 1367 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYMAXUTOK   275

Definition at line 903 of file htmlparse.c.

#define YYNNTS   23

Definition at line 895 of file htmlparse.c.

#define YYNRULES   38

Definition at line 897 of file htmlparse.c.

#define YYNSTATES   59

Definition at line 899 of file htmlparse.c.

#define YYNTOKENS   21

Definition at line 893 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYPACT_NINF   -9

Definition at line 1045 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYPOPSTACK (  )     (htmlvsp -= (N), htmlssp -= (N))

Referenced by agparse(), htmlparse(), and yyparse().

#define YYPURE   0

Definition at line 56 of file htmlparse.c.

 
#define YYRECOVERING (  )     (!!htmlerrstatus)

Definition at line 1119 of file htmlparse.c.

#define YYRHSLOC ( Rhs,
 )     ((Rhs)[K])

Definition at line 1147 of file htmlparse.c.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 722 of file htmlparse.c.

#define YYSIZE_T   unsigned int

Definition at line 718 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 53 of file htmlparse.c.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 800 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 803 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYSTACK_BYTES (  ) 

Value:

((N) * (sizeof (htmltype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

Definition at line 847 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYSTACK_FREE   YYFREE

Definition at line 801 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union htmlalloc) - 1)

Definition at line 843 of file htmlparse.c.

#define YYSTACK_RELOCATE ( Stack   ) 

Value:

do                                                                      \
      {                                                                 \
        YYSIZE_T htmlnewbytes;                                          \
        YYCOPY (&htmlptr->Stack, Stack, htmlsize);                              \
        Stack = &htmlptr->Stack;                                                \
        htmlnewbytes = htmlstacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        htmlptr += htmlnewbytes / sizeof (*htmlptr);                            \
      }                                                                 \
    while (YYID (0))

Definition at line 874 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYSTYPE_IS_DECLARED   1

Definition at line 665 of file htmlparse.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 666 of file htmlparse.c.

#define YYTABLE_NINF   -36

Definition at line 1068 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYTERROR   1

Definition at line 1139 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYTOKEN_TABLE   0

Definition at line 647 of file htmlparse.c.

#define YYTRANSLATE ( YYX   )     ((unsigned int) (YYX) <= YYMAXUTOK ? htmltranslate[YYX] : YYUNDEFTOK)

Definition at line 905 of file htmlparse.c.

Referenced by agparse(), htmlparse(), and yyparse().

#define YYUNDEFTOK   2

Definition at line 902 of file htmlparse.c.

#define YYUSE (  )     ((void) (e))

Definition at line 738 of file htmlparse.c.


Typedef Documentation

typedef short int htmltype_int16

Definition at line 705 of file htmlparse.c.

typedef short int htmltype_int8

Definition at line 693 of file htmlparse.c.

typedef unsigned short int htmltype_uint16

Definition at line 699 of file htmlparse.c.

typedef unsigned char htmltype_uint8

Definition at line 684 of file htmlparse.c.


Enumeration Type Documentation

enum htmltokentype

Enumerator:
T_end_br 
T_end_img 
T_row 
T_end_row 
T_html 
T_end_html 
T_end_table 
T_end_cell 
T_end_font 
T_string 
T_error 
T_BR 
T_br 
T_IMG 
T_img 
T_table 
T_cell 
T_font 
T_end_br 
T_end_img 
T_row 
T_end_row 
T_html 
T_end_html 
T_end_table 
T_end_cell 
T_end_font 
T_string 
T_error 
T_BR 
T_br 
T_IMG 
T_img 
T_table 
T_cell 
T_font 

Definition at line 68 of file htmlparse.c.


Function Documentation

int htmlparse ( void   ) 

Definition at line 1665 of file htmlparse.c.

References agxbuse, dtopen(), Dtqueue, HTML_IMAGE, HTML_TBL, HTML_TEXT, htmlerror(), htmllval, htmlalloc::htmlvs, YYSTYPE::i, YYSTYPE::img, YYSTYPE::tbl, YYSTYPE::txt, YY_, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, YYDPRINTF, YYEMPTY, YYEOF, YYFINAL, YYID, YYINITDEPTH, YYLAST, YYLEX, YYMAXDEPTH, YYNTOKENS, YYPACT_NINF, YYPOPSTACK, YYSIZE_T, YYSTACK_ALLOC, YYSTACK_ALLOC_MAXIMUM, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, YYTABLE_NINF, YYTERROR, and YYTRANSLATE.

Referenced by parseHTML().

htmllabel_t* parseHTML ( char *  txt,
int *  warn,
int  charset 
)

Definition at line 2270 of file htmlparse.c.

Referenced by make_html_label().


Variable Documentation

Dt_t* fitemList

Definition at line 133 of file htmlparse.c.

sfont_t* fontstack

Definition at line 136 of file htmlparse.c.

Dt_t* fparaList

Definition at line 134 of file htmlparse.c.

int htmlchar

Definition at line 1634 of file htmlparse.c.

YYSTYPE htmllval

Definition at line 1637 of file htmlparse.c.

Referenced by htmlparse().

int htmlnerrs

Definition at line 1640 of file htmlparse.c.

htmllabel_t* lbl

Definition at line 128 of file htmlparse.c.

Referenced by html_port(), make_html_label(), and write_plain().

agxbuf* str

Definition at line 135 of file htmlparse.c.

Referenced by agparse(), common_init_node(), parseHTML(), safefile(), and scan_graph_mode().

htmltbl_t* tblstack

Definition at line 129 of file htmlparse.c.


Generated on Mon Mar 31 19:04:36 2008 for Graphviz by  doxygen 1.5.1