Skip to content

huang2002/hxs

Repository files navigation

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.

Links

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.";

About

A simple programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published