Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translate vbscript to C# using ANTLR

I need to write a translator for vbscript to c#. What would be the basic steps invloved to translate using ANTLR? I am not very clear about whether to use grammar (lexer/parser? file or stringtemplate or AST or all. Suggestions? Thanks in advance.

like image 594
Jay Avatar asked Jul 14 '26 14:07

Jay


2 Answers

Is this really possible?

I'm "translating" (read: rewriting) a MS Access/VBA application since two years to C# and found out that even the online available converters (like this one which is more VB.NET, but anyway) fails at most basic conversions.

So my assumption until now is that there are way too much kind of constructs that are simply not translatable from VBScript to C#.

like image 55
Uwe Keim Avatar answered Jul 22 '26 06:07

Uwe Keim


See What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

like image 23
Ira Baxter Avatar answered Jul 22 '26 07:07

Ira Baxter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!