Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / August 2005

Tip: Looking for answers? Try searching our database.

VBScript and Java

Thread view: 
grisha@alum.mit.edu - 08 Aug 2005 16:42 GMT
Hi all,

I have a bunch of .vbs files that are currently executed,
server-side, from C++ apps. We're in the process of porting
it to Java. The VBScript scripts are changing independently
of the rest of the code base, and much more frequently. They
are pretty straightforward, involving some formulas and
calculations.

Currently we have a very simple translator that converts
vbs into Java classes, but it's lacking (mostly, it's
not a true parser, so it screws up operator precedence).

The goal would be accomplished by any one of the following,
so I'd like suggestions:

1. A VBScript engine/interpreter in pure Java

2. A VBScript-to-Javascript converter (platform independence
is not an issue here, since it'll only be done in
development environment), so that then I can use Rhino
(mozilla's Javascript engine) to run it.

2a. In fact, a VBScript-to-any-other-script converter,
such that a pure Java interpreter exists for that other
script.

3. A VBScript parser I can use to translate
VBScript to Java.

Thanks.
sali - 08 Aug 2005 20:56 GMT
> Hi all,
>
[quoted text clipped - 8 lines]
> vbs into Java classes, but it's lacking (mostly, it's
> not a true parser, so it screws up operator precedence).

if the operator precedence handling is the main fault, why don't use some
intermediate tool just to fill enough levels of "()" to force right
evaluation order? when have them inserted it is easy to follow resolution
order.

> The goal would be accomplished by any one of the following,
> so I'd like suggestions:
[quoted text clipped - 14 lines]
>
> Thanks.
Ira Baxter - 20 Aug 2005 17:41 GMT
> I have a bunch of .vbs files that are currently executed,
> server-side, from C++ apps. We're in the process of porting
[quoted text clipped - 23 lines]
> 3. A VBScript parser I can use to translate
> VBScript to Java.

Our DMS Software Reengineering Toolkit is used to construct
such translators.  It has a VBScript front end (full parser)
and a Java back-end.  All you need to do is write the translation rules :-}
These are written in source to source format
("if you see this pattern, transform it to that") where the patterns
are surface syntax over the abstract syntax trees.

See http://www.semanticdesigns.com/Products/Front Ends

Signature

Ira D. Baxter, Ph.D., CTO   512-250-1018
Semantic Designs, Inc.      www.semdesigns.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.