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

SCM Repository

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

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

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

revision 4455, Wed Aug 24 23:39:30 2016 UTC revision 4456, Thu Aug 25 04:03:27 2016 UTC
# Line 354  Line 354 
354      ty = example.get_ty(ex, ty_num)      ty = example.get_ty(ex, ty_num)
355      return (name, opr,ty)      return (name, opr,ty)
356    
357    # gets a single examples
358    def get_single_exampleEx(ex, ty_num):
359        i = 0
360        for t in ex.tys:
361            x=""
362            if(i==ty_num):
363                x+="->"
364            x += str(i)+". "
365            for j in t:
366                x+= j.name+","
367            i+=1
368            print x
369        name = example.toStr(ex, ty_num)
370        ty = example.get_ty(ex, ty_num)
371        return (name, ty)
372    
373    

Legend:
Removed from v.4455  
changed lines
  Added in v.4456

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