Skip to content

LighghtEeloo/meme-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meme and Memetic

This repository contains

  1. Memetic, a Rust tool that aims at leveraging code usage.
  2. Meme, a "language" written in Python, as a April Fool's day joke.

Memetic

A configurable watch and sed tool that does live code generation.

The Meme Language

A string template language hosted by Python3 runtime. Conventionally, the source code of this language is written in plain text with utf-8 encoding and stored in a file with extension ".meme".

Philosophy

Human beings repeat one another, even themselves from time to time. Emerging from the dark flow of collective intelligence, memes are how we degenerated web inhabitants express our feelings, thoughts and our very existence. Yet, such expression is causing more and more brothers to suffer from language or behavioral disorders (e.g. little-pinky or vim-handicapped). The meme language is therefore introduced to DRY the web environment and encourage diversity across our mental homeland.

Grammar

To keep the language implementation concise, the grammar of said language is aligned with the syntax described in PEP 498.

Implementation

Following the creed of DRY, we can use only 6* lines of code to implement said language. You may inspect the source code if you like. Low code, low errors; no code, no error. Think about it.

* As the development goes on, this may no longer be true; yet the creed shall guide us.

Installation

The language is based on Python 3, which can be installed directly or via your system package manager. Make sure that you install a version that is superior than or equal to Python 3.6. Make sure that you also install pip, the package manager for Python as well.

Then run

pip install --upgrade meme-lang

and meme-lang will be installed to your device.

Usage

Using meme is easy.

# import
from meme import Meme

# your meme template name
meme_name = ".meme"
# the contents to be filled into the meme template
meme_content = {}
# get the str of meme
meme = Meme(meme_name).print(**meme_content)

# output
print(meme)

You may also create various memes and collect them for future use.

Disclaimer

This is merely a joke. Don’t take this seriously.

About

A joke-based language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published