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

SCM Repository

[diderot] Diff of /branches/lamont/src/compiler/parser/diderot.grm
ViewVC logotype

Diff of /branches/lamont/src/compiler/parser/diderot.grm

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

revision 22, Thu Jan 21 05:34:09 2010 UTC revision 23, Mon Feb 1 03:29:06 2010 UTC
# Line 44  Line 44 
44          ;          ;
45    
46  Decl  Decl
47          : ImageDecl          : InputDecl
48          | ValueDecl          | GlobalDecl
         | FunDecl  
49          | ActorDecl          | ActorDecl
50          ;          ;
51    
52  ImageDecl  
53          : "image" ID ";"  (***** Inputs *****)
54    
55    InputDecl
56            : "input" Type ID ( "=" Expr )? ";"
57            ;
58    
59    (***** Global declarations *****)
60    
61    GlobalDecl
62            : Type ID "=" Expr ";"
63          ;          ;
64    
65    
# Line 80  Line 88 
88    
89  (***** Types *****)  (***** Types *****)
90    
91  Type    : "bool"  Type    : "image" "<" Dimension "," Dimension ">"
92            | "tensor" "<" Dimension "," Dimension ">"
93            | "field" "#" Dimension "<" Dimension "," Dimension ">"
94            | "kernel" "#" Dimension
95            | "vec" "<" Dimension ">"
96            | "bool"
97          | "int"          | "int"
98          | "real"          | "real"
99          ;          ;
100    
101    Dimension
102            : POSINT
103            ;
104    
105  (***** Expressions *****)  (***** Expressions *****)
106    

Legend:
Removed from v.22  
changed lines
  Added in v.23

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