Skip to content

matteac/maradoscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaradoScript

Logo

Inspired by Brainfuck and Maradona, written in Rust (btw)

How it works

This language operates with a memory of 2^16 bytes and a pointer that navigates the current byte. You can manipulate the pointer, move it forward or backward, increment or decrement the value at the pointer, print to the stdout, and take input.

Be cautious! It's possible to underflow or overflow both the memory and the pointer. If the pointer is at zero and an attempt is made to decrement it, it will go to the last byte.

Boundless Coding Realm

Loops evade the code,
Memory's dance knows no bounds,
Unfettered by loops.

Instructions

  • e - moves the pointer forward
  • i - moves the pointer backward
  • m - increments the value at the pointer
  • a - decrements the value at the pointer
  • 👍 - prints the value at the pointer to the stdout
  • ' ' (space) - takes an ASCII character from the stdin and stores it at the pointer

Installation

git clone https://github.com/matteac/maradoscript.git
cd maradoscript
cargo install --path .

Usage

maradoscript -i <FILE>

Or use the repl

maradoscript

Transpile

Read the transpiler documentation

Example

The following code prints Hello World:

mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm👍emmmmmmmmmm👍emmmmmmmmmmmmm👍

About

one of the programming languages of all time

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages