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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/codegen/clang.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/codegen/clang.sml

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

revision 3869, Tue May 17 12:41:49 2016 UTC revision 3870, Tue May 17 13:53:58 2016 UTC
# Line 52  Line 52 
52        | D_Proto of attr list * ty * string * param list        | D_Proto of attr list * ty * string * param list
53      (* function definition *)      (* function definition *)
54        | D_Func of attr list * ty * string * param list * stm        | D_Func of attr list * ty * string * param list * stm
55        (* class constructor definition:
56         *     D_Constr(attrs, namespace, class, params, inits, body)
57         * the inits should be of the form "id(exp)"
58         *)
59          | D_Constr of attr list * string option * string * param list * exp list * stm
60        (* class destructor definition *)
61          | D_Destr of attr list * string option * string * stm
62      (* struct type declaration; if the third argument is SOME name, then a      (* struct type declaration; if the third argument is SOME name, then a
63       * typedef is generated.       * typedef is generated.
64       *)       *)
# Line 60  Line 67 
67        | D_ClassDef of {        | D_ClassDef of {
68              name : string,              (* class/struct name *)              name : string,              (* class/struct name *)
69              from : string option,       (* optional base class *)              from : string option,       (* optional base class *)
70              public : member list,              public : decl list,
71              protected : member list,              protected : decl list,
72              private : member list              private : decl list
73            }            }
74    
     and member  
       = M_Var of attr list * ty * var  
       | M_Proto of attr list * ty * string * param list  
   
75      and initializer      and initializer
76        = I_Exp of exp        = I_Exp of exp
77        | I_Exps of initializer list        | I_Exps of initializer list

Legend:
Removed from v.3869  
changed lines
  Added in v.3870

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