Przeglądaj źródła

Added new function to poll for input

Yentl Van Tendeloo 8 lat temu
rodzic
commit
59f48bf2e5

BIN
bootstrap/bootstrap.m.gz


+ 3 - 0
bootstrap/primitives.alc

@@ -168,3 +168,6 @@ Element function resolve(name : String):
 
 Integer function integer_modulo(a : Integer, b : Integer):
 	return a - b * (a / b)!
+
+Boolean function has_input():
+	return (element_neq(dict_read(read_userroot(), "input"), dict_read(read_userroot(),"last_input")))!

+ 3 - 0
integration/code/cbd_semantics.alc

@@ -184,6 +184,9 @@ Void function list_CBD(model : Element):
 
 	return !
 
+Void function start(model : Element):
+	// Do a simulation loop, until we receive pause
+
 Void function execute_cbd(model : Element):
 	model = translate_to_runtime(model)