aboutsummaryrefslogtreecommitdiff
path: root/Program.dcl
diff options
context:
space:
mode:
authorCamil Staps2016-06-30 21:18:07 +0200
committerCamil Staps2016-06-30 21:18:07 +0200
commit9498270f46646c34cba3885a2e455b08daf9c324 (patch)
tree9bade895bed4d5a59ced986ad437cf7e5a93aba9 /Program.dcl
parentGraphStore, Nodes (diff)
Descriptors, Program
Diffstat (limited to 'Program.dcl')
-rw-r--r--Program.dcl13
1 files changed, 13 insertions, 0 deletions
diff --git a/Program.dcl b/Program.dcl
new file mode 100644
index 0000000..31b61d7
--- /dev/null
+++ b/Program.dcl
@@ -0,0 +1,13 @@
+definition module ABC.Program
+
+from ABC.Def import ::InstrId, ::Instruction
+
+pc_init :: InstrId
+pc_next :: InstrId -> InstrId
+pc_halt :: InstrId -> InstrId
+pc_end :: InstrId -> Bool
+
+:: ProgramStore
+
+ps_get :: InstrId ProgramStore -> Instruction
+ps_init :: [Instruction] -> ProgramStore