rpxem
rpxem is a Ruby implementation of Pxem, an esoteric programming language that enables you to create programs in 0-byte files.
Installation
Add this line to your application's Gemfile:
gem 'rpxem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rpxem
Usage
Using in Ruby
Require rpxem
:
require 'rpxem'
Open and execute your Pxem file:
path_to_pxem_file = '~/Hello, world!.pxe'
RPxem.open(path_to_pxem_file) #=> Hello, world!
Execute your Pxem code:
file_name = 'world!.fHello,.pxe'
file_cont = ' Pxem '
RPxem.run(file_name, file_cont) #=> Hello, Pxem world!
Using from CLI
This program also runs as a command-line Pxem interpreter called rpxem
:
$ touch "Hello, world!.pxe"
$ rpxem "Hello, world!.pxe"
Hello, world!
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
Copyright (c) 2012, 2018 wktk.
This software is distributed under the MIT License.
See MIT-LICENSE.txt
for details.
See also
- Original resource: https://web.archive.org/web/20120605223423/http://cfs.maxn.jp/neta/pxem.php
- Esolang wiki: https://esolangs.org/wiki/Pxem