VBA interpreter…run VBA on Linux. #155
Replies: 2 comments 6 replies
|
That's extremely cool sounding @Beakerboy!! It'd be very cool to have some kind of automated testing! |
|
Inspired by this discussion I have decided to combine 2 projects, I had in mind for a bit now. It's been a while since I wanted to build a VS Code LSP Extension for VB and its been a while since I wanted to see how far one can go with AI assisted coding these days. So a few weeks back I sat down, took Codex and started specifying and building a VB interpreter & VM. In the meantime I have a first version, which covers "non-GUI" VB6 and a lot of VBA as long as it is not Office Host specific functionality (though I have a minimal Excel Host included). the functionality is still quite limited but I successfully tested against my own Data Table project and a subset of stdVBA (including stdArray, stdLambda, stdRegex, stdICallable and others) on both Windows and Linux. I was not able to test on Mac, as I do not have access to Mac infrastructure. The LSP backend comes with a LSP client for VS Code (this is not properly packaged yet, but the release-vscode.ps1 script in the \scrips folder prepares a vsix file, that can be used to install the Extension locally). you can find the source code under https://github.com/dangrazh/OxiBASIC. Please feel free to play around with it and see if it is any good for your use cases / needs. any feedback is most welcome. (The VS Code Extension is not properly packaged yet, but the release-vscode.ps1 script in the \scrips folder prepares a vsix file, that can be used to install the Extension locally). P.S.: I included support for Javadoc style comments rendering in the hover info of functions in VS Code, so the effort that you put into your documentation comments is properly honored... :-) |

Uh oh!
There was an error while loading. Please reload this page.
in case you want another novel Vba toy to play around with, I have a VBA interpreter in the works. Ideal use case is to run VBA unit tests from GitHub. It has very minimal functionality right now, but it can evaluate while loops, if-then-else, and implements a stack to support function recursion.
https://github.com/Beakerboy/PyVBA-Interpreter/tree/dev
All reactions