Changeset 13640


Ignore:
Timestamp:
Oct 2, 2019 12:54:22 PM (2 months ago)
Author:
jwedin
Message:

Refactored the CPrettyPrinter. #5851

Location:
trunk/Compiler/ModelicaCBackEnd/src/jastadd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenFunctionIO.jrag

    r11676 r13640  
    1616
    1717aspect CCodeGenFunctionIO {
    18    
    19     public class CPrettyPrinter {
    20         @Override
    21         public void printIODecl(FExp n, CodeStream str, String indent) {
    22             n.genTempInputDecl_C(this, str, indent);
    23         }
    24         @Override
    25         public void printIOPre(FExp n, CodeStream str, String indent) {
    26             n.genTempInputAssigns_C(this, str, indent);
    27         }
    28         @Override
    29         public void printIOExec(FExp n, CodeStream str, String indent) {
    30             n.genArgument(ExecStep, str, indent);
    31         }
    32     }
    3318   
    3419    syn boolean FAccessExp.alsoInRHS() {
  • trunk/Compiler/ModelicaCBackEnd/src/jastadd/CodeGen/StepPrinter.jrag

    r12024 r13640  
    140140   
    141141    public abstract class CodePrinter {
    142         public abstract void printIODecl(FExp n, CodeStream str, String indent);
    143         public abstract void printIOPre(FExp n, CodeStream str, String indent);
    144         public abstract void printIOExec(FExp n, CodeStream str, String indent);
     142        public void printIODecl(FExp n, CodeStream str, String indent) {
     143            n.genTempInputDecl_C(this, str, indent);
     144        }
     145        public void printIOPre(FExp n, CodeStream str, String indent) {
     146            n.genTempInputAssigns_C(this, str, indent);
     147        }
     148        public void printIOExec(FExp n, CodeStream str, String indent) {
     149            n.genArgument(ExecStep, str, indent);
     150        }
    145151    }
    146152   
Note: See TracChangeset for help on using the changeset viewer.