PISC is a stack-based programming language that is primarily inspired by factor, TCL, bash and a little bit of python, written in go. It's currently a study in how far one can take code quotations, polymorphic stacks and pervasive dynamism.
Current longer term planhere
Noteworthy things can be found in theannouncements
Some examples:
"Hello, World!" print { "The answer is " 6 7 * >string ", but we don't know the question" } "" str-join /* Defining an adjustable fizzbuzz word */ : fizzbuzz-n ( n -- ) :n /* Store from stack to n local */ 1 :i /* Store 1 into num variable */ $n [ $i 3 divisor? [ "Fizz" ] [ "" ] if :f $i 5 divisor? [ "Buzz" ] [ "" ] if :b $f $b concat :fb $fb len 0 > [ $fb print ] [ $num print ] if ++i ] times ; 25 fizzbuzz-nIf you want to look over a tour of more PISC features, check outPISC in Y mintues
The largest achievement in PISC to date is aCSV parser.
Installing From SourceBefore you can install PISC for trying out, you'll need to install Go 1.7 or newer
Right now PISC is only available as a go source tree (this is a temporary thing). You can download the source two ways
1) Install fossil and run
fossil clone https://pisc.junglecoder.com/home/apps/fossil/PISC.fossil PISC.fossil2) Download atarball orzip archive
Once you have Go, and have PISC somewhere where the go compiler can work with it, you can run go get to fetch PISC's go dependencies, and go build to build the PISC interpreter.
Once you have the source, PISC -i will open an interactive PISC session.
In the future, there will be a git mirror to enable go get support, and a set of binaries built for windows, OSX and linux.
Other itemsList of things to do .