project reph
Repl server for Pharen
scriptor/reph
Repl server for Pharen
- Friday, June 13, 2014
- by Scriptor
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Reph
Requirements
- You need the Pharen language installed.
- A simple TCP client, netcat on Linux (
nc
) works great
Usage
Compile Reph with:, (*1)
$ pharen reph.phn
Start the server:, (*2)
$ php reph.php
Initializing Reph server on 127.0.0.1:10000
Note that this uses .php, (*3)
Connect to the server with your client and hack away!, (*4)
$ nc localhost 10000
Initialized Pharen REPL. (map) new worlds!
pharen> (map (* 2) [1 2 3])
[2, 4, 6]
pharen>