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

SCM Repository

[diderot] Diff of /trunk/src/compiler/parser/parse-tree.sml
ViewVC logotype

Diff of /trunk/src/compiler/parser/parse-tree.sml

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

revision 2355, Sun Apr 7 11:35:08 2013 UTC revision 2356, Sun Apr 7 14:45:25 2013 UTC
# Line 23  Line 23 
23                                                  (* input variable decl with description and *)                                                  (* input variable decl with description and *)
24                                                  (* optional default value *)                                                  (* optional default value *)
25        | D_Var of var_decl                       (* global variable decl *)        | D_Var of var_decl                       (* global variable decl *)
26          | D_Func of ty * var * param list * fun_body (* function decl *)
27        | D_Strand of {                           (* strand decl *)        | D_Strand of {                           (* strand decl *)
28              name : var,              name : var,
29              params : param list,              params : param list,
# Line 49  Line 50 
50        | T_Image of {dim : dim, shape : dim list}        | T_Image of {dim : dim, shape : dim list}
51        | T_Seq of ty * dim        | T_Seq of ty * dim
52    
53        and fun_body                                (* function bodies can be expressions or blocks *)
54          = FB_Expr of expr
55          | FB_Stmt of stmt
56    
57      and var_decl      and var_decl
58        = VD_Mark of var_decl mark        = VD_Mark of var_decl mark
59        | VD_Decl of ty * var * expr        | VD_Decl of ty * var * expr
# Line 76  Line 81 
81        | S_New of var * expr list        | S_New of var * expr list
82        | S_Die        | S_Die
83        | S_Stabilize        | S_Stabilize
84          | S_Return of expr
85        | S_Print of expr list        | S_Print of expr list
86    
87      and expr      and expr

Legend:
Removed from v.2355  
changed lines
  Added in v.2356

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