Changeset 3457 for devel-tools/trunk
- Timestamp:
- Feb 29, 2008, 7:41:54 PM (13 years ago)
- Location:
- devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/core/builder
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/core/builder/RefalASGenerator.java
r3454 r3457 1 1 package org.refal.plus.rfpdt.core.builder; 2 3 import java.math.BigInteger; 2 4 3 5 import org.refal.plus.Expr; … … 69 71 private static final String FAIL = "FAIL"; 70 72 private static final String ERROR = "ERROR"; 71 //private static final String LINENUMBER = "LINENUMBER";73 private static final String LINENUMBER = "LINENUMBER"; 72 74 73 75 private static Expr makeName (String name) { … … 78 80 return new Expr(concat.yield()); 79 81 } 80 82 81 83 private static void addLineNumber (AstNode astNode, Expr.Concatenator e) { 82 //Expr.Concatenator items = Expr.getConcatenator(2);83 //items.toRight(LINENUMBER);84 //items.toRight(BigInteger.valueOf(astNode.pos.line));85 //e.toRight((Comparable<?>) items.yield());84 Expr.Concatenator items = Expr.getConcatenator(2); 85 items.toRight(LINENUMBER); 86 items.toRight(BigInteger.valueOf(astNode.pos.line)); 87 e.toRight((Comparable<?>) items.yield()); 86 88 } 87 89 … … 201 203 202 204 public void visit (AstAlt astAlt, Expr.Concatenator e) { 203 addLineNumber(astAlt, e);205 //addLineNumber(astAlt, e); 204 206 Expr.Concatenator items = Expr.getConcatenator(); 205 207 items.toRight(astAlt.failMode.select(ALT_Q, ALT)); … … 242 244 243 245 public void visit (AstFormat astFormat, Expr.Concatenator e) { 244 addLineNumber(astFormat, e);246 //addLineNumber(astFormat, e); 245 247 Expr.Concatenator format = Expr.getConcatenator(); 246 248 format.toRight(FORMAT); … … 250 252 251 253 public void visit (AstIter astIter, Expr.Concatenator e) { 252 addLineNumber(astIter, e);254 //addLineNumber(astIter, e); 253 255 Expr.Concatenator iter = Expr.getConcatenator(); 254 256 iter.toRight(ITER); … … 273 275 274 276 public void visit (AstPattern astPattern, Expr.Concatenator e) { 275 addLineNumber(astPattern, e);277 //addLineNumber(astPattern, e); 276 278 Expr.Concatenator items = Expr.getConcatenator(); 277 279 items.toRight(astPattern.dir.select(LEFT, RIGHT)); … … 289 291 290 292 public void visit (AstSentence astSentence, Expr.Concatenator e) { 291 addLineNumber(astSentence, e);293 //addLineNumber(astSentence, e); 292 294 for (AstStatement statement : astSentence.statementList) 293 295 statement.accept(this, e); -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/core/builder/RfpBuilder.java
r3453 r3457 264 264 try { 265 265 Expr ast = RefalASGenerator.generateAS(astImplem); 266 Expr list = CallListGenerator.generateAS(astImplem);267 266 Result res = new Result(); 268 org.refal.plus.compiler.rfpc.CompileASToJBC 2(ast, list, res);267 org.refal.plus.compiler.rfpc.CompileASToJBC(ast, res); 269 268 for (Comparable<?> p : res.getExpr()) { 270 269 Expr e = (Expr) p;
Note: See TracChangeset
for help on using the changeset viewer.