SCM Repository
[diderot] / trunk / src / parser / diderot.grm |
Diff of /trunk/src/parser/diderot.grm
Parent Directory
|
Revision Log
|
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 |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |