Polaris is a stack-based, concatenative, interpreted programming language with strings as its only data type. It has been designed to be small in size and minimal in language features. Polaris was conceived to run under Unix systems. It has been written in C++98, so it can probably be compiled with any C++ compiler out there.
/* This is a little Polaris example */
("Tell me your name: " print input >name) >askName
("Hello there, " @name join "\n" join print) >sayHello
%askName %sayHello
To build Polaris, clone this repository and run make
. You can install it using make install
.
The Polaris documentation can be here.
Some code examples can be found in the Examples directory.
The Polaris Interpreter is distributed under the Apache 2.0 License.