Differences From Artifact [b6858e7b65012cb1]:
- File
polemy/parse.d
- 2010-11-23 10:37:54 - part of checkin [5e924caac9] on branch trunk - added AST-rewriting macro sample. (user: kinaba) [annotate]
To Artifact [50e0836a1ece20de]:
- File
polemy/parse.d
- 2010-11-23 13:55:15 - part of checkin [2134cd44cc] on branch trunk - further clean-up for polemy2d (user: kinaba) [annotate]
152 152 // [TODO] make this customizable from program
153 153 private static string[][] operator_perferences = [
154 154 ["||"],
155 155 ["&&"],
156 156 ["!="],
157 157 ["=="],
158 158 ["<","<=",">",">="],
159 -// ["|"],
160 -// ["^"],
161 -// ["&"],
162 -// ["<<", ">>", "<<<", ">>>"],
159 + ["|"],
160 + ["^"],
161 + ["&"],
162 + ["<<", ">>", "<<<", ">>>"],
163 163 ["+","-"],
164 164 ["~"],
165 165 ["*","/","%"],
166 -// ["^^","**"],
166 + ["^^","**"],
167 167 [".",".?"]
168 168 ];
169 169
170 170 AST E(size_t level)
171 171 {
172 172 /// Expression ::= (Binary left-associative operators over) Funcall
173 173