func main() {
	cgreader.RunInteractiveProgram(
		"<input_file>",
		"<program_file>",
		true,
		Initialize,
		Update)
}
Esempio n. 2
0
func CreateAndRunInteractiveProgram(programFile []byte, programType, programInputFile string) {
	if initial, update, result := ParseInteractiveProgram(programFile); result {
		initialFunction, updateFunction := CreateInteractiveFunctions(initial, update)
		cgreader.RunInteractiveProgram(programType, programInputFile, isVerbose, initialFunction, updateFunction)
	}
}