The powerful script language designed with a stack oriented approach for efficient execution.
- Stack-oriented efficient execution model
- Clear, easy-to-understand, and elegant syntax
- A wealth of convenient and highly extensible commands
- Powerful and flexible data type mechanism
This is a sample code to solve FizzBuzz problem in Stack programming language
(
(i) var
(Fizz) ()
i 3 mod 0 equal if
) (fizz) var
(
(i) var
(Buzz) ()
i 5 mod 0 equal if
) (buzz) var
1 101 1 range (i) (
() (msg) var
msg i fizz eval concat (msg) var
msg i buzz eval concat (msg) var
(
i (msg) var
) ()
msg () equal if
msg print
) for
Any contributions are welcome! Feel free to open a pull request and help make the Stack programming language even better.
The Stack programming language is free software under the MIT license. Anyone can use and change it. See the LICENSE file for more details