Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

ansurfen
ansurfen

Posted on

Hulo: Write clean, modern code that compiles to VBScript

Hey VBScript enthusiasts! 👋

So I've been working on a compiler/transpiler project and wanted to tackle something that could actually be useful. You know what's the most frustrating thing about VBScript? Writing complex logic with that verbose syntax and limited features!

That's when I thought - what if we could write scripts in a clean, modern language and have it compile to VBScript? Enter Hulo!

What is Hulo?
A modern, type safety programming language that transpiles to VBScript, making it much easier to write complex automation scripts for Windows.

Quick example:

Simple message box:

MsgBox "Hello, World!"
Enter fullscreen modeExit fullscreen mode

Functions with types:

fn sayHello(name: str) -> void {    MsgBox "Hello, $name!"}fn add(a: num, b: num) => $a + $bsayHello "Hulo";MsgBox add(5, 3);
Enter fullscreen modeExit fullscreen mode

Classes and objects:

class User {    pub name: str    pub age: num    pub fn greet(other: str) {        MsgBox "Hello, $other! I'm $name."    }}let u = User("John", 25)$u.greet("Jane")
Enter fullscreen modeExit fullscreen mode

Control flow and user input:

let n = InputBox("Input a number:")if $n < 0 {    MsgBox("The number is negative.")} else {    MsgBox("The number is positive.")}
Enter fullscreen modeExit fullscreen mode

Lists and loops:

let arr: list<num> = [1, 2, 3, 4, 5]loop $item in $arr {    MsgBox $item}loop $i in [0, 1, 2] {    MsgBox $i}
Enter fullscreen modeExit fullscreen mode

More examples available in theexamples/ directory!

No more struggling with VBScript's verbose syntax or limited features - just write clean code and let Hulo handle the VBScript generation!

Would love to hear your thoughts on this approach. Is this something you'd find useful for your VBScript development? Any feedback or suggestions are welcome!

Check it out:https://github.com/hulo-lang/hulo

What do you think?

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Do your best, and respect what you cannot yet do.
  • Location
    China
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp