beatnik interpreter
Project description
Beatnik
This python package contains functions for stack-based esoteric programming language: Beatnik
Description
Beatink is a stack-based esoteric programming language created by Cliff L. Biffle. This package contains each ACTION functions by the rules of beatnik, and build a stack to calculate the resulted output from the given text.
Scrabble letter values --- ABCDEFGHIJKLMNOPQRSTUVWXYZ --- 1: A---E---I--L-NO--RSTU----- 2: ---D--G------------------- 3: -BC---------M--P---------- 4: -----F-H-------------VW-Y- 5: ----------K--------------- 6: -------------------------- 7: -------------------------- 8: ---------J-------------X-- 9: -------------------------- 10: ----------------Q--------Z --- ABCDEFGHIJKLMNOPQRSTUVWXYZ ---
Action list
Installation
The Blend Modes package can be installed through pip:
pip install beatnik
Import
from beatnik import beatnik_simple
from beatnik import beatnik_stack
Usage
Use the library directly on Jupyter lab
Use the example file beatnik_interact
Simple usage of this library
text = "this is a line of text"
beatnik.beatnik_simple(text,debug=True)
Step-by-step
preprocess text
text = "this is a line of text"
words = beatnik.preprocess(text)
scrabbling word
beatnik.scrabble(words)
words
are list of words that before scrabble
running stack machine
beatnik.stack(words,VALUE,debug=False)
License
The Beatnik package is distributed under the MIT License (MIT). Please also take note of the licenses of the dependencies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beatnik-0.791.tar.gz
(4.9 kB
view hashes)