Onyx

Appeared in:
18 July 2001
Influenced by:
Paradigm:
Typing discipline:
File extensions:
.nx
Versions and implementations (Collapse all | Expand all):
Programming language

Onyx is an interpreted stack-based language. It can be embedded as extension language.

Main features of the language include:

  • Onyx is multi-threaded language, and utilizes the operating system’s native POSIX threading.
  • Onyx is claimed to be the most advanced of existing stack-based languages: stacks are first class objects, and they are conveniently double-ended. However, it is unknown how modern this claim is.
  • Perl-compatible regular expressions.
  • Support for object-oriented programming, somewhat similar to one provided by Objective-C.

Elements of syntax:

Inline comments #

Examples:

Hello, World!:

Example for versions Onyx 5.1.2
#!/usr/bin/onyx

`Hello world!\n' print