Debian Codegraph @

lib/mlrisc-lib/MLRISC/mdl.sh

raw symbols SCIP
1 #!/bin/sh
2 #
3 # COPYRIGHT (c) 2019 The Fellowship of SML/NJ (http://www.smlnj.org)
4 # All rights reserved.
5 #
6 # A script for running the MDL tool on a specification file.
7 #
8 # usage: mdl.sh <file>
9 #
10
11 if [ $# -ne 1 ] ; then
12 echo "usage: mdl.sh <file>"
13 exit 1
14 fi
15 TARGET=$1
16
17 src="$TARGET/$TARGET.mdl"
18
19 if [ ! -r "$src" ] ; then
20 echo "mdl.sh: unknown target"
21 exit 1
22 fi
23
24 sml <<XXXX
25 val _ = List.app (fn f => #set(CM.Anchor.anchor f) (SOME "cm")) [
26 "Control.cm", "Lib.cm", "Graphs.cm", "MLRISC.cm", "MLTREE.cm"
27 ];
28 CM.make "Tools/MDL/sources.cm";
29 MDLGen.gen "$src";
30 XXXX