Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
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  fspan
 
union  YYSTYPE
 
union  htmlalloc
 

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "2.7"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define YY_NULL   0
 
#define YYERROR_VERBOSE   0
 
#define YY_YY_Y_TAB_H_INCLUDED
 
#define YYDEBUG   0
 
#define YYTOKENTYPE
 
#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_n_italic   269
 
#define T_n_bold   270
 
#define T_n_underline   271
 
#define T_n_overline   272
 
#define T_n_sup   273
 
#define T_n_sub   274
 
#define T_n_s   275
 
#define T_HR   276
 
#define T_hr   277
 
#define T_end_hr   278
 
#define T_VR   279
 
#define T_vr   280
 
#define T_end_vr   281
 
#define T_BR   282
 
#define T_br   283
 
#define T_IMG   284
 
#define T_img   285
 
#define T_table   286
 
#define T_cell   287
 
#define T_font   288
 
#define T_italic   289
 
#define T_bold   290
 
#define T_underline   291
 
#define T_overline   292
 
#define T_sup   293
 
#define T_sub   294
 
#define T_s   295
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define htmlstype   YYSTYPE /* obsolescent; will be withdrawn */
 
#define YYSTYPE_IS_DECLARED   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_NEEDED   1
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYFINAL   31
 
#define YYLAST   271
 
#define YYNTOKENS   41
 
#define YYNNTS   39
 
#define YYNRULES   69
 
#define YYNSTATES   116
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   295
 
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? htmltranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -82
 
#define YYTABLE_NINF   -63
 
#define htmlpact_value_is_default(Yystate)   (!!((Yystate) == (-82)))
 
#define htmltable_value_is_error(Yytable_value)   YYID (0)
 
#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 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 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_INITIAL_VALUE(Value)   /* Nothing. */
 
#define YYPOPSTACK(N)   (htmlvsp -= (N), htmlssp -= (N))
 

Typedefs

typedef struct sfont_t sfont_t
 
typedef union YYSTYPE YYSTYPE
 
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_n_italic = 269,
  T_n_bold = 270, T_n_underline = 271, T_n_overline = 272, T_n_sup = 273,
  T_n_sub = 274, T_n_s = 275, T_HR = 276, T_hr = 277,
  T_end_hr = 278, T_VR = 279, T_vr = 280, T_end_vr = 281,
  T_BR = 282, T_br = 283, T_IMG = 284, T_img = 285,
  T_table = 286, T_cell = 287, T_font = 288, T_italic = 289,
  T_bold = 290, T_underline = 291, T_overline = 292, T_sup = 293,
  T_sub = 294, T_s = 295, 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_n_italic = 269, T_n_bold = 270, T_n_underline = 271,
  T_n_overline = 272, T_n_sup = 273, T_n_sub = 274, T_n_s = 275,
  T_HR = 276, T_hr = 277, T_end_hr = 278, T_VR = 279,
  T_vr = 280, T_end_vr = 281, T_BR = 282, T_br = 283,
  T_IMG = 284, T_img = 285, T_table = 286, T_cell = 287,
  T_font = 288, T_italic = 289, T_bold = 290, T_underline = 291,
  T_overline = 292, T_sup = 293, T_sub = 294, T_s = 295
}
 

Functions

int htmlparse (void)
 
 YY_SYMBOL_PRINT (htmlmsg, htmltype, htmlvaluep, htmllocationp)
 
 switch (htmltype)
 
YYSTYPE htmllval YY_INITIAL_VALUE (htmlval_default)
 
 YYDPRINTF ((stderr,"Starting parse\n"))
 
 if (htmlss+htmlstacksize-1<=htmlssp)
 
 YYDPRINTF ((stderr,"Entering state %d\n", htmlstate))
 
 if (htmlchar==YYEMPTY)
 
 if (htmlchar<=YYEOF)
 
 YY_SYMBOL_PRINT ("Next token is", htmltoken,&htmllval,&htmllloc)
 
 if (htmln<=0)
 
 YY_SYMBOL_PRINT ("Shifting", htmltoken,&htmllval,&htmllloc)
 
 YY_REDUCE_PRINT (htmln)
 
 switch (htmln)
 
 YY_SYMBOL_PRINT ("-> $$ =", htmlr1[htmln],&htmlval,&htmlloc)
 
 YYPOPSTACK (htmllen)
 
 YY_STACK_PRINT (htmlss, htmlssp)
 
 if (!htmlerrstatus)
 
 if (htmlerrstatus==3)
 
 for (;;)
 
YY_IGNORE_MAYBE_UNINITIALIZED_END YY_SYMBOL_PRINT ("Shifting", htmlstos[htmln], htmlvsp, htmllsp)
 
 htmldestruct ("Cleanup: discarding lookahead", htmltoken,&htmllval)
 
 while (htmlssp!=htmlss)
 
 YYSTACK_FREE (htmlss)
 
return YYID (htmlresult)
 
htmllabel_tparseHTML (char *txt, int *warn, htmlenv_t *env)
 

Variables

YYSTYPE htmllval
 
int htmltype
 
YYSTYPEhtmlvaluep
 
int htmlchar = YYEMPTY
 
int htmlnerrs = 0
 
 int
 
int htmlerrstatus = 0
 
htmltype_int16 htmlssa [YYINITDEPTH]
 
htmltype_int16htmlss
 
htmltype_int16htmlssp = htmlss = htmlssa
 
YYSTYPE htmlvsa [YYINITDEPTH]
 
YYSTYPEhtmlvs
 
YYSTYPEhtmlvsp = htmlvs = htmlvsa
 
YYSIZE_T htmlstacksize = YYINITDEPTH
 
int htmln = htmltoken
 
int htmlresult = 2
 
int htmltoken = 0
 
YYSTYPE htmlval = htmlvsp[1-htmllen]
 
int htmllen = 0
 
 htmlstate = 0
 
goto htmlsetstate
 
htmlnewstate __pad0__
 
htmlsetstate __pad1__
 
 YYACCEPT
 
goto htmlbackup
 
htmlbackup __pad2__
 
goto htmldefault
 
 else
 
YY_IGNORE_MAYBE_UNINITIALIZED_END
goto 
htmlnewstate
 
htmldefault __pad3__
 
goto htmlerrlab
 
goto htmlreduce
 
htmlreduce __pad4__
 
htmlerrlab __pad5__
 
goto htmlerrlab1
 
htmlerrorlab __pad6__
 
htmlerrlab1 __pad7__
 
htmlacceptlab __pad8__
 
goto htmlreturn
 
htmlabortlab __pad9__
 
htmlexhaustedlab __pad10__
 
htmlreturn __pad11__
 

Macro Definition Documentation

#define htmlclearin   (htmlchar = YYEMPTY)

Definition at line 1161 of file htmlparse.c.

#define htmlerrok   (htmlerrstatus = 0)

Definition at line 1160 of file htmlparse.c.

#define htmlpact_value_is_default (   Yystate)    (!!((Yystate) == (-82)))

Definition at line 1104 of file htmlparse.c.

Referenced by for().

#define htmlstype   YYSTYPE /* obsolescent; will be withdrawn */

Definition at line 605 of file htmlparse.c.

#define htmltable_value_is_error (   Yytable_value)    YYID (0)

Definition at line 1107 of file htmlparse.c.

Referenced by if().

#define T_bold   290

Definition at line 577 of file htmlparse.c.

#define T_BR   282

Definition at line 569 of file htmlparse.c.

#define T_br   283

Definition at line 570 of file htmlparse.c.

#define T_cell   287

Definition at line 574 of file htmlparse.c.

#define T_end_br   258

Definition at line 545 of file htmlparse.c.

#define T_end_cell   265

Definition at line 552 of file htmlparse.c.

#define T_end_font   266

Definition at line 553 of file htmlparse.c.

#define T_end_hr   278

Definition at line 565 of file htmlparse.c.

#define T_end_html   263

Definition at line 550 of file htmlparse.c.

#define T_end_img   259

Definition at line 546 of file htmlparse.c.

#define T_end_row   261

Definition at line 548 of file htmlparse.c.

#define T_end_table   264

Definition at line 551 of file htmlparse.c.

#define T_end_vr   281

Definition at line 568 of file htmlparse.c.

#define T_error   268

Definition at line 555 of file htmlparse.c.

Referenced by htmllex().

#define T_font   288

Definition at line 575 of file htmlparse.c.

#define T_HR   276

Definition at line 563 of file htmlparse.c.

#define T_hr   277

Definition at line 564 of file htmlparse.c.

#define T_html   262

Definition at line 549 of file htmlparse.c.

#define T_IMG   284

Definition at line 571 of file htmlparse.c.

#define T_img   285

Definition at line 572 of file htmlparse.c.

#define T_italic   289

Definition at line 576 of file htmlparse.c.

#define T_n_bold   270

Definition at line 557 of file htmlparse.c.

#define T_n_italic   269

Definition at line 556 of file htmlparse.c.

#define T_n_overline   272

Definition at line 559 of file htmlparse.c.

#define T_n_s   275

Definition at line 562 of file htmlparse.c.

#define T_n_sub   274

Definition at line 561 of file htmlparse.c.

#define T_n_sup   273

Definition at line 560 of file htmlparse.c.

#define T_n_underline   271

Definition at line 558 of file htmlparse.c.

#define T_overline   292

Definition at line 579 of file htmlparse.c.

#define T_row   260

Definition at line 547 of file htmlparse.c.

#define T_s   295

Definition at line 582 of file htmlparse.c.

#define T_string   267

Definition at line 554 of file htmlparse.c.

#define T_sub   294

Definition at line 581 of file htmlparse.c.

#define T_sup   293

Definition at line 580 of file htmlparse.c.

#define T_table   286

Definition at line 573 of file htmlparse.c.

#define T_underline   291

Definition at line 578 of file htmlparse.c.

#define T_VR   279

Definition at line 566 of file htmlparse.c.

#define T_vr   280

Definition at line 567 of file htmlparse.c.

#define YY_ (   Msgid)    Msgid

Definition at line 687 of file htmlparse.c.

Referenced by if().

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 1685 of file htmlparse.c.

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 1686 of file htmlparse.c.

#define YY_INITIAL_VALUE (   Value)    /* Nothing. */

Definition at line 1689 of file htmlparse.c.

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

Definition at line 1211 of file htmlparse.c.

#define YY_NULL   0

Definition at line 474 of file htmlparse.c.

#define YY_REDUCE_PRINT (   Rule)

Definition at line 1384 of file htmlparse.c.

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Definition at line 1383 of file htmlparse.c.

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

Definition at line 1382 of file htmlparse.c.

#define YY_YY_Y_TAB_H_INCLUDED

Definition at line 489 of file htmlparse.c.

#define YYABORT   goto htmlabortlab

Definition at line 1166 of file htmlparse.c.

Referenced by for(), if(), and switch().

#define YYACCEPT   goto htmlacceptlab

Definition at line 1165 of file htmlparse.c.

#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
htmlchar = (Token); \
htmllval = (Value); \
goto htmlbackup; \
} \
{ \
htmlerror (YY_("syntax error: cannot back up")); \
} \
while (YYID (0))
#define YY_(Msgid)
Definition: htmlparse.c:687
#define YYID(N)
Definition: grammar.c:308
int htmllen
Definition: htmlparse.c:1767
goto htmlbackup
Definition: htmlparse.c:1858
htmltype_int16 * htmlssp
Definition: htmlparse.c:1739
int htmlchar
Definition: htmlparse.c:1681
#define YYPOPSTACK(N)
Definition: grammar.c:1303
else
Definition: grammar.c:1428
htmlstate
Definition: htmlparse.c:1775
#define YYERROR
Definition: htmlparse.c:1167
if(aagss+aagstacksize-1<=aagssp)
Definition: grammar.c:1332
#define YYEMPTY
Definition: htmlparse.c:1162
YYSTYPE htmllval
void htmlerror(const char *msg)
Definition: htmllex.c:64
while(aagssp!=aagss)
Definition: grammar.c:1921

Definition at line 1187 of file htmlparse.c.

#define YYBISON   1

Definition at line 44 of file htmlparse.c.

#define YYBISON_VERSION   "2.7"

Definition at line 47 of file htmlparse.c.

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T htmli; \
for (htmli = 0; htmli < (Count); htmli++) \
(Dst)[htmli] = (Src)[htmli]; \
} \
while (YYID (0))
#define YYID(N)
Definition: grammar.c:308
#define YYSIZE_T
Definition: htmlparse.c:673
for(;;)
Definition: grammar.c:1846
while(aagssp!=aagss)
Definition: grammar.c:1921

Definition at line 835 of file htmlparse.c.

#define YYCOPY_NEEDED   1

Definition at line 807 of file htmlparse.c.

#define YYDEBUG   0

Definition at line 492 of file htmlparse.c.

#define YYDPRINTF (   Args)

Definition at line 1381 of file htmlparse.c.

#define YYEMPTY   (-2)

Definition at line 1162 of file htmlparse.c.

Referenced by if().

#define YYEOF   0

Definition at line 1163 of file htmlparse.c.

Referenced by if().

#define YYERRCODE   256

Definition at line 1206 of file htmlparse.c.

#define YYERROR   goto htmlerrorlab

Definition at line 1167 of file htmlparse.c.

#define YYERROR_VERBOSE   0

Definition at line 483 of file htmlparse.c.

#define YYFAIL   goto htmlerrlab

Definition at line 1177 of file htmlparse.c.

#define YYFINAL   31

Definition at line 848 of file htmlparse.c.

#define YYFREE   free

Definition at line 777 of file htmlparse.c.

#define YYID (   N)    (N)

Definition at line 700 of file htmlparse.c.

#define YYINITDEPTH   200

Definition at line 1390 of file htmlparse.c.

#define YYLAST   271

Definition at line 850 of file htmlparse.c.

Referenced by for().

#define YYLEX   htmllex ()

Definition at line 1219 of file htmlparse.c.

Referenced by if().

#define YYMALLOC   malloc

Definition at line 770 of file htmlparse.c.

#define YYMAXDEPTH   10000

Definition at line 1401 of file htmlparse.c.

Referenced by if().

#define YYMAXUTOK   295

Definition at line 863 of file htmlparse.c.

#define YYNNTS   39

Definition at line 855 of file htmlparse.c.

#define YYNRULES   69

Definition at line 857 of file htmlparse.c.

#define YYNSTATES   116

Definition at line 859 of file htmlparse.c.

#define YYNTOKENS   41

Definition at line 853 of file htmlparse.c.

#define YYPACT_NINF   -82

Definition at line 1042 of file htmlparse.c.

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

Definition at line 1763 of file htmlparse.c.

#define YYPULL   1

Definition at line 59 of file htmlparse.c.

#define YYPURE   0

Definition at line 53 of file htmlparse.c.

#define YYPUSH   0

Definition at line 56 of file htmlparse.c.

#define YYRECOVERING ( )    (!!htmlerrstatus)

Definition at line 1185 of file htmlparse.c.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 677 of file htmlparse.c.

#define YYSIZE_T   unsigned int

Definition at line 673 of file htmlparse.c.

Referenced by if().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 50 of file htmlparse.c.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 756 of file htmlparse.c.

Referenced by if().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 759 of file htmlparse.c.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (htmltype_int16) + sizeof (YYSTYPE)) \
union YYSTYPE YYSTYPE
#define YYSTACK_GAP_MAXIMUM
Definition: htmlparse.c:799
short int htmltype_int16
Definition: htmlparse.c:660

Definition at line 803 of file htmlparse.c.

Referenced by if().

#define YYSTACK_FREE   YYFREE

Definition at line 757 of file htmlparse.c.

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

Definition at line 799 of file htmlparse.c.

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T htmlnewbytes; \
YYCOPY (&htmlptr->Stack_alloc, Stack, htmlsize); \
Stack = &htmlptr->Stack_alloc; \
htmlnewbytes = htmlstacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
htmlptr += htmlnewbytes / sizeof (*htmlptr); \
} \
while (YYID (0))
#define YYSTACK_GAP_MAXIMUM
Definition: htmlparse.c:799
#define YYID(N)
Definition: grammar.c:308
#define YYCOPY(Dst, Src, Count)
Definition: htmlparse.c:835
#define YYSIZE_T
Definition: htmlparse.c:673
YYSIZE_T htmlstacksize
Definition: htmlparse.c:1746
while(aagssp!=aagss)
Definition: grammar.c:1921

Definition at line 814 of file htmlparse.c.

Referenced by if().

#define YYSTYPE_IS_DECLARED   1

Definition at line 606 of file htmlparse.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 604 of file htmlparse.c.

#define YYTABLE_NINF   -63

Definition at line 1071 of file htmlparse.c.

#define YYTERROR   1

Definition at line 1205 of file htmlparse.c.

Referenced by for().

#define YYTOKENTYPE

Definition at line 500 of file htmlparse.c.

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

Definition at line 865 of file htmlparse.c.

#define YYUNDEFTOK   2

Definition at line 862 of file htmlparse.c.

#define YYUSE (   E)    ((void) (E))

Definition at line 693 of file htmlparse.c.

Typedef Documentation

typedef short int htmltype_int16

Definition at line 660 of file htmlparse.c.

typedef short int htmltype_int8

Definition at line 648 of file htmlparse.c.

typedef unsigned short int htmltype_uint16

Definition at line 654 of file htmlparse.c.

typedef unsigned char htmltype_uint8

Definition at line 639 of file htmlparse.c.

typedef struct sfont_t sfont_t
typedef union YYSTYPE YYSTYPE

Enumeration Type Documentation

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_n_italic 
T_n_bold 
T_n_underline 
T_n_overline 
T_n_sup 
T_n_sub 
T_n_s 
T_HR 
T_hr 
T_end_hr 
T_VR 
T_vr 
T_end_vr 
T_BR 
T_br 
T_IMG 
T_img 
T_table 
T_cell 
T_font 
T_italic 
T_bold 
T_underline 
T_overline 
T_sup 
T_sub 
T_s 
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_n_italic 
T_n_bold 
T_n_underline 
T_n_overline 
T_n_sup 
T_n_sub 
T_n_s 
T_HR 
T_hr 
T_end_hr 
T_VR 
T_vr 
T_end_vr 
T_BR 
T_br 
T_IMG 
T_img 
T_table 
T_cell 
T_font 
T_italic 
T_bold 
T_underline 
T_overline 
T_sup 
T_sub 
T_s 

Definition at line 503 of file htmlparse.c.

Function Documentation

for ( ;;  )
htmldestruct ( "Cleanup: discarding lookahead"  ,
htmltoken  ,
htmllval 
)

Referenced by for(), if(), and while().

int htmlparse ( void  )

Referenced by parseHTML().

if ( htmlss+htmlstacksize-1<=  htmlssp)
if ( htmlchar  = YYEMPTY)

Definition at line 1876 of file htmlparse.c.

References YYDPRINTF, and YYLEX.

if ( htmlchar<=  YYEOF)

Definition at line 1882 of file htmlparse.c.

References YYDPRINTF, and YYEOF.

if ( htmln<=  0)

Definition at line 1899 of file htmlparse.c.

References htmlerrlab, htmln, htmlreduce, and htmltable_value_is_error.

if ( htmlerrstatus)

Definition at line 2322 of file htmlparse.c.

References htmlerror(), htmlnerrs, YY_, YYSTACK_ALLOC, and YYSTACK_FREE.

if ( htmlerrstatus  = = 3)

Definition at line 2363 of file htmlparse.c.

References htmldestruct(), YYABORT, YYEMPTY, and YYEOF.

htmllabel_t* parseHTML ( char *  txt,
int warn,
htmlenv_t env 
)

Definition at line 2516 of file htmlparse.c.

Referenced by make_html_label().

switch ( htmltype  )

Definition at line 1669 of file htmlparse.c.

switch ( htmln  )
while ( htmlssp!  = htmlss)

Definition at line 2488 of file htmlparse.c.

References htmldestruct(), and YYPOPSTACK.

YYSTYPE htmllval YY_INITIAL_VALUE ( htmlval_default  )
YY_REDUCE_PRINT ( htmln  )
YY_STACK_PRINT ( htmlss  ,
htmlssp   
)
YY_SYMBOL_PRINT ( htmlmsg  ,
htmltype  ,
htmlvaluep  ,
htmllocationp   
)
YY_SYMBOL_PRINT ( "Next token is"  ,
htmltoken  ,
htmllval,
htmllloc 
)
YY_SYMBOL_PRINT ( "Shifting"  ,
htmltoken  ,
htmllval,
htmllloc 
)
YY_SYMBOL_PRINT ( )
YY_IGNORE_MAYBE_UNINITIALIZED_END YY_SYMBOL_PRINT ( "Shifting"  ,
htmlstos  [htmln],
htmlvsp  ,
htmllsp   
)
YYDPRINTF ( (stderr,"Starting parse\n")  )
YYDPRINTF ( (stderr,"Entering state %d\n", htmlstate)  )
return YYID ( htmlresult  )
YYPOPSTACK ( htmllen  )
YYSTACK_FREE ( htmlss  )

Variable Documentation

htmlnewstate __pad0__

Definition at line 1787 of file htmlparse.c.

htmlexhaustedlab __pad10__

Definition at line 2470 of file htmlparse.c.

htmlreturn __pad11__

Definition at line 2480 of file htmlparse.c.

htmlsetstate __pad1__

Definition at line 1790 of file htmlparse.c.

htmlbackup __pad2__

Definition at line 1869 of file htmlparse.c.

htmldefault __pad3__

Definition at line 1930 of file htmlparse.c.

htmlreduce __pad4__

Definition at line 1941 of file htmlparse.c.

htmlerrlab __pad5__

Definition at line 2319 of file htmlparse.c.

htmlerrorlab __pad6__

Definition at line 2396 of file htmlparse.c.

htmlerrlab1 __pad7__

Definition at line 2411 of file htmlparse.c.

htmlacceptlab __pad8__

Definition at line 2455 of file htmlparse.c.

htmlabortlab __pad9__

Definition at line 2462 of file htmlparse.c.

else
Initial value:
{
#define YYTRANSLATE(YYX)
Definition: htmlparse.c:865
int htmlchar
Definition: htmlparse.c:1681
int htmltoken
Definition: htmlparse.c:1751

Definition at line 1888 of file htmlparse.c.

Dt_t* fitemList

Definition at line 83 of file htmlparse.c.

sfont_t* fontstack

Definition at line 86 of file htmlparse.c.

Dt_t* fspanList

Definition at line 84 of file htmlparse.c.

GVC_t* gvc
goto htmlbackup

Definition at line 1858 of file htmlparse.c.

htmlchar = YYEMPTY

Definition at line 1681 of file htmlparse.c.

goto htmldefault

Definition at line 1871 of file htmlparse.c.

goto htmlerrlab

Definition at line 1932 of file htmlparse.c.

Referenced by if().

goto htmlerrlab1

Definition at line 2384 of file htmlparse.c.

htmlerrstatus = 0

Definition at line 1727 of file htmlparse.c.

htmllen = 0

Definition at line 1767 of file htmlparse.c.

YYSTYPE htmllval
htmln = htmltoken

Definition at line 1748 of file htmlparse.c.

Referenced by for(), and if().

htmlnerrs = 0

Definition at line 1696 of file htmlparse.c.

Referenced by if().

goto htmlnewstate

Definition at line 1923 of file htmlparse.c.

goto htmlreduce

Definition at line 1933 of file htmlparse.c.

Referenced by if().

htmlresult = 2

Definition at line 1749 of file htmlparse.c.

goto htmlreturn

Definition at line 2456 of file htmlparse.c.

goto htmlsetstate

Definition at line 1779 of file htmlparse.c.

htmltype_int16* htmlss

Definition at line 1738 of file htmlparse.c.

Referenced by if().

Definition at line 1737 of file htmlparse.c.

htmlssp = htmlss = htmlssa

Definition at line 1739 of file htmlparse.c.

Referenced by for().

htmlstacksize = YYINITDEPTH

Definition at line 1746 of file htmlparse.c.

else htmlstate = 0

Definition at line 1775 of file htmlparse.c.

Referenced by for().

int htmltoken = 0

Definition at line 1751 of file htmlparse.c.

int htmltype

Definition at line 1659 of file htmlparse.c.

htmlval = htmlvsp[1-htmllen]

Definition at line 1754 of file htmlparse.c.

YYSTYPE* htmlvaluep

Definition at line 1660 of file htmlparse.c.

YYSTYPE* htmlvs

Definition at line 1743 of file htmlparse.c.

Referenced by if().

YYSTYPE htmlvsa[YYINITDEPTH]

Definition at line 1742 of file htmlparse.c.

Definition at line 1744 of file htmlparse.c.

int
Initial value:
{
htmlstate
Definition: htmlparse.c:1775

Definition at line 1724 of file htmlparse.c.

Definition at line 81 of file htmlparse.c.

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

agxbuf* str
htmltbl_t* tblstack

Definition at line 82 of file htmlparse.c.

YYACCEPT

Definition at line 1856 of file htmlparse.c.