瀏覽代碼

Added new function to poll for input

Yentl Van Tendeloo 8 年之前
父節點
當前提交
59f48bf2e5
共有 3 個文件被更改,包括 6 次插入0 次删除
  1. 二進制
      bootstrap/bootstrap.m.gz
  2. 3 0
      bootstrap/primitives.alc
  3. 3 0
      integration/code/cbd_semantics.alc

二進制
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)