npm.io
0.47.0 • Published 4 years agoCLI

hxs

Licence
MIT
Version
0.47.0
Deps
1
Size
453 kB
Vulns
0
Weekly
0
Stars
3

hxs

A simple programming language written in JavaScript.

Introduction

hxs is an experimental language written in JavaScript. You can give it a try if you are interested in programming languages, but it is NOT ready for production use.

Example Code

Human = Class({
    @__init(name = 'anonymous') {
        this.name = name;
    },
    #age -> 0,
    @speak() {
        print(
            'This is ',
            this.name,
            ', aged ',
            this.age,
            '.'
        );
    },
});

tom = Human('Tom');
tom.age = 19;
tom.speak(); "Prints: This is Tom, aged 19.";

Keywords