org.sonar.l10n.oe.rules.rssw-oe.org.sonar.plugins.openedge.checks.ClumsySyntax.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-openedge-plugin Show documentation
Show all versions of sonar-openedge-plugin Show documentation
Enables analysis of OpenEdge projects
The newest version!
While the Progress compiler accepts the following syntax quirks, they shouldn't be used in real code as they are hard to read.
Furthermore, they slow down the internal parser, so support could be dropped in the future.
Syntax #1
// Abstract methods or method prototypes defined in interfaces can be ended with a colon instead of a period
METHOD PUBLIC ABSTRACT VOID mthd1(): // Ending with colon is OK for the compiler
METHOD PUBLIC ABSTRACT VOID mthd2().
// Use this syntax:
METHOD PUBLIC ABSTRACT VOID mthd1().
METHOD PUBLIC ABSTRACT VOID mthd2().
Syntax #2
define variable zz1 as integer.
define variable zz2 as integer.
do zz1 = 1 to 5:
do zz2 = 1 to 10:
message "Msg " + string(zz1 * zz2)
// Period after message statement is optional, as well as the two END of the do statements