Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
htmlparse.y File Reference
#include <cgraph/alloc.h>
#include <common/render.h>
#include <common/htmltable.h>
#include <common/htmllex.h>
Include dependency graph for htmlparse.y:

Go to the source code of this file.

Functions

 cleanup ()
 
htmllabel_tparseHTML (char *txt, int *warn, htmlenv_t *env)
 

Variables

require define api prefix
 
fonttext __pad0__
 
text __pad1__
 
textitem __pad2__
 
 br {appendFLineList($1)
 
font text n_font italic text n_italic underline text n_underline overline text n_overline bold text n_bold sup text n_sup sub text n_sub strike text n_strike
 
font __pad3__
 
n_font __pad4__
 
italic __pad5__
 
n_italic __pad6__
 
bold __pad7__
 
n_bold __pad8__
 
strike __pad9__
 
n_strike __pad10__
 
underline __pad11__
 
n_underline __pad12__
 
overline __pad13__
 
n_overline __pad14__
 
sup __pad15__
 
n_sup __pad16__
 
sub __pad17__
 
n_sub __pad18__
 
br __pad19__
 
 T_BR { $$ = $1
 
string __pad20__
 
table __pad21__
 
 YYABORT
 
$2 u p prev = HTMLstate.tblstack
 
$2 u p rows = dtopen(&rowDisc, Dtqueue)
 
HTMLstate tblstack = $2
 
$2 font = HTMLstate.fontstack->cfont
 
$< tbl > $ = $2
 
rows T_end_table opt_space
 
fonttable __pad22__
 
font table n_font { $$=$2
 
italic table n_italic { $$=$2
 
underline table n_underline { $$=$2
 
overline table n_overline { $$=$2
 
bold table n_bold { $$=$2
 
opt_space __pad23__
 
rows __pad24__
 
rows row { $$ = $2
 
 $$ = $3
 
row __pad25__
 
cells T_end_row { $$ = lastRow()
 
cells __pad26__
 
cells cell { $$ = $2
 
cell __pad27__
 
cell $2
 
cell HTML_TBL
 
 T_end_cell { $$ = $1
 
T_cell fonttext { setCell($1,$2,HTML_TEXT)
 
T_cell image { setCell($1,$2,HTML_IMAGE)
 
 T_cell { setCell($1,mkText(),HTML_TEXT)
 
image __pad28__
 
 T_IMG { $$ = $1
 
HR __pad29__
 
VR __pad30__
 

Function Documentation

◆ cleanup()

cleanup ( )

◆ parseHTML()

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

Definition at line 563 of file htmlparse.y.

References agxbfree(), sfont_t::cfont, clearHTMLlexer(), dtclose(), dtopen(), Dtqueue, fspanDisc, fstrDisc, htmlenv_t::g, GD_gvc, htmlparse(), HTMLstate, initHTMLlexer(), NULL, sfont_t::pfont, and str.

Here is the call graph for this function:

Variable Documentation

◆ $

$<tbl> $ = $2

Definition at line 499 of file htmlparse.y.

◆ $$

$$ = $3

Definition at line 525 of file htmlparse.y.

◆ $2

cell $2

Definition at line 536 of file htmlparse.y.

◆ __pad0__

fonttext __pad0__

Definition at line 415 of file htmlparse.y.

◆ __pad10__

n_strike __pad10__

Definition at line 455 of file htmlparse.y.

◆ __pad11__

underline __pad11__

Definition at line 458 of file htmlparse.y.

◆ __pad12__

n_underline __pad12__

Definition at line 461 of file htmlparse.y.

◆ __pad13__

overline __pad13__

Definition at line 464 of file htmlparse.y.

◆ __pad14__

n_overline __pad14__

Definition at line 467 of file htmlparse.y.

◆ __pad15__

sup __pad15__

Definition at line 470 of file htmlparse.y.

◆ __pad16__

n_sup __pad16__

Definition at line 473 of file htmlparse.y.

◆ __pad17__

sub __pad17__

Definition at line 476 of file htmlparse.y.

◆ __pad18__

n_sub __pad18__

Definition at line 479 of file htmlparse.y.

◆ __pad19__

br __pad19__

Definition at line 482 of file htmlparse.y.

◆ __pad1__

text __pad1__

Definition at line 418 of file htmlparse.y.

◆ __pad20__

string __pad20__

Definition at line 486 of file htmlparse.y.

◆ __pad21__

table __pad21__

Definition at line 490 of file htmlparse.y.

◆ __pad22__

fonttable __pad22__

Definition at line 511 of file htmlparse.y.

◆ __pad23__

opt_space __pad23__

Definition at line 519 of file htmlparse.y.

◆ __pad24__

rows __pad24__

Definition at line 523 of file htmlparse.y.

◆ __pad25__

row __pad25__

Definition at line 528 of file htmlparse.y.

◆ __pad26__

cells __pad26__

Definition at line 531 of file htmlparse.y.

◆ __pad27__

cell __pad27__

Definition at line 536 of file htmlparse.y.

◆ __pad28__

image __pad28__

Definition at line 542 of file htmlparse.y.

◆ __pad29__

HR __pad29__

Definition at line 546 of file htmlparse.y.

◆ __pad2__

textitem __pad2__

Definition at line 422 of file htmlparse.y.

◆ __pad30__

VR __pad30__

Definition at line 550 of file htmlparse.y.

◆ __pad3__

font __pad3__

Definition at line 434 of file htmlparse.y.

◆ __pad4__

n_font __pad4__

Definition at line 437 of file htmlparse.y.

◆ __pad5__

italic __pad5__

Definition at line 440 of file htmlparse.y.

◆ __pad6__

n_italic __pad6__

Definition at line 443 of file htmlparse.y.

◆ __pad7__

bold __pad7__

Definition at line 446 of file htmlparse.y.

◆ __pad8__

n_bold __pad8__

Definition at line 449 of file htmlparse.y.

◆ __pad9__

strike __pad9__

Definition at line 452 of file htmlparse.y.

◆ br

br {appendFLineList($1)

Definition at line 423 of file htmlparse.y.

◆ cell

cells VR cell { $$ = $2

Definition at line 532 of file htmlparse.y.

◆ font

◆ fonttext

T_cell fonttext { setCell($1,$2,HTML_TEXT)

Definition at line 537 of file htmlparse.y.

◆ HTML_TBL

cell HTML_TBL

Definition at line 536 of file htmlparse.y.

◆ image

◆ n_bold

bold table n_bold { $$=$2

Definition at line 516 of file htmlparse.y.

◆ n_font

font table n_font { $$=$2

Definition at line 512 of file htmlparse.y.

◆ n_italic

italic table n_italic { $$=$2

Definition at line 513 of file htmlparse.y.

◆ n_overline

overline table n_overline { $$=$2

Definition at line 515 of file htmlparse.y.

◆ n_strike

font text n_font italic text n_italic underline text n_underline overline text n_overline bold text n_bold sup text n_sup sub text n_sub strike text n_strike

Definition at line 431 of file htmlparse.y.

◆ n_underline

underline table n_underline { $$=$2

Definition at line 514 of file htmlparse.y.

◆ opt_space

rows T_end_table opt_space
Initial value:
{
if (nonSpace(agxbuse(HTMLstate.str))) {
htmlerror ("Syntax error: non-space string used after </TABLE>");
}
$$ = HTMLstate.tblstack
static char * agxbuse(agxbuf *xb)
Definition agxbuf.h:286
void htmlerror(const char *msg)
Definition htmllex.c:78
static struct @74 HTMLstate
static int nonSpace(char *s)
Definition htmlparse.c:385
YYABORT
Definition htmlparse.y:493
$$
Definition htmlparse.y:525
cleanup()

Definition at line 501 of file htmlparse.y.

◆ prefix

require define api prefix

Definition at line 19 of file htmlparse.y.

◆ prev

◆ row

◆ rows

$2 u p rows = dtopen(&rowDisc, Dtqueue)

Definition at line 496 of file htmlparse.y.

Referenced by processTbl().

◆ T_BR

T_BR { $$ = $1

Definition at line 483 of file htmlparse.y.

◆ T_cell

T_cell { setCell($1,mkText(),HTML_TEXT)

Definition at line 539 of file htmlparse.y.

◆ T_end_cell

T_end_cell { $$ = $1

Definition at line 536 of file htmlparse.y.

◆ T_end_row

cells T_end_row { $$ = lastRow()

Definition at line 528 of file htmlparse.y.

◆ T_IMG

T_IMG { $$ = $1

Definition at line 543 of file htmlparse.y.

◆ tblstack

HTMLstate tblstack = $2

Definition at line 497 of file htmlparse.y.

◆ YYABORT

YYABORT

Definition at line 493 of file htmlparse.y.