src/CLI/Shell.php
protected function isImmediate( $line )
	{
		$code = "";
		$sq = $dq = false;
		for( $i = 0; $i < strlen( $line ); $i++ )
		{
			$c = $line{$i};
			if( $c == "'" )
				$sq = !$sq;
			else if( $c == '"')
				$dq = !$dq;
			else if( ( $sq ) ||( $dq ) )
			{
				if( $c == "\\" )
					$i++;
			}
			else
				$code .= $c;
		}
		$code = str_replace( $this->okeq, "", $code );
		if( strcspn( $code, ";{=" ) != strlen( $code ) )
			return false;
		$kw = split( "[^A-Za-z0-9_]", $code );
		foreach( $kw as $i )
			if( in_array( $i, $this->skip ) )
				return false;
		return true;
	}
protected function isImmediate( $line )
	{
		$code = "";
		$sq = $dq = false;
		for( $i = 0; $i < strlen( $line ); $i++ )
		{
			$c = $line{$i};
			if( $c == "'" )
				$sq = !$sq;
			else if( $c == '"')
				$dq = !$dq;
			else if( ( $sq ) ||( $dq ) )
			{
				if( $c == "\\" )
					$i++;
			}
			else
				$code .= $c;
		}
		$code = str_replace( $this->okeq, "", $code );
		if( strcspn( $code, ";{=" ) != strlen( $code ) )
			return false;
		$kw = split( "[^A-Za-z0-9_]", $code );
		foreach( $kw as $i )
			if( in_array( $i, $this->skip ) )
				return false;
		return true;
	}
protected function isImmediate ( $ line ) { $ code = "" ; $ sq = $ dq = false ; for ( $ i = 0 ; $ i < strlen ( $ line ) ; $ i ++ ) { $ c = $ line { $ i } ; if ( $ c == "'" ) $ sq = ! $ sq ; else if ( $ c == '"' ) $ dq = ! $ dq ; else if ( ( $ sq ) || ( $ dq ) ) { if ( $ c == "\\" ) $ i ++ ; } else $ code .= $ c ; } $ code = str_replace ( $ this -> okeq , "" , $ code ) ; if ( strcspn ( $ code , ";{=" ) != strlen ( $ code ) ) return false ; $ kw = split ( "[^A-Za-z0-9_]" , $ code ) ; foreach ( $ kw as $ i ) if ( in_array ( $ i , $ this -> skip ) ) return false ; return true ; }
Indicates whether a line is immediate executable like equations.
@access		protected
@return 	void
Indicates whether a line is immediate executable like equations .