Lines Matching defs:lefttoright
117 function arrow($image, $x, $y, $lefttoright) {
119 if (!$lefttoright)
128 function render_node($node, $lefttoright) {
150 $lefttoright = ! $lefttoright;
151 $inner = render_node($node->firstChild, $lefttoright);
157 arrow($im, $w/2+EBNF_U/2, EBNF_U, $node->nodeName=='loop'?!$lefttoright:$lefttoright);
158 arrow($im, 3*EBNF_U, 3*EBNF_U, $lefttoright);
159 arrow($im, $w-2*EBNF_U, 3*EBNF_U, $lefttoright);
166 $inner = render_childs($node, $lefttoright);
167 if (!$lefttoright)
178 arrow($im, $x, EBNF_U, $lefttoright);
183 $inner = render_childs($node, $lefttoright);
194 arrow($im, 3*EBNF_U, $y+EBNF_U, $lefttoright);
195 arrow($im, $w-2*EBNF_U, $y+EBNF_U, $lefttoright);
210 $im = render_node($node->firstChild, $lefttoright);
247 function render_childs($node, $lefttoright) {
251 $childs[] = render_node($node, $lefttoright);