gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77e39fa)
raw | patch | inline | side by side (parent: 77e39fa)
author | Doni Pracner <quinnuendo@gmail.com> | |
Fri, 19 Jul 2019 12:36:15 +0000 (14:36 +0200) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Fri, 19 Jul 2019 12:36:15 +0000 (14:36 +0200) |
The displayed information in the translated files is now
in the order that was used in some papers, and the shorthands
are also inserted next to the options (pp, ht, gl, lo, ar, sp).
The shorthands are also diplayed in the help pages.
in the order that was used in some papers, and the shorthands
are also inserted next to the options (pp, ht, gl, lo, ar, sp).
The shorthands are also diplayed in the help pages.
src/com/quemaster/transformations/mjc2wsl/Mjc2wsl.java | patch | blob | history |
diff --git a/src/com/quemaster/transformations/mjc2wsl/Mjc2wsl.java b/src/com/quemaster/transformations/mjc2wsl/Mjc2wsl.java
index 16876928881e84cd0f3ef3174012ca201a336335..9fec27ac1530d2eda64d04224dbc7ed0604a6071 100644 (file)
package com.quemaster.transformations.mjc2wsl;
/*
- Copyright (C) 2014,2015, 2016, 2018 Doni Pracner
+ Copyright (C) 2014,2015, 2016, 2018, 2019 Doni Pracner
This file is part of mjc2wsl.
genPrintForEachAddress = false,
genPrintEStackOnChange = false;
- private boolean genPopPush=false;
+ private boolean genPopPush = true;
private boolean genInlinePrint = false;
+" using mjc2wsl "+getVersion()+"\n");
ret.append(" -options:");
- ret.append("\n localsAsArrays:"+genLocalsAsArray);
- ret.append("\n localVarBlocks:"+genLocalVars);
- ret.append("\n popPush:"+genPopPush);
- ret.append("\n inlinePrint:"+genInlinePrint);
+ ret.append("\n popPush (pp/ht):"+genPopPush);
+ ret.append("\n localVarBlocks (lo/gl):"+genLocalVars);
+ ret.append("\n localsAsArrays (ar/sp):"+genLocalsAsArray);
+ ret.append("\n inlinePrint: "+genInlinePrint);
ret.append("\n\";\n");
ret.append("\nBEGIN");
public void printHelpDirectives(){
System.out.println("Alternatives for code generation (* are the defaults):");
System.out.print(genPopPush?'*':' ');
- System.out.println(" --genPopPush generate POP/PUSH instead of TAIL/HEAD");
+ System.out.println(" --genPopPush generate POP/PUSH instead of TAIL/HEAD (pp)");
System.out.print(!genPopPush?'*':' ');
- System.out.println(" --genHeadTail generate TAIL/HEAD instead of POP/PUSH ");
+ System.out.println(" --genHeadTail generate TAIL/HEAD instead of POP/PUSH (ht)");
System.out.println();
System.out.print(genInlinePrint?'*':' ');
System.out.println(" --genInlinePrint generate prints directly instead of procedure calls");
System.out.println(" --genProcedurePrint generate prints as custom procedure calls");
System.out.println();
System.out.print(genLocalVars?'*':' ');
- System.out.println(" --genLocalVars generate local VAR block for temp variables");
+ System.out.println(" --genLocalVars generate local VAR block for temp variables (lo)");
System.out.print(!genLocalVars?'*':' ');
- System.out.println(" --genGlobalVars do NOT generate local VAR block for temp variables");
+ System.out.println(" --genGlobalVars do NOT generate local VAR block for temp variables (gl)");
System.out.println();
System.out.print(genLocalsAsArray?'*':' ');
- System.out.println(" --genLocalsAsArray generate local variables as an array");
+ System.out.println(" --genLocalsAsArray generate local variables as an array (ar)");
System.out.print(!genLocalsAsArray?'*':' ');
- System.out.println(" --genLocalsSeparate generate local variables as separate entities");
+ System.out.println(" --genLocalsSeparate generate local variables as separate entities (sp)");
}
public void printHelpHelp() {
}
-}
\ No newline at end of file
+}