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 2485, Mon Oct 21 16:34:57 2013 UTC revision 2494, Wed Oct 23 14:32:58 2013 UTC
# Line 43  Line 43 
43              | E.Neg e1 => String.concat["-", printbody e1]              | E.Neg e1 => String.concat["-", printbody e1]
44              | E.Add el => String.concat["(",String.concatWith "+" (List.map printbody el),")"]              | E.Add el => String.concat["(",String.concatWith "+" (List.map printbody el),")"]
45              | E.Sub(e1, e2) => String.concat ["(",printbody(e1),"- ",printbody(e2), ")"]              | E.Sub(e1, e2) => String.concat ["(",printbody(e1),"- ",printbody(e2), ")"]
46              | E.Prod el => String.concatWith "* " (List.map printbody el)  | E.Prod el => String.concat["{{",String.concatWith "* " (List.map printbody el),"}}"]
47              | E.Div(e1,e2) => String.concat ["(",printbody(e1),"/ ",printbody (e2), ")"]              | E.Div(e1,e2) => String.concat ["(",printbody(e1),"/ ",printbody (e2), ")"]
48              | E.Partial alpha => String.concat["d/dx_",printAlpha alpha]              | E.Partial alpha => String.concat["d/dx_",printAlpha alpha]
49              | E.Apply(e1, e2)=> String.concat [ printbody(e1),"@{", printbody(e2),"} "]              | E.Apply(e1, e2)=> String.concat [ printbody(e1),"@{", printbody(e2),"} "]
50              | E.Conv(e1, [])=> String.concat["|",printbody(e1), "★h|"]              | E.Conv(e1, [])=> String.concat["|",printbody(e1), "★h|"]
51              | E.Conv(e1, alpha)=> String.concat["|",printbody(e1), "★ d/dx_{",printAlpha alpha,"}h|"]              | E.Conv(e1, alpha)=> String.concat["|",printbody(e1), "★ d/dx_{",printAlpha alpha,"}h|"]
52              | E.Probe (e1,e2)=> String.concat ["",printbody(e1), "","[", printbody(e2),"]"]              | E.Probe (e1,e2)=> String.concat ["",printbody(e1), "","[", printbody(e2),"]"]
53              | E.Img ((e1,pos),hs)=> String.concat [printbody e1, "[",              | E.Img ((fid,alpha,pos),hs)=> String.concat ["V", Int.toString(fid),"_",printAlpha alpha,"[",
54                  (String.concatWith "," (List.map printbody pos)),"] *",String.concatWith "*" (List.map printbody hs)]                  (String.concatWith "," (List.map printbody pos)),"] *",String.concatWith "*" (List.map printbody hs)]
55    
56              (*              (*

Legend:
Removed from v.2485  
changed lines
  Added in v.2494

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