Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wktk/rpxem
A Ruby implementation of Pxem language
https://github.com/wktk/rpxem
esolang pxem
Last synced: 29 days ago
JSON representation
A Ruby implementation of Pxem language
- Host: GitHub
- URL: https://github.com/wktk/rpxem
- Owner: wktk
- License: mit
- Created: 2012-12-03T12:17:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T01:26:02.000Z (5 months ago)
- Last Synced: 2024-12-01T17:49:10.013Z (about 1 month ago)
- Topics: esolang, pxem
- Language: Ruby
- Homepage: https://rubygems.org/gems/rpxem
- Size: 51.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
# rpxem
[![Build Status](https://travis-ci.org/wktk/rpxem.svg?branch=master)](https://travis-ci.org/wktk/rpxem)
rpxem is a Ruby implementation of [Pxem], an esoteric programming language that
enables you to create programs in 0-byte files.[Pxem]: https://web.archive.org/web/20120605223423/http://cfs.maxn.jp/neta/pxem.php
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'rpxem'
```And then execute:
```bash
$ bundle
```Or install it yourself as:
```bash
$ gem install rpxem
```## Usage
### Using in Ruby
Require `rpxem`:
```ruby
require 'rpxem'
```Open and execute your Pxem **file**:
```ruby
path_to_pxem_file = '~/Hello, world!.pxe'
RPxem.open(path_to_pxem_file) #=> Hello, world!
```Execute your Pxem **code**:
```ruby
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`:
```bash
$ 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
- Original resource: https://web.archive.org/web/20120605223423/http://cfs.maxn.jp/neta/pxem.php
- Esolang wiki: https://esolangs.org/wiki/Pxem