retronbv / potatoscript

6 stars 2 forks source link

potato

An interpreter for potato script

made by retronbv

Installing potatoscript cli

$ npm i retronbv/potatoscript -g

Running a PS file

$ potato run script.ps
This was written in potato script!

script.ps

🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 🥔🥔🥔 🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔🥔🥔 

Converting a BF file to PS

$ potato convert script.bf script.ps
Converted script.bf to potatoscript

script.bf

> + + + + + + + + [ < + + + + + + + + + > - ] < . > + + + + [ < + + + + + + + > - ] < + . + + + + + + + . . + + + . > > + + + + + + [ < + + + + + + + > - ] < + + . - - - - - - - - - - - - . > + + + + + + [ < + + + + + + + + + > - ] < + . < . + + + . - - - - - - . - - - - - - - - . > > > + + + + [ < + + + + + + + + > - ] < + .

Converting a PS file to BF

$ potato deconvert script.ps script.bf
Converted script.ps to brainf***

script.ps

🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 🥔🥔🥔🥔🥔 [>