diff options
author | pacien | 2018-04-21 15:38:11 +0200 |
---|---|---|
committer | pacien | 2018-04-21 15:38:11 +0200 |
commit | 659e5fd404f454def89aacaf02b2d067e640a85f (patch) | |
tree | 99eb825b10bd50a114463bd030664eebec96544c | |
parent | 153df26a972405c11968f7833190346bc69e07ec (diff) | |
download | urm-659e5fd404f454def89aacaf02b2d067e640a85f.tar.gz |
Document eurm transformation functions
-rw-r--r-- | eurml.mli | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -5,10 +5,21 @@ | |||
5 | 5 | ||
6 | open Common | 6 | open Common |
7 | 7 | ||
8 | (* Strips out comments and rewrite/enumerate labels *) | ||
8 | val compile_preprocess : eurmcmd list -> eurmcmd list | 9 | val compile_preprocess : eurmcmd list -> eurmcmd list |
10 | |||
11 | (* Rewrites Dec, GEqPredicate, LEqPredicate, LTPredicate, Mult and ZeroPredicate *) | ||
9 | val compile_stage1 : eurmcmd list -> state -> eurmcmd list * state | 12 | val compile_stage1 : eurmcmd list -> state -> eurmcmd list * state |
13 | |||
14 | (* Rewrites Add, GTPredicate and Sub *) | ||
10 | val compile_stage2 : eurmcmd list -> state -> eurmcmd list * state | 15 | val compile_stage2 : eurmcmd list -> state -> eurmcmd list * state |
16 | |||
17 | (* Rewrites Goto *) | ||
11 | val compile_stage3 : eurmcmd list -> state -> eurmcmd list * state | 18 | val compile_stage3 : eurmcmd list -> state -> eurmcmd list * state |
19 | |||
20 | (* Rewrites Inc, EqPredicate, Label and Zero *) | ||
12 | val compile_stage4 : eurmcmd list -> state -> urmcmd list * state | 21 | val compile_stage4 : eurmcmd list -> state -> urmcmd list * state |
22 | |||
23 | (* Transcompiles an EURM instruction sequence into URM *) | ||
13 | val urm_from_eurm : eurmcmd list -> urmcmd list | 24 | val urm_from_eurm : eurmcmd list -> urmcmd list |
14 | 25 | ||