Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/charisee_dev/src/compiler/ein/printer.sml
ViewVC logotype

Diff of /branches/charisee_dev/src/compiler/ein/printer.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2409, Thu Aug 1 03:42:38 2013 UTC revision 2412, Wed Aug 7 02:17:53 2013 UTC
# Line 32  Line 32 
32                          String.concat [v,"*",k,"{",imp(deltas),"}_",Int.toString(n)]                          String.concat [v,"*",k,"{",imp(deltas),"}_",Int.toString(n)]
33                        end                        end
34                    | E.Partial e  => String.concat ["d^",Int.toString(length(e)),"/dx_",intList(e)]                    | E.Partial e  => String.concat ["d^",Int.toString(length(e)),"/dx_",intList(e)]
35                    | E.Probe(a,b) => String.concat ["(",printer2(a), ")","@","T",Int.toString(b)]                    | E.Probe(a,b) => String.concat ["",printer2(a), "","@(", printer2(b),")"]
36                    | E.Apply(a,b) => String.concat [ printer2(a)," ", printer2(b)," "]                    | E.Apply(a,b) => String.concat [ printer2(a)," ", printer2(b)," "]
37                    | E.Sum (id,a) => String.concat [" Sigma:", Int.toString(id), " ",printer2(a)]                    | E.Sum (id,a) => String.concat [" Sigma:", Int.toString(id), " ",printer2(a)]
38                    | _ =>("newbie")                    | _ =>("newbie")
# Line 42  Line 42 
42              | Index ((E.SX(dim))::i, count) = String.concat[ "} {Summation:(",Int.toString(count),              | Index ((E.SX(dim))::i, count) = String.concat[ "} {Summation:(",Int.toString(count),
43                  " DIM:",Int.toString(dim),")", Index(i,count+1)]                  " DIM:",Int.toString(dim),")", Index(i,count+1)]
44              | Index (_, count) = ""              | Index (_, count) = ""
45            fun Param(E.TEN::param, i)=String.concat[Int.toString(i), ":TEN ", Param(param, i+1)]
46                | Param(E.FLD(d)::param, i)= String.concat[Int.toString(i), ":FLD-", intList d," ",Param(param, i+1)]
47                | Param(_,_)=""
48              in              in
49                  String.concat ["\n<",printer2(body),">","_{",Index(index,0),"}"]                  String.concat ["\n",Param(params, 0),"\n<",printer2(body),">","_{",Index(index,0),"}\n"]
50              end              end
51    
52         (* fun printerApp(R.App(e,l))= printerE(e)         (* fun printerApp(R.App(e,l))= printerE(e)

Legend:
Removed from v.2409  
changed lines
  Added in v.2412

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0