Lines Matching refs:lefttoright
121 function arrow($image, $x, $y, $lefttoright) { argument
123 if (!$lefttoright) {
136 function render_node($node, $lefttoright) { argument
158 $lefttoright = ! $lefttoright;
159 $inner = render_node($node->firstChild, $lefttoright);
165 arrow($im, $w/2+EBNF_U/2, EBNF_U, $node->nodeName=='loop'?!$lefttoright:$lefttoright);
166 arrow($im, 3*EBNF_U, 3*EBNF_U, $lefttoright);
167 arrow($im, $w-2*EBNF_U, 3*EBNF_U, $lefttoright);
174 $inner = render_childs($node, $lefttoright);
175 if (!$lefttoright)
186 arrow($im, $x, EBNF_U, $lefttoright);
191 $inner = render_childs($node, $lefttoright);
202 arrow($im, 3*EBNF_U, $y+EBNF_U, $lefttoright);
203 arrow($im, $w-2*EBNF_U, $y+EBNF_U, $lefttoright);
218 $im = render_node($node->firstChild, $lefttoright);
255 function render_childs($node, $lefttoright) { argument
259 $childs[] = render_node($node, $lefttoright);