petite/src/wombat/scheme/Petite.java
public void sendCommand(String cmd) {
		try {
			// Swap out lambda character for string
			cmd = cmd.replace("\u03BB", "lambda");
			
			// Note that this is the first process.
			FirstResponse = true;

			// Send it, make sure there's a newline.
			// Use flush to force it to actually run.
			ToPetite.write(cmd);
			if (!cmd.endsWith("\n"))
				ToPetite.write("\n");
			ToPetite.flush();

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
/**
	 * Send a command to the Petite process.
	 * 
	 * @param cmd The command to send.
	 */
Send a command to the Petite process.

@param cmd The command to send.
Send a command to the Petite process . @param cmd The command to send .
public void sendCommand(String cmd) {
		try {
			cmd = cmd.replace("\u03BB", "lambda");
			FirstResponse = true;
			ToPetite.write(cmd);
			if (!cmd.endsWith("\n"))
				ToPetite.write("\n");
			ToPetite.flush();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
public void sendCommand ( String cmd ) { try { cmd = cmd . replace ( "\u03BB" , "lambda" ) ; FirstResponse = true ; ToPetite . write ( cmd ) ; if ( ! cmd . endsWith ( "\n" ) ) ToPetite . write ( "\n" ) ; ToPetite . flush ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
Send a command to the Petite process.
Send a command to the Petite process .
// Swap out lambda character for string // Note that this is the first process. // Send it, make sure there's a newline. // Use flush to force it to actually run.