Download
Bespoke is hosted on GitHub. Clone the repository and run the bespoke.py script directly:
git clone https://github.com/vfarcy/Poetic-py.git
How To Use
The interpreter is invoked from the command line like this:
bespoke.py [ -i input-file ] bespoke-program
bespoke-program is the file you want to run. The recommended extension is .bspk.
- -i / --input - Read input from a file instead of STDIN.
Examples
Run a program file:
python bespoke.py examples\helloworld.bspk
Use an input file:
python bespoke.py -i input.txt examples\fibonacci.bspk
Pipe input directly from PowerShell:
'12 23' | python bespoke.py examples\sum_two_numbers.bspk
Pipe multiline input from PowerShell:
"12`n23" | python bespoke.py examples\sum_two_numbers.bspk
(CTRL+Z on Windows or CTRL+D on Unix signals end-of-file.)
No installation needed? Use the Try It Online page instead.