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 2427, Wed Sep 18 15:20:54 2013 UTC revision 2428, Wed Sep 18 18:04:04 2013 UTC
# Line 34  Line 34 
34                    | E.Add e        => String.concat["(",String.concatWith "+" (List.map printer2 e),")"]                    | E.Add e        => String.concat["(",String.concatWith "+" (List.map printer2 e),")"]
35                    | E.Sub(a,b)      => String.concat ["(",printer2(a),"- ",printer2(b), ")"]                    | E.Sub(a,b)      => String.concat ["(",printer2(a),"- ",printer2(b), ")"]
36                    | E.Div(a,b)      => String.concat ["(",printer2(a),"/ ",printer2(b), ")"]                    | E.Div(a,b)      => String.concat ["(",printer2(a),"/ ",printer2(b), ")"]
37                    | E.Prod [e1,e2,e3]       => String.concatWith "*" (List.map printer2 [e1,e2,e3])                    | E.Prod e       => String.concatWith "*" (List.map printer2 e)
                   | E.Prod e       => String.concatWith "^^" (List.map printer2 e)  
38                    | E.Kernel [] =>  "h"                    | E.Kernel [] =>  "h"
39                    | E.Kernel dels=> String.concat["h^",imp(dels)]                    | E.Kernel dels=> String.concat["h^",imp(dels)]
40                    | E.Delta dels  => imp(dels)                    | E.Delta dels  => imp(dels)

Legend:
Removed from v.2427  
changed lines
  Added in v.2428

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