TextTransformer can be used to create translators for different programming languages. For example BASIC could be translated to Java as in the following example:
Source text (BASIC)
FUNCTION AbstandGeradePunkt! (g AS GeradeType, p AS PT2D)
AbstandGeradePunkt! = ABS(((-g.m * p.x + p.y - g.b) / SQR(g.m ^ 2 + 1)))
END FUNCTION
Target text (Java)
double AbstandGeradePunkt( GeradeType g, PT2D p )
{
double AbstandGeradePunkt;
AbstandGeradePunkt = Math.abs( ( ( -g.m * p.x + p.y - g.b ) / Math.sqrt( Math.pow( g. m,2)+ 1 ) ) );
return AbstandGeradePunkt;
}
Deutsch
Latest News |
10/28/24
Delphi2Cpp 2.5: Symbol names matching declaration case [more...] |
08/26/24
Delphi2Cpp 2.4: Updated to RAD Studio 12.1 Athens [more...] |
"...Fantastic!!!! ... You have exceeded my expectations and I love your product. We will get a
lot of use out of it in the future for other projects." Charles Finley
xformix 23-02-07
|
I was extremely impressed with your components and tools. Not only extremely powerful but very professionally done and well documented, etc. Really quality work, congratulations
mouser (First Author, Administrator)