function expr_cmp() { global $type, $val, $next, $nextval; #-- get left side expression $A = jsc::expr_math(); #-- check for comparision operator if ($next == JS_OP_CMP) { jsc::get(); $r = array(JS_CMP, $A, $val); $r[] = jsc::expr_math(); return $r; } else { return $A; } }