Exemple #1
0
 function constr_var(&$bc)
 {
     global $type, $val, $next, $nextval;
     $r = array(JS_VAR_STATEMENT);
     jsc::want(JS_VAR_STATEMENT, false, "_constr_var0");
     jsc::want(JS_WORD, false, "_constr_var1");
     $r[] = $val;
     jsc::get();
     switch ($type) {
         case JS_ASSIGN:
             jsc::append_list($r, JS_END);
             break;
         case JS_END:
             break;
         default:
             jsc::assert(JS_END, false, "_constr_var2");
     }
     $bc[] = $r;
 }