Exemple #1
0
 function block(&$bc, $term = JS_CURLYBR0, $need_braces = true)
 {
     global $type, $val, $next, $nextval;
     if ($need_braces) {
         jsc::want(JS_CURLYBR1, "{", "_block_{");
     }
     #echo "_P_BLOCK,$type,$val,$next:\n";
     #print_r($bc);
     $bc = array();
     jsc::code_lines($bc, $term);
     #echo "_P_BLOCK,$type,$val,$next:\n";
     #print_r($bc);
     if ($need_braces) {
         jsc::want(JS_CURLYBR0, "}", "_block_}");
     }
     jsc::getnext();
 }