Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3.32-02 candidate #998

Merged
merged 39 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b74e6e1
ARM Translator
Mar 25, 2021
f2e7368
ARM Translator
Mar 25, 2021
4a5b177
ARM Translator
Mar 26, 2021
26c9d58
ARM Translator
Mar 26, 2021
2f8d9fa
ARM Translator
Apr 2, 2021
6568328
ARM Translator
Apr 2, 2021
bfbaa46
Merge pull request #968 from asimonetta/issue967
codemanyak Apr 2, 2021
dec5a8f
Code revision are enh. #967 adoption, comments damaged by code reform…
codemanyak Apr 9, 2021
e5f375b
Issue combination #738 / #967: code map mended in ARMGenerator, Strin…
codemanyak Apr 14, 2021
0627df9
Merge branch 'bugfix' (#966, #969) into issue967
codemanyak Apr 15, 2021
88f11cd
KEIL/GNU choice for #967 (ARM code export) moved from Diagram menu to…
codemanyak Apr 15, 2021
9ffea1b
Cleanup after ARM export option
codemanyak Apr 16, 2021
6fbe769
Gnu icon (129) renamed
codemanyak Apr 16, 2021
8c01f62
Gnu icon 16 px replaced
codemanyak Apr 16, 2021
c0ae452
ARM Translator
Apr 23, 2021
8efd5fb
Merge remote-tracking branch 'remotes/asimonetta/issue967' into issue967
codemanyak Apr 24, 2021
7c866e6
A. Simonetta's #967 fixes corrected.
codemanyak Apr 24, 2021
9b5effd
More corrections to #967 (ARM generator) contribution
codemanyak Apr 26, 2021
c5b0639
Issue #967: Several flaws in ArmGenerator.java fixed (EXITs, MUL, CALLs)
codemanyak May 3, 2021
c4f5462
Some minor fixes to ArmGenerator.java (#967)
codemanyak May 11, 2021
59b62ce
Merge branch 'bugfix' (version 3.31-03) into issue967
codemanyak May 12, 2021
e72ff87
Merge branch 'bugfix' (3.32-01) into issue967
codemanyak Oct 5, 2021
162ed3c
Revision of the ArmGenerator condition handling
codemanyak Oct 5, 2021
4177a60
Merge branch 'bugfix' into issue967
codemanyak Oct 5, 2021
40dbf93
Enh. #967: Arm export now skips type definitions and mere declarations.
codemanyak Oct 6, 2021
a2754bb
Re-fixes a merging loss in Diagram.exportOptions()
codemanyak Oct 6, 2021
4072bc4
Merging artefacts in Diagram.java mended.
codemanyak Oct 6, 2021
d1bc45f
Merge branch 'bugfix' (with bugfix #995) into issue967
codemanyak Oct 7, 2021
cf57371
Merge branch 'bugfix' into issue967
codemanyak Oct 7, 2021
7129429
Manpage adapted
codemanyak Oct 7, 2021
42c8c60
Fixes #997, version number updated, windows-wrapper.xml modified
codemanyak Oct 9, 2021
3cd6a4c
Merge branch 'bugfix' (issue #997) into issue967
codemanyak Oct 9, 2021
2bc62b9
Attempt to fix #988 (windows wrapper config)
codemanyak Oct 10, 2021
3c9ba35
changelog.txt updated
codemanyak Oct 10, 2021
24f1ee4
Merge branch 'bugfix' into issue967
codemanyak Oct 11, 2021
202901d
Some corrections of the Italian locale.
codemanyak Oct 11, 2021
dd02f52
Merge branch 'bugfix' into issue967
codemanyak Oct 11, 2021
068cdfa
changelog.txt updated for version 3.32-02 delivery
codemanyak Oct 11, 2021
486712c
Provides a first official prototype for #967 with some code revisions.
codemanyak Oct 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/bin
/dist/
3 changes: 0 additions & 3 deletions LIC-NOTE-libraries
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ http://www.beanshell.org/license.html
Copyright 2016 jjYBdx4IL (https://github.com/jjYBdx4IL)
http://www.apache.org/licenses/LICENSE-2.0

* FlatLaf > Apache License
http://www.apache.org/licenses/LICENSE-2.0

--------------------------------------------------------------------------------
AppleJavaExtensions
v 1.2
Expand Down
2 changes: 2 additions & 0 deletions Structorizer.1
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ Accepted names (case-insensitive) of generators are:
.br
.B BASH
.br
.B ARM
.br
.B StrucTeX
.br
.B LaTeX
Expand Down
4 changes: 2 additions & 2 deletions buildapp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
name="Structorizer"
displayname="Structorizer"
identifier="lu.fisch.Structorizer"
shortversion="3.32-01"
version="3.32-01"
shortversion="3.32-02"
version="3.32-02"
icon="icons/Structorizer.icns"
mainclassname="Structorizer"
copyright="Bob Fisch"
Expand Down
5 changes: 4 additions & 1 deletion nbproject/private/private.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
compile.on.save=false
do.depend=false
do.jar=true
do.jlink=false
file.reference.bsh-2.0b4.jar-1=/Users/ale/NetBeansProjects/Structorizer.Desktop/lib/bsh-2.0b6.jar
javac.debug=true
javadoc.preview=true
jaxbwiz.endorsed.dirs=/Applications/NetBeans/NetBeans 6.8.app/Contents/Resources/NetBeans/ide12/modules/ext/jaxb/api
user.properties.file=/Users/robertfisch/Library/Application Support/NetBeans/8.0.1/build.properties
jlink.strip=false
user.properties.file=/Users/ale/Library/Application Support/NetBeans/12.2/build.properties
7 changes: 5 additions & 2 deletions nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/Users/robertfisch/Programs/Structorizer/buildapp.xml</file>
<file>file:/Users/robertfisch/Programs/Structorizer/build.xml</file>
<file>file:/Users/ale/NetBeansProjects/Structorizer.Desktop/src/lu/fisch/structorizer/elements/Element.java</file>
<file>file:/Users/ale/NetBeansProjects/Structorizer.Desktop/src/lu/fisch/structorizer/gui/Diagram.java</file>
<file>file:/Users/ale/NetBeansProjects/Structorizer.Desktop/src/lu/fisch/structorizer/generators/ArmGenerator.java</file>
<file>file:/Users/ale/NetBeansProjects/Structorizer.Desktop/src/lu/fisch/structorizer/locales/it.txt</file>
<file>file:/Users/ale/NetBeansProjects/Structorizer.Desktop/src/lu/fisch/utils/StringList.java</file>
</group>
</open-files>
</project-private>
20 changes: 18 additions & 2 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ build.test.results.dir=${build.dir}/test/results
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.modulepath=\
${run.modulepath}
debug.test.classpath=\
${run.test.classpath}
debug.test.modulepath=\
${run.test.modulepath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/Structorizer.jar
Expand Down Expand Up @@ -57,16 +61,22 @@ javac.classpath=\
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=false
javac.modulepath=
javac.processormodulepath=
javac.processorpath=\
${javac.classpath}
javac.source=1.6
javac.target=1.6
javac.source=11
javac.target=11
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.modulepath=\
${javac.modulepath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.html5=false
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
Expand All @@ -76,6 +86,8 @@ javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api"
jlink.launcher=false
jlink.launcher.name=Structorizer
main.class=Structorizer
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
Expand All @@ -88,8 +100,12 @@ run.classpath=\
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=
run.modulepath=\
${javac.modulepath}
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
run.test.modulepath=\
${javac.test.modulepath}
source.encoding=UTF-8
src.dir=src
12 changes: 0 additions & 12 deletions src/Structorizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@
import javax.swing.JOptionPane;
import javax.swing.UIManager;

//import com.formdev.flatlaf.FlatDarculaLaf;
//import com.formdev.flatlaf.FlatDarkLaf;
//import com.formdev.flatlaf.FlatIntelliJLaf;
//import com.formdev.flatlaf.FlatLightLaf;

//import lu.fisch.structorizer.application.ApplicationFactory;
import lu.fisch.structorizer.archivar.Archivar;
import lu.fisch.structorizer.archivar.Archivar.ArchiveIndex;
Expand Down Expand Up @@ -362,13 +357,6 @@ else if (parser != null)
System.setProperty("sun.java2d.noddraw", "true");
// END KGU#521 2018-06-12

// START KGU#966 2021-03-10: Issue #966 Additional L&F (experimental)
// FlatLightLaf.installLafInfo();
// FlatDarkLaf.installLafInfo();
// FlatDarculaLaf.installLafInfo();
// FlatIntelliJLaf.installLafInfo();
// END KGU#966 2021-03-10

// try to load the system Look & Feel
try
{
Expand Down
2 changes: 1 addition & 1 deletion src/lu/fisch/structorizer/elements/Call.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public String getSignatureString()
* <li> the referred method declaration (in case this obect represents a method reference),</li>
* <li> the called routine if the text complies to the call syntax described in the user guide,</li>
* <li> {@code null} otherwise.</li>
* <ul>
* </ul>
* @return Function object or {@code null}.
* @see #isFunctionCall(boolean)
* @see #isProcedureCall(boolean)
Expand Down
6 changes: 5 additions & 1 deletion src/lu/fisch/structorizer/elements/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@
*/
public abstract class Element {

// START AS 2021-03-25: Enh. #967 (ARM code variant) - KGU 2021-04-15 disabled
//public static boolean ARM_GNU = false;
// END AS 2021-03-25
/** This enumeration type distinguishes drawing contexts for selection display */
// START KGU#906 2021-01-06: Enh. #905 need another context to suppress triangles
//public enum DrawingContext {DC_STRUCTORIZER, DC_ARRANGER};
Expand Down Expand Up @@ -295,7 +298,7 @@ public String toString()
public static final long E_HELP_FILE_SIZE = 11700000;
public static final String E_DOWNLOAD_PAGE = "https://www.fisch.lu/Php/download.php";
// END KGU#791 2020-01-20
public static final String E_VERSION = "3.32-01";
public static final String E_VERSION = "3.32-02";
public static final String E_THANKS =
"Developed and maintained by\n"+
" - Robert Fisch <[email protected]>\n"+
Expand All @@ -314,6 +317,7 @@ public String toString()
" - BASIC: Jacek Dzieniewicz\n" +
" - Python: Daniel Spittank <[email protected]>\n"+
" - Javascript: Kay Gürtzig <[email protected]>\n"+
" - ARM code: Alessandro Simonetta <[email protected]>\n"+
" - PapDesigner: Kay Gürtzig <[email protected]>\n"+
"Import grammars and parsers written and maintained by\n"+
" - ANSI-C: Kay Gürtzig <[email protected]>\n"+
Expand Down
30 changes: 19 additions & 11 deletions src/lu/fisch/structorizer/elements/For.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
* Kay Gürtzig 2019-11-21 Enh. #739 Enum types considered in type compatibility check for FOR-IN lists
* Kay Gürtzig 2021-01-22 Result value for setStepConst(String) introduced
* Kay Gürtzig 2021-02-01 Bugfix #923: Type retrieval for value lists was too weak
* Kay Gürtzig 2021-10-09 Bugfix #997: Inconsistent blank handling between forms and text
*
******************************************************************************************************
*
Expand Down Expand Up @@ -1010,17 +1011,23 @@ public static String composeForClause(String _counter, String _start, String _en
{
asgnmtOpr = " := ";
}
String forClause = CodeParser.getKeyword("preFor").trim() + " " +
_counter + asgnmtOpr + _start + " " +
CodeParser.getKeyword("postFor").trim() + " " + _end;
String forClause = CodeParser.getKeyword("preFor").trim() + " "
// START KGU#998 2021-10-09: Bugfix #997 redundant spaces tended to spoil comparison
//+ _counter + asgnmtOpr + _start + " "
//+ CodeParser.getKeyword("postFor").trim() + " " + _end;
+ _counter.trim() + asgnmtOpr + _start.trim() + " "
+ CodeParser.getKeyword("postFor").trim() + " " + _end.trim();
// END KGU#998 2021-10-09
if (_step != 1 || _forceStep)
{
forClause = forClause + " " + CodeParser.getKeyword("stepFor").trim() + " " +
Integer.toString(_step);
}
// START KGU#998 2021-10-09: Bugfix #997 This compromised expressions like length("a b c")
// Now get rid of multiple blanks
forClause = forClause.replace(" ", " ");
forClause = forClause.replace(" ", " ");
//forClause = forClause.replace(" ", " ");
//forClause = forClause.replace(" ", " ");
// END KGU#998 2021-10-09
return forClause;
}

Expand Down Expand Up @@ -1070,12 +1077,13 @@ public static String composeForInClause(String _iterator, String _valueList)

/**
* Classifies the loop style based only on the congruence of the stored
* text with the generated textes of the styles COUNTER and TRAVERSAL
* (the latter being the code for FOR-IN loops).
* You might also consider testing this.style (which just returns a cached
* earlier classification) and this.isForInLoop(), which first checks the
* cached classification and if this is FREETEXT also calls this method
* in order to find out whether this complies with FOR-IN syntax.
* text with the generated texts of the styles COUNTER and TRAVERSAL
* (the latter being the code for FOR-IN loops).<br/>
* You might also consider testing this.{@link #style} (which just returns
* a cached earlier classification) and this.isForInLoop(), which first
* checks the cached classification and if this is FREETEXT also calls
* this method in order to find out whether this complies with FOR-IN
* syntax.<br/>
* Note that assignment operator differences will be tolerated.
* @return One of the style codes COUNTER, TRAVERSAL, and FREETEXT
*/
Expand Down
Loading