Skip to content

The compiler for the Z programming language - a procedural and functional language that transpiles to JavaScript. It integrates syntactic sugar like pattern matching, operator overloading, and macros while still remaining compatible with the existing JavaScript ecosystem.

License

Notifications You must be signed in to change notification settings

zlanguage/zcomp

Repository files navigation

zcomp

The Z transpiler/interpreter

Version Downloads/week License

Z

A transpiled language that can be evaluated as a script (for testing) or transpiled to human-readable JS (for production code). Z supports modules, functions, closure, error handling, and many more features you would expect from a modern language. Is it ready for production code? I'd wait a few months before that.

ZComp

The Z Compiler (ZComp) can be installed with:

$ npm install -g @zlanguage/zcomp

Then, you should install the zstdlib (a runtime library):

$ npm install -g @zlanguage/zstdlib

Finally, navigate to the directory you're using Z in, and type:

$ npm install @zlanguage/zstdlib

This installs the Z standard library locally in just the paackage you need it for.

Use the Compiler

Transpile Z Code:

$ zcomp transpile [path of Z to transpile] [path of where to output the transpiled JS]

Run Z Code:

$ zcomp run [path of Z to run]

Docs

The docs are on the offical Z Website.

About

The compiler for the Z programming language - a procedural and functional language that transpiles to JavaScript. It integrates syntactic sugar like pattern matching, operator overloading, and macros while still remaining compatible with the existing JavaScript ecosystem.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages