Skip to content
A Ruby implementation of Pxem
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.travis.yml
Gemfile
MIT-LICENSE.txt
README.md
Rakefile
rpxem.gemspec

README.md

RPxem

Build Status

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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

You can’t perform that action at this time.