#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_t * | parseHTML (char *txt, int *warn, int charset) |
Variables | |
int | htmlchar |
YYSTYPE | htmllval |
int | htmlnerrs |
#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 |
#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 |
#define YY_LOCATION_PRINT | ( | File, | |||
Loc | ) | ((void) 0) |
Definition at line 1180 of file htmlparse.c.
#define YY_REDUCE_PRINT | ( | Rule | ) |
#define YY_STACK_PRINT | ( | Bottom, | |||
Top | ) |
#define YY_SYMBOL_PRINT | ( | Title, | |||
Type, | |||||
Value, | |||||
Location | ) |
#define YYABORT goto htmlabortlab |
#define YYACCEPT goto htmlacceptlab |
#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 | ) |
#define YYEMPTY (-2) |
#define YYEOF 0 |
#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 |
#define YYFREE free |
Definition at line 821 of file htmlparse.c.
#define YYID | ( | n | ) | (n) |
#define YYINITDEPTH 200 |
#define YYLAST 61 |
#define YYLEX htmllex () |
#define YYLLOC_DEFAULT | ( | Current, | |||
Rhs, | |||||
N | ) |
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 |
#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 |
#define YYPACT_NINF -9 |
#define YYPOPSTACK | ( | N | ) | (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, | |||
K | ) | ((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 |
#define YYSKELETON_NAME "yacc.c" |
Definition at line 53 of file htmlparse.c.
#define YYSTACK_ALLOC YYMALLOC |
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define YYSTACK_BYTES | ( | N | ) |
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 |
#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 |
#define YYTERROR 1 |
#define YYTOKEN_TABLE 0 |
Definition at line 647 of file htmlparse.c.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? htmltranslate[YYX] : YYUNDEFTOK) |
#define YYUNDEFTOK 2 |
Definition at line 902 of file htmlparse.c.
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 738 of file htmlparse.c.
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.
enum htmltokentype |
Definition at line 68 of file htmlparse.c.
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 133 of file htmlparse.c.
Definition at line 136 of file htmlparse.c.
Definition at line 134 of file htmlparse.c.
int htmlchar |
Definition at line 1634 of file htmlparse.c.
int htmlnerrs |
Definition at line 1640 of file htmlparse.c.
Definition at line 128 of file htmlparse.c.
Referenced by html_port(), make_html_label(), and write_plain().
Definition at line 135 of file htmlparse.c.
Referenced by agparse(), common_init_node(), parseHTML(), safefile(), and scan_graph_mode().
Definition at line 129 of file htmlparse.c.