Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert VFP code to C#
Message
From
11/06/2019 05:05:53
 
 
To
11/06/2019 04:30:24
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01668961
Message ID:
01668992
Views:
87
>>>Are there any utilities that convert VFP code to C#?
>>
>>Maybe in the near future this will be an option:
>>
>>https://www.xsharp.info/
>
>The roadmap at the bottom of that page shows it largely complete (?) by October of this year (!)
What I have understood

A VisualStudio project will be 'generated' using C# and WinForms

Code will be translated to C# using the AntLR parser, which is an LL(*) parser wher the * stands for 'adaptive' lookahead
https://www.antlr.org/about.html



For the language part
(1) You will need to adapt the code if you are using keywords out of the normal context
eg
if = 1
(2) The grammar will be a challenge as some commands can be abbreviated and some allow arbitrary order for other clauses/words
eg use : order, again, excl etc
use table exclusive again  in 0 alias X1 order x2
use table order x2 alias X1 again in 0 excl
They are not there yet
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform