Better HN
topnewbestaskshowjobs
Log inSign up

bandysc

27 karma · joined Nov 12, 2024 (2y ago) · 11 submissions

Submissions

comment 2y ago · link · parent

Antlr is build with Java so in order to build the grammar, it needs to either use system java or download one. I don't know any better alternative to Antlr. Of course I could manually generate .cs files and commit them to the repo, but Antlr4BuildTasks automates everything which is very convenient.

comment 2y ago · link · parent

I don't know any better alternative than ANTLR for grammar generation, this is unfortunately written in Java, so there is not a good way to avoid it. I mean, I could manually generate .cs files and commit them to the repo.

Antlr4BuildTasks at least automates this step (both downloading java and building antlr4).

Long story short, I don't see a better alternative for grammar generation now.

comment 2y ago · link · parent

Syntax Highlighting actually is there, it was added after the gif was recorded (you can see that on the web version), autocomplete, hmm, maybe later? :)

VB6 language is limited as well, it was more a toy/proof of concept, but given the positive feedback I am tempted to implement more functionality. Especially since the save format is compatible with VB6. It is still gonna be a toy, but actually working toy?

comment 2y ago · link · parent

Actually, in Avalonia accelerator char is an underscore _, but I just pushed an update to support & as well :)

Save actually works! On Desktop tho, what is more it is format compatible with VB6! Of course since the support in general is limited, compatibility is limited as well, but I actually plan to improve it a bit.

Build also works, but only on desktop ;)

comment 2y ago · link · parent

Syntax Errors reporting was missing indeed, but I just added it now and it would show a message box (while you write the code)

comment 2y ago · link · parent

Hey, author here, I didn't implement all the properties and events, i.e. the Click event on labels was missing. Updated the website with all the basic events.

comment 2y ago · link · parent

Hey, author here, only a subset of VB6 language is implemented, I also didn't implement all properties and events, i.e. the Click event on labels. Updated the website with all basic events.

Considering how much response this project got, I might improve the VB6 interpreter :)

comment 2y ago · link · parent

Hey, author here, I built everything from scratch. It supports only a subset of VB6 so it wasn't difficult or long. I wrote an interpreter for VB6 code

comment 2y ago · link · parent

It runs on Mac and Linux! https://github.com/BAndysc/AvaloniaVisualBasic6 It even supports dotnet's NativeAOT, meaning you can get a native x64/arm64 binary!

comment 2y ago · link · parent

I didn't add a handler for the click event for labels, fixed now :))

comment 2y ago · link · parent

Author of the demo and library here, thank you for kind words, this was my goal to achieve almost pixel perfect recreation of the original GUI (which is sometimes not very easy as some components look slightly different in different programs, I meant small differences in buttons sizes, paddings, etc.).