Changeset 3422 for devel-tools
- Timestamp:
- Feb 22, 2008, 8:06:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/core/builder/RefalASGenerator.java
r3403 r3422 100 100 items.toRight(makeName(modName + "." + astConstBinding.name.identifier)); 101 101 astConstBinding.exp.accept(this, items); 102 e.toRight((Comparable< Expr>) items.yield());102 e.toRight((Comparable<?>) items.yield()); 103 103 } 104 104 … … 118 118 Expr.Concatenator inFormat = Expr.getConcatenator(); 119 119 astFuncDecl.inFormat.accept(this, inFormat); 120 items.toRight((Comparable< Expr>) inFormat.yield());120 items.toRight((Comparable<?>) inFormat.yield()); 121 121 Expr.Concatenator outFormat = Expr.getConcatenator(); 122 122 astFuncDecl.outFormat.accept(this, outFormat); 123 items.toRight((Comparable< Expr>) outFormat.yield());123 items.toRight((Comparable<?>) outFormat.yield()); 124 124 if (astFuncDecl.funcDef instanceof AstNative) 125 125 items.toRight(((AstNative) astFuncDecl.funcDef).right.identifier); … … 128 128 body.toRight(BRANCH); 129 129 ((AstFuncDef) astFuncDecl.funcDef).body.accept(this, body); 130 items.toRight((Comparable< Expr>) body.yield());130 items.toRight((Comparable<?>) body.yield()); 131 131 } 132 e.toRight((Comparable< Expr>) items.yield());132 e.toRight((Comparable<?>) items.yield()); 133 133 } 134 134 … … 160 160 Expr.Concatenator inFormat = Expr.getConcatenator(); 161 161 astFuncDecl.inFormat.accept(this, inFormat); 162 items.toRight((Comparable< Expr>) inFormat.yield());162 items.toRight((Comparable<?>) inFormat.yield()); 163 163 Expr.Concatenator outFormat = Expr.getConcatenator(); 164 164 astFuncDecl.outFormat.accept(this, outFormat); 165 items.toRight((Comparable< Expr>) outFormat.yield());165 items.toRight((Comparable<?>) outFormat.yield()); 166 166 items.toRight(astNative.left.identifier); 167 e.toRight((Comparable< Expr>) items.yield());167 e.toRight((Comparable<?>) items.yield()); 168 168 } 169 169 … … 179 179 String modName = astObjDecl.module != null ? astObjDecl.module : moduleName; 180 180 items.toRight(makeName(modName + "." + astObjDecl.name.identifier)); 181 e.toRight((Comparable< Expr>) items.yield());181 e.toRight((Comparable<?>) items.yield()); 182 182 } 183 183 … … 198 198 sentence.toRight(BRANCH); 199 199 astSentence.accept(this, sentence); 200 items.toRight((Comparable< Expr>) sentence.yield());200 items.toRight((Comparable<?>) sentence.yield()); 201 201 } 202 e.toRight((Comparable< Expr>) items.yield());202 e.toRight((Comparable<?>) items.yield()); 203 203 } 204 204 205 205 public void visit (AstCut astCut, Expr.Concatenator e) { 206 e.toRight((Comparable< Expr>) new Expr(CUT));206 e.toRight((Comparable<?>) new Expr(CUT)); 207 207 } 208 208 209 209 public void visit (AstCutAll astCutAll, Expr.Concatenator e) { 210 e.toRight((Comparable< Expr>) new Expr(CUTALL));210 e.toRight((Comparable<?>) new Expr(CUTALL)); 211 211 } 212 212 … … 215 215 error.toRight(ERROR); 216 216 astError.sentence.accept(this, error); 217 e.toRight((Comparable< Expr>) error.yield());217 e.toRight((Comparable<?>) error.yield()); 218 218 } 219 219 220 220 public void visit (AstFail astFail, Expr.Concatenator e) { 221 e.toRight((Comparable< Expr>) new Expr(FAIL));221 e.toRight((Comparable<?>) new Expr(FAIL)); 222 222 } 223 223 224 224 public void visit (AstFence astFence, Expr.Concatenator e) { 225 e.toRight((Comparable< Expr>) new Expr(FENCE));225 e.toRight((Comparable<?>) new Expr(FENCE)); 226 226 } 227 227 … … 230 230 format.toRight(FORMAT); 231 231 astFormat.exp.accept(this, format); 232 e.toRight((Comparable< Expr>) format.yield());232 e.toRight((Comparable<?>) format.yield()); 233 233 } 234 234 … … 239 239 source.toRight(BRANCH); 240 240 astIter.sentence.accept(this, source); 241 iter.toRight((Comparable< Expr>) source.yield());241 iter.toRight((Comparable<?>) source.yield()); 242 242 Expr.Concatenator format = Expr.getConcatenator(); 243 243 format.toRight(FORMAT); 244 244 astIter.target.accept(this, format); 245 iter.toRight((Comparable< Expr>) format.yield());246 e.toRight((Comparable< Expr>) iter.yield());245 iter.toRight((Comparable<?>) format.yield()); 246 e.toRight((Comparable<?>) iter.yield()); 247 247 } 248 248 … … 251 251 source.toRight(BRANCH); 252 252 astNot.sentence.accept(this, source); 253 e.toRight((Comparable< Expr>) Expr.concat(NOT, (Comparable<Expr>) source.yield()));253 e.toRight((Comparable<?>) Expr.concat(NOT, (Comparable<?>) source.yield())); 254 254 } 255 255 … … 258 258 items.toRight(astPattern.dir.select(LEFT, RIGHT)); 259 259 astPattern.exp.accept(this, items); 260 e.toRight((Comparable< Expr>) items.yield());260 e.toRight((Comparable<?>) items.yield()); 261 261 } 262 262 … … 265 265 items.toRight(RESULT); 266 266 astResult.exp.accept(this, items); 267 e.toRight((Comparable< Expr>) items.yield());267 e.toRight((Comparable<?>) items.yield()); 268 268 } 269 269 … … 279 279 trap.toRight(BRANCH); 280 280 astTrap.trySentence.accept(this, trap); 281 items.toRight((Comparable< Expr>) trap.yield());281 items.toRight((Comparable<?>) trap.yield()); 282 282 Expr.Concatenator with = Expr.getConcatenator(); 283 283 with.toRight(BRANCH); 284 284 astTrap.catchSentence.accept(this, with); 285 items.toRight((Comparable< Expr>) with.yield());286 e.toRight((Comparable< Expr>) items.yield());285 items.toRight((Comparable<?>) with.yield()); 286 e.toRight((Comparable<?>) items.yield()); 287 287 } 288 288 … … 297 297 items.toRight(makeName(modName + "." + astCall.funcDecl.name.identifier)); 298 298 astCall.arg.accept(this, items); 299 e.toRight((Comparable< Expr>) items.yield());299 e.toRight((Comparable<?>) items.yield()); 300 300 } 301 301 … … 317 317 items.toRight(PAREN); 318 318 astParen.exp.accept(this, items); 319 e.toRight((Comparable< Expr>) items.yield());319 e.toRight((Comparable<?>) items.yield()); 320 320 } 321 321 … … 327 327 modName = moduleName; 328 328 items.toRight(makeName(modName + "." + astRef.decl.name.identifier)); 329 e.toRight((Comparable< Expr>) items.yield());329 e.toRight((Comparable<?>) items.yield()); 330 330 } 331 331 332 332 public void visit (AstVar astVar, Expr.Concatenator e) { 333 333 String varType = astVar.type.name().toUpperCase() + "VAR"; // FIXME 334 Comparable< Expr> varName;334 Comparable<?> varName; 335 335 if (astVar.name != null && astVar.name.identifier.length() > 0) 336 336 varName = new Expr(astVar.name.identifier); // FIXME 337 337 else 338 338 varName = new Expr("$tmp-" + astVar.pos.charStart); // FIXME 339 e.toRight((Comparable< Expr>) Expr.concat(varType, varName));339 e.toRight((Comparable<?>) Expr.concat(varType, varName)); 340 340 } 341 341
Note: See TracChangeset
for help on using the changeset viewer.