egg is a stack-based programming language for code golf, not unlike cjam and pyth.
- Programs are represented as a sequence of tokens and are evaluated left-to-right.
- Literals are pushed directly to the stack.
- Primitive types include integers (bigints)
-123
, floating-point values3.141
, strings"hello"
, and character literals'a
. - Operators pop the number of arguments they need from the top of the stack and can push output values.
- Whitespace is optional except to disambiguate token delineation.
- Implicit coercion between compatible types.
For a web interpreter and documentation/examples, visit the language homepage.
Make sure you have Node.js, Yarn and Bower. In the project directory, run:
$ yarn
$ bower install
$ npm start
You may then open www/index.html
to see the egg UI.