This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
perriscript with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Learn broken Spanish with Perriscript (AKA why not?)
This is a reimplementation of the best new compile-to-JS language, Dogescript by Zach Bruggeman, in Spanish. Guau.
guau vaya perriscript muy compilado nueva-onda npm guau
npm install -g perriscript
perriscript without a file launches a REPL.
perriscript location/to/perriscript.pjs pipes the result to stdout. Use a command like
perriscript perriscript.pjs > compiled.js to save to a file.
--beautify- Runs the code through a beautifier.
--true-perri- Implements "true perri" mode, which splits lines by 3 spaces, instead of by newlines. This stays behind a flag until the spacing it exports is identical to non-true-perri mode.
perriscript(file, beauty, truePerri)
file- A string of Perriscript.
beauty- A boolean, set to true if you want the output to be ran through a beautifier.
truePerri- A boolean, set to true if you want to enable true-perri mode.
ejemplos/GUAUserify/index.html in your browser or browse to http://sole.github.io/perriscript/ejemplos/GUAUserify/
If you make any change in the parser and want to regenerate the bundle, you'll need to install browserify first:
npm install -g browserify
Then cd to the
ejemplos/GUAUserify/ folder and run
browserify index.js > bundle.js
LANGUAGE.md for some documentation. Otherwise, look at the ejemplos files in this repo.