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

SCM Repository

[diderot] Diff of /branches/ein16/synth/d2/write.py
ViewVC logotype

Diff of /branches/ein16/synth/d2/write.py

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

revision 4410, Fri Aug 12 18:28:32 2016 UTC revision 4411, Fri Aug 12 18:28:57 2016 UTC
# Line 7  Line 7 
7    
8  ##################################################################################################  ##################################################################################################
9  def Title_inner(opr_inner):  def Title_inner(opr_inner):
10      return "\n\n"+opr_inner.name+" |"+str(opr_inner.id)      return "\n\n"+" "+opr_inner.name+"_ * |"+str(opr_inner.id)+"_ *"
11    
12  def Title_outer(opr_inner, opr_outer):  def Title_outer(opr_inner, opr_outer):
13      return opr_outer.name+ "_"+ opr_inner.name+" |"+str(opr_inner.id)+"_"+str(opr_outer.id)      return "\n "+opr_outer.name+ "_"+ opr_inner.name+" |"+str(opr_inner.id)+"_"+str(opr_outer.id)
14    
15    def Title_outer2(opr_outer):
16        return "\n"+ "* _"+ opr_outer.name+" |* _"+str(opr_outer.id)+"\n"
17    
18  def Title_num(opr_inner, opr_outer):  def Title_num(opr_inner, opr_outer):
19      return opr_outer.name+ "_"+ opr_inner.name+" |"+str(opr_inner.id)+"_"+str(opr_outer.id)      return "\n"+opr_outer.name+ "_"+ opr_inner.name+" |"+str(opr_inner.id)+"_"+str(opr_outer.id)
20    
21  def write(e):  def write(e):
22      print (e)      print (e)
# Line 59  Line 61 
61      writetys(y)      writetys(y)
62      writeall(y)      writeall(y)
63    
64    def writeTitle_outer2(opr_outer):
65        y = Title_outer2(opr_outer)
66        writetys(y)
67        writeall(y)
68    
69    
70  def writeTitle_outer(opr_inner, opr_outer):  def writeTitle_outer(opr_inner, opr_outer):
71      y = Title_outer(opr_inner, opr_outer)      y = Title_outer(opr_inner, opr_outer)
72      writetys("\n"+y)      writetys("\n"+y)

Legend:
Removed from v.4410  
changed lines
  Added in v.4411

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