New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

confuscript

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confuscript

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Confuscript

Welcome to Confuscript! This is not just another programming language; it's an exercise in cognitive somersaults, a dive into a world where traditional programming rules are turned upside-down. Built entirely on Ruby, This is a fun programming language to confuse yourself.

This was built using Treetop.

Why Confuscript?

The name Confuscript means Confusing JavaScript. Inspired by the syntax of JavaScript, Confuscript is a fun programming language that will make you think twice about everything you know about programming. While most

Programming languages have become easier to learn, I wanted to make it difficult and confusing.

Confuscript is not designed for production applications (But who am I to stop you?), but rather as a fun way to challenge your brain, learn new ways of thinking, and perhaps even gain a deeper understanding of the languages you use every day by seeing them in a new light.

Features

Here are some of the bewildering features that make Confuscript stand out:

  • console.input: The opposite of console.log, here input means output
  • Null: Null is not null, it's how you declare a variable.
  • Else if: If-else conditions runs opposite to one another (if condition is true, run else)
  • Inverse Operators: Yes, + is now -, and vice-versa. and many more.. Checkout examples at examples/ directory.

Installation

Prerequisite: Ensure you have Ruby installed on your machine. If not, install Ruby first.

Install the gem using:

$ gem install seedie

Usage

  • Write a Confuscript source file with an appropriate extension (e.g., hello_world.notjs). We use .notjs extension to let you know that it's not a JavaScript file (like you won't know that already).

Here's a simple Confuscript program:

null greeting = "hello world";
console.input(greeting);

Run the file using confuscript command:

confuscript hello_world.notjs

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

We embrace community contributions! Whether it's fixing bugs, adding new quirks, or improving documentation, every bit helps. Feel free to open issues or submit pull requests.

License

Confuscript is open-sourced under the MIT License. Happy (confused) coding!

FAQs

Package last updated on 30 Aug 2023

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