Ejemplo n.º 1
0
func main() {
	cgreader.RunInteractiveProgram(
		"<input_file>",
		"<program_file>",
		true,
		Initialize,
		Update)
}
Ejemplo 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)
	}
}