Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esolang

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esolang

  • 0.1.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

esolang

A Ruby gem for interpreting esoteric programming languages.

Supported at the moment: Smallfuck, Boolfuck, Paintfuck, Brainfuck, Ook! (with method to feet the memory pointer with bananas)

This gem is inspired by this Kata Series on Codewars that ignited my passion for esolangs. Special thanks to the author donaldsebleung.

Codesnippets for tests and examples are copies or variations from Esolangs wiki or Wikipedia

This is an ongoing fun and educational project, and the author assumes no liability for the accuracy and completeness of the implementations.

Installation

To use the esolang gem, you can install it via:

gem install esolang

Example Usage

require 'esolang'
using Esolang::Refinements

code = ";;;+;+;;+;+;
    +;+;+;+;;+;;+;
    ;;+;;+;+;;+;
    ;;+;;+;+;;+;
    +;;;;+;+;;+;
    ;;+;;+;+;+;;
    ;;;;;+;+;;
    +;;;+;+;;;+;
    +;;;;+;+;;+;
    ;+;+;;+;;;+;
    ;;+;;+;+;;+;
    ;;+;+;;+;;+;
    +;+;;;;+;+;;
    ;+;+;+;

puts code.boolfuck

This gem adds string refinements. You can use the boolfuck method directly on a string:

require 'esolang'
using Esolang::Refinements

code.boolfuck('user_input')

Alternatively, you can use the Esolang module:

require 'esolang'

Esolang.boolfuck(code, input)

FAQs

Package last updated on 22 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc