Package Exports
- hxs
- hxs/dist/hxs.min.js
- hxs/dist/hxs.umd.min.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hxs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.";